Skip to content

Commit

Permalink
delete unused routers
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiChou committed Aug 13, 2022
1 parent 163e19b commit a0aa94b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
14 changes: 1 addition & 13 deletions guiv3/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,7 @@ const routes = [
{
path: '/workspace/:device/:bundle',
name: 'workspace',
component: WorkspaceView,
children: [
{
path: '',
component: GetStarted,
name: 'get-started'
},
{
name: 'basic',
component: BasicInfo,
path: 'basic'
}
]
component: WorkspaceView
}
]

Expand Down
2 changes: 1 addition & 1 deletion guiv3/src/views/DeviceView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ watch(() => route.params.device, async newDevice => {
<div class="apps" v-if="apps.length">
<ul>
<li :key="app.identifier" v-for="app in apps">
<router-link :to="{ name: 'get-started', params: { device, bundle: app.identifier } }">
<router-link :to="{ name: 'workspace', params: { device, bundle: app.identifier } }">
<img class="lazy"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
:data-src="`/api/device/${device}/icon/${app.identifier}`" width="180" height="180">
Expand Down
18 changes: 9 additions & 9 deletions guiv3/src/views/tabs/GeneralTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
<p class="menu-label">General</p>
<ul class="menu-list">
<li>
<router-link :to="{ name: 'basic' }">
<router-link :to="{ name: 'workspace' }">
<n-icon :component="InfoOutlined" />Basic
</router-link>
</li>
<li>
<router-link :to="{ name: 'basic' }">
<router-link :to="{ name: 'workspace' }">
<n-icon :component="SecurityFilled" />CheckSec
</router-link>
</li>
<li>
<router-link :to="{ name: 'basic' }">
<router-link :to="{ name: 'workspace' }">
<n-icon :component="LinkRound" />URL Schemes
</router-link>
</li>
Expand All @@ -22,17 +22,17 @@
<p class="menu-label">Storage</p>
<ul class="menu-list">
<li>
<router-link :to="{ name: 'basic' }">
<router-link :to="{ name: 'workspace' }">
<n-icon :component="CookieOutlined" />Cookies
</router-link>
</li>
<li>
<router-link :to="{ name: 'basic' }">
<router-link :to="{ name: 'workspace' }">
<n-icon :component="KeyFilled" />KeyChain
</router-link>
</li>
<li>
<router-link :to="{ name: 'basic' }">
<router-link :to="{ name: 'workspace' }">
<n-icon :component="RoomPreferencesOutlined" />NSUserDefaults
</router-link>
</li>
Expand All @@ -41,12 +41,12 @@
<p class="menu-label">Inspector</p>
<ul class="menu-list">
<li>
<router-link :to="{ name: 'basic' }">
<router-link :to="{ name: 'workspace' }">
<n-icon :component="CursorHover16Regular" />UI Dump
</router-link>
</li>
<li>
<router-link :to="{ name: 'basic' }">
<router-link :to="{ name: 'workspace' }">
<n-icon :component="PrivacyTipOutlined" />Privacy
</router-link>
</li>
Expand All @@ -55,7 +55,7 @@
<p class="menu-label">Simulate</p>
<ul class="menu-list">
<li>
<router-link :to="{ name: 'basic' }">
<router-link :to="{ name: 'workspace' }">
<n-icon :component="MapPin" />GPS
</router-link>
</li>
Expand Down

0 comments on commit a0aa94b

Please sign in to comment.