diff --git a/resources/assets/scripts/app.js b/resources/assets/scripts/app.js index 15fb4af1..d2a5be98 100644 --- a/resources/assets/scripts/app.js +++ b/resources/assets/scripts/app.js @@ -7,12 +7,7 @@ import VueRouter from 'vue-router'; import { Ziggy } from './helpers/ziggy'; import Locales from './../../../resources/lang/locales'; import { flash } from './mixins/flash'; - -// Base Vuejs Templates -import Login from './components/auth/Login'; -import Dashboard from './components/dashboard/Dashboard'; -import Account from './components/dashboard/Account'; -import ResetPassword from './components/auth/ResetPassword'; +import { routes } from './routes'; window.events = new Vue; window.Ziggy = Ziggy; @@ -33,24 +28,7 @@ Vue.i18n.add('en', Locales.en); Vue.i18n.set('en'); const router = new VueRouter({ - mode: 'history', - routes: [ - { name: 'login', path: '/auth/login', component: Login }, - { name: 'forgot-password', path: '/auth/password', component: Login }, - { name: 'checkpoint', path: '/checkpoint', component: Login }, - { - name: 'reset-password', - path: '/auth/password/reset/:token', - component: ResetPassword, - props: function (route) { - return { token: route.params.token, email: route.query.email || '' }; - } - }, - { name : 'index', path: '/', component: Dashboard }, - { name : 'account', path: '/account', component: Account }, - { name : 'account-api', path: '/account/api', component: Account }, - { name : 'account-security', path: '/account/security', component: Account }, - ] + mode: 'history', routes }); require('./bootstrap'); diff --git a/resources/assets/scripts/components/dashboard/Dashboard.vue b/resources/assets/scripts/components/dashboard/Dashboard.vue index 1da8cf66..f12f2fd0 100644 --- a/resources/assets/scripts/components/dashboard/Dashboard.vue +++ b/resources/assets/scripts/components/dashboard/Dashboard.vue @@ -9,12 +9,14 @@
-
+
-
+
-
{{ server.name }}
+
+ {{ server.name }} +
@@ -40,7 +42,7 @@

{{ server.allocation.ip }}:{{ server.allocation.port }}

-
+
diff --git a/resources/assets/scripts/routes.js b/resources/assets/scripts/routes.js new file mode 100644 index 00000000..64b25546 --- /dev/null +++ b/resources/assets/scripts/routes.js @@ -0,0 +1,33 @@ +// Base Vuejs Templates +import Login from './components/auth/Login'; +import Dashboard from './components/dashboard/Dashboard'; +import Account from './components/dashboard/Account'; +import ResetPassword from './components/auth/ResetPassword'; + +export const routes = [ + { name: 'login', path: '/auth/login', component: Login }, + { name: 'forgot-password', path: '/auth/password', component: Login }, + { name: 'checkpoint', path: '/checkpoint', component: Login }, + { + name: 'reset-password', + path: '/auth/password/reset/:token', + component: ResetPassword, + props: function (route) { + return { token: route.params.token, email: route.query.email || '' }; + } + }, + + { name : 'index', path: '/', component: Dashboard }, + { name : 'account', path: '/account', component: Account }, + { name : 'account.api', path: '/account/api', component: Account }, + { name : 'account.security', path: '/account/security', component: Account }, + + { + name: 'server', + path: '/server/:id', + // component: Server, + // children: [ + // { path: 'files', component: ServerFileManager } + // ], + } +]; diff --git a/resources/assets/styles/components/miscellaneous.css b/resources/assets/styles/components/miscellaneous.css index 9007161b..23bec347 100644 --- a/resources/assets/styles/components/miscellaneous.css +++ b/resources/assets/styles/components/miscellaneous.css @@ -65,7 +65,11 @@ code { } & > .content { - @apply .border .border-grey-light .bg-white .rounded .p-4 .justify-between .leading-normal; + @apply .border .border-grey-light .bg-white .rounded .p-4 .justify-between .leading-normal .no-underline .block .text-black; + + &:visited { + @apply .text-black; + } } }