Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
Juno Frontend Vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dhevan Muhammad
Juno Frontend Vue
Commits
9f88d3f2
Commit
9f88d3f2
authored
Mar 08, 2024
by
Dhevan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submenu example
parent
43146acf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
43 deletions
+76
-43
Configurator.vue
src/components/Configurator.vue
+1
-37
SidenavItem.vue
src/components/Sidenav/SidenavItem.vue
+4
-1
SidenavList.vue
src/components/Sidenav/SidenavList.vue
+4
-4
SidenavParent.vue
src/components/Sidenav/SidenavParent.vue
+66
-0
index.vue
src/components/Sidenav/index.vue
+1
-1
No files found.
src/components/Configurator.vue
View file @
9f88d3f2
...
...
@@ -42,7 +42,7 @@ const darkMode = () => {
<div
class=
"shadow-lg card"
>
<div
class=
"pt-3 pb-0 bg-transparent card-header"
>
<div
class=
""
:class=
"isRTL ? 'float-end' : 'float-start'"
>
<h5
class=
"mt-3 mb-0"
>
Argon
Configurator
</h5>
<h5
class=
"mt-3 mb-0"
>
Juno
Configurator
</h5>
<p>
See our dashboard options.
</p>
</div>
<div
...
...
@@ -161,42 +161,6 @@ const darkMode = () => {
/>
</div>
</div>
<a
class=
"btn bg-gradient-dark w-100"
href=
"https://www.creative-tim.com/product/vue-argon-dashboard"
>
Free Download
</a
>
<a
class=
"btn btn-outline-dark w-100"
href=
"https://www.creative-tim.com/learning-lab/vue/overview/argon-dashboard/"
>
View documentation
</a
>
<div
class=
"text-center w-100"
>
<a
class=
"github-button"
href=
"https://github.com/creativetimofficial/vue-argon-dashboard"
data-icon=
"octicon-star"
data-size=
"large"
data-show-count=
"true"
aria-label=
"Star creativetimofficial/vue-argon-dashboard on GitHub"
>
Star
</a
>
<h6
class=
"mt-3"
>
Thank you for sharing!
</h6>
<a
href=
"https://twitter.com/intent/tweet?text=Check%20Vue%20Argon%20Dashboard%202%20made%20by%20%40CreativeTim%20%23webdesign%20%23dashboard%20%vuejs3&url=https%3A%2F%2Fwww.creative-tim.com%2Fproduct%vue-argon-dashboard"
class=
"mb-0 btn btn-dark me-2"
target=
"_blank"
>
<i
class=
"fab fa-twitter me-1"
aria-hidden=
"true"
></i>
Tweet
</a>
<a
href=
"https://www.facebook.com/sharer/sharer.php?u=https://www.creative-tim.com/product/vue-argon-dashboard"
class=
"mb-0 btn btn-dark me-2"
target=
"_blank"
>
<i
class=
"fab fa-facebook-square me-1"
aria-hidden=
"true"
></i>
Share
</a>
</div>
</div>
</div>
</div>
...
...
src/components/Sidenav/SidenavItem.vue
View file @
9f88d3f2
...
...
@@ -21,11 +21,14 @@ defineProps({
type
:
String
,
required
:
true
,
},
hideIcon
:
{
default
:
false
}
});
</
script
>
<
template
>
<router-link
:to=
"to"
class=
"nav-link"
@
click=
"minimizeSidebar"
>
<div
<div
v-if=
"!hideIcon"
class=
"icon icon-shape icon-sm text-center d-flex align-items-center justify-content-center"
>
<slot
name=
"icon"
></slot>
...
...
src/components/Sidenav/SidenavList.vue
View file @
9f88d3f2
...
...
@@ -4,6 +4,7 @@ import { useRoute } from "vue-router";
import
{
useStore
}
from
"vuex"
;
import
SidenavItem
from
"./SidenavItem.vue"
;
import
SidenavParent
from
"./SidenavParent.vue"
;
import
SidenavCard
from
"./SidenavCard.vue"
;
const
store
=
useStore
();
...
...
@@ -100,17 +101,16 @@ const getRoute = () => {
</
template
>
</sidenav-item>
</li>
<li
class=
"nav-item"
>
<sidenav-
item
to=
"/signup
"
<sidenav-
parent
identifier=
"submenu
"
:class=
"getRoute() === 'signup' ? 'active' : ''"
:navText=
"isRTL ? 'اشتراك' : 'Sign Up'"
>
<
template
v-slot:icon
>
<i
class=
"ni ni-window-expand-bottom-right text-info text-sm opacity-10"
></i>
</
template
>
</sidenav-
item
>
</sidenav-
parent
>
</li>
</ul>
</div>
...
...
src/components/Sidenav/SidenavParent.vue
0 → 100644
View file @
9f88d3f2
<
script
setup
>
import
SidenavItem
from
"./SidenavItem.vue"
;
import
{
computed
}
from
"vue"
;
import
{
useStore
}
from
"vuex"
;
import
{
useRoute
}
from
"vue-router"
;
const
store
=
useStore
();
const
isRTL
=
computed
(()
=>
store
.
state
.
isRTL
);
const
sidebarMinimize
=
()
=>
store
.
commit
(
"sidebarMinimize"
);
const
minimizeSidebar
=
()
=>
{
if
(
window
.
innerWidth
<
1200
)
{
sidebarMinimize
();
}
};
const
getRoute
=
()
=>
{
const
route
=
useRoute
();
const
routeArr
=
route
.
path
.
split
(
"/"
);
return
routeArr
[
1
];
};
defineProps
({
identifier
:
{
type
:
String
,
required
:
true
,
},
navText
:
{
type
:
String
,
required
:
true
,
},
});
</
script
>
<
template
>
<a
class=
"nav-link"
data-bs-toggle=
"collapse"
aria-expanded=
"false"
:aria-controls=
"identifier"
role=
"button"
:href=
"`#$
{identifier}`"
>
<div
class=
"icon icon-shape icon-sm text-center d-flex align-items-center justify-content-center"
>
<slot
name=
"icon"
></slot>
</div>
<span
class=
"nav-link-text"
:class=
"isRTL ? ' me-1' : 'ms-1'"
>
{{
navText
}}
</span>
</a>
<div
class=
"collapse"
:id=
"identifier"
>
<ul
class=
"nav nav-sm flex-column ms-4"
>
<li
class=
"nav-item"
>
<sidenav-item
to=
"/signup"
:class=
"getRoute() === 'signup' ? 'active' : ''"
:navText=
"isRTL ? 'اشتراك' : 'Sign Up'"
:hide-icon=
"true"
>
</sidenav-item>
</li>
</ul>
</div>
</
template
>
src/components/Sidenav/index.vue
View file @
9f88d3f2
...
...
@@ -40,7 +40,7 @@ const darkMode = computed(() => store.state.darkMode);
alt=
"main_logo"
/>
<span
class=
"ms-2 font-weight-bold me-2"
>
Argon
Dashboard 2
</span>
<span
class=
"ms-2 font-weight-bold me-2"
>
Juno
Dashboard 2
</span>
</router-link>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment