Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Orbit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Applications
Orbit
Commits
7026c0da
Verified
Commit
7026c0da
authored
5 years ago
by
Jean-Baptiste Pasquier
Browse files
Options
Downloads
Patches
Plain Diff
minor: setup sib app for dashboard component
parent
8db3fb94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!130
Release/dashboard
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/dependencies.pug
+4
-0
4 additions, 0 deletions
src/dependencies.pug
src/index.pug
+4
-0
4 additions, 0 deletions
src/index.pug
src/menu-left.pug
+6
-1
6 additions, 1 deletion
src/menu-left.pug
src/page-dashboard.pug
+5
-0
5 additions, 0 deletions
src/page-dashboard.pug
with
19 additions
and
1 deletion
src/dependencies.pug
+
4
−
0
View file @
7026c0da
...
@@ -14,6 +14,8 @@ if libLocal
...
@@ -14,6 +14,8 @@ if libLocal
script(type="module" src="/lib/sib-conversation/sib-conversation.js")
script(type="module" src="/lib/sib-conversation/sib-conversation.js")
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="/lib/sib-directory/sib-directory.js")
script(type="module" src="/lib/sib-directory/sib-directory.js")
if endpoints.dashboard || (endpoints.get && endpoints.get.dashboard)
script(type="module" src="/lib/sib-dashboard/sib-dashboard.js")
else
else
script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8")
script(type="module" src="https://unpkg.com/@startinblox/oidc@0.8")
script(type="module" src="https://unpkg.com/@startinblox/core@0.9")
script(type="module" src="https://unpkg.com/@startinblox/core@0.9")
...
@@ -28,6 +30,8 @@ else
...
@@ -28,6 +30,8 @@ else
script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3")
script(type="module" src="https://unpkg.com/@startinblox/component-conversation@0.3")
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3")
script(type="module" src="https://unpkg.com/@startinblox/component-directory@0.3")
if endpoints.dashboard || (endpoints.get && endpoints.get.dashboard)
script(type="module" src="https://unpkg.com/@startinblox/component-dashboard@0.1")
//- Stylesheets
//- Stylesheets
link(rel='stylesheet', href='/styles/index.css')
link(rel='stylesheet', href='/styles/index.css')
...
...
This diff is collapsed.
Click to expand it.
src/index.pug
+
4
−
0
View file @
7026c0da
...
@@ -18,6 +18,10 @@ html(lang="en")
...
@@ -18,6 +18,10 @@ html(lang="en")
include menu-left.pug
include menu-left.pug
div#viewport
div#viewport
if endpoints.dashboard || (endpoints.get && endpoints.get.dashboard)
#dashboard(hidden).no-sidebar
include page-dashboard.pug
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
#members(hidden).no-sidebar
#members(hidden).no-sidebar
include page-directory.pug
include page-directory.pug
...
...
This diff is collapsed.
Click to expand it.
src/menu-left.pug
+
6
−
1
View file @
7026c0da
...
@@ -30,7 +30,12 @@ sib-widget(name='menu-fix-url-project')
...
@@ -30,7 +30,12 @@ sib-widget(name='menu-fix-url-project')
)
)
nav#main__menu.jsLeftMenu
nav#main__menu.jsLeftMenu
sib-router#navbar-router(default-route='members')
sib-router#navbar-router(default-route='dashboard')
if endpoints.dashboard || (endpoints.get && endpoints.get.dashboard)
sib-route.menu(name='dashboard')
div.menu-label Dashboard
div.menu-icon.icon-dashboard
div.divider
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
sib-route.menu(name='members')
sib-route.menu(name='members')
div.menu-label Members
div.menu-label Members
...
...
This diff is collapsed.
Click to expand it.
src/page-dashboard.pug
0 → 100644
+
5
−
0
View file @
7026c0da
.views-container
h2 Dashboard
sib-dashboard(
data-src=`${endpoints.dashboard || endpoints.get.dashboard}`
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment