lib/vue/application.js in lesli_admin-0.1.0 vs lib/vue/application.js in lesli_admin-0.2.0
- old
+ new
@@ -28,126 +28,43 @@
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
// ·
*/
-// ·
+// · Import Lesli builders
import application from "Lesli/application"
+import translation from "Lesli/translation"
-// ·
+// · Import engine translations
+import translations from "LesliAdmin/stores/translations.json"
+
+
+// · Import engine applications
import applicationDashboardShow from "LesliAdmin/apps/dashboard/show.vue"
import applicationAccountShow from "LesliAdmin/apps/account/show.vue"
-
-//import applicationUsersProfile from "LesliApp/administration/apps/profile/show.vue"
import applicationUsersIndex from "LesliAdmin/apps/users/index.vue"
-///import applicationUsersShow from "LesliApp/administration/apps/users/show.vue"
-//import applicationUsersNew from "LesliAdmin/apps/users/new.vue"
+import applicationUsersShow from "LesliAdmin/apps/users/show.vue"
+import applicationProfile from "LesliAdmin/apps/profile/show.vue"
-// ·
+// · Buil Lesli translations
+translation(translations)
+
+
+// · Build a new Lesli application
application("LesliAdmin", [{
path: "/dashboard",
component: applicationDashboardShow
},{
path: "/account",
component: applicationAccountShow
}, {
path: "/users",
component: applicationUsersIndex
-}/*, {
- path: "/users/new",
- component: applicationUsersNew
-}*/])
-
-/*
-// ·
-import applicationAccountDashboard from "CloudAdmin/apps/accounts/dashboard.vue"
-
-
-
-import applicationDescriptorsPrivileges from "LesliApp/administration/apps/descriptors/privileges.vue"
-import applicationDescriptorsIndex from "LesliApp/administration/apps/descriptors/index.vue"
-import applicationDescriptorsEdit from "LesliApp/administration/apps/descriptors/edit.vue"
-import applicationDescriptorsShow from "LesliApp/administration/apps/descriptors/show.vue"
-import applicationDescriptorsNew from "LesliApp/administration/apps/descriptors/new.vue"
-
-import applicationRolesIndex from "LesliApp/administration/apps/roles/index.vue"
-import applicationRolesShow from "LesliApp/administration/apps/roles/show.vue"
-import applicationRolesEdit from "LesliApp/administration/apps/roles/edit.vue"
-import applicationRolesNew from "LesliApp/administration/apps/roles/new.vue"
-
-import applicationIntegrationsIndex from "LesliApp/administration/apps/integrations/index.vue"
-import applicationIntegrationsNew from "LesliApp/administration/apps/integrations/new.vue"
-import applicationSecurity from "LesliApp/administration/apps/security/index.vue"
-import applicationDatetime from "LesliApp/administration/apps/date_time/index.vue"
-import applicationBranding from "LesliApp/administration/apps/branding/index.vue"
-import applicationTheme from "LesliApp/administration/apps/theme/index.vue"
-import applicationAccountShow from "LesliApp/administration/apps/accounts/show.vue"
-
-
-// ·
-application("Lesli", [{
- path: "/",
- component: applicationAccountDashboard
}, {
- path: "/account",
- component: applicationAccountShow
-}, {
path: "/users/:id",
component: applicationUsersShow
}, {
- path: "/users/new",
- component: applicationUsersNew
-},{
path: "/profile",
- component: applicationUsersProfile
-}, {
- path: "/descriptors",
- component: applicationDescriptorsIndex
-}, {
- path: "/descriptors/:id/edit",
- component: applicationDescriptorsEdit
-}, {
- path: "/descriptors/:id",
- component: applicationDescriptorsShow
-}, {
- path: "/descriptors/:id/privileges",
- component: applicationDescriptorsPrivileges
-}, {
- path: "/descriptors/new",
- component: applicationDescriptorsNew
-}, {
- path: "/roles",
- component: applicationRolesIndex
-}, {
- path: "/roles/new",
- component: applicationRolesNew
-}, {
- path: "/roles/:id",
- component: applicationRolesShow
-}, {
- path: "/roles/:id/edit",
- component: applicationRolesEdit
-}, {
- path: "/account/integrations",
- component: applicationIntegrationsIndex
-}, {
- path: "/account/integrations/new",
- component: applicationIntegrationsNew
-}, {
- path: "/account/settings/security",
- component: applicationSecurity
-}, {
- path: "/account/settings/date_time",
- component: applicationDatetime
-}, {
- path: "/account/settings/branding",
- component: applicationBranding
-}, {
- path: "/account/settings/theme",
- component: applicationTheme
-}, {
- path: "/account/settings/theme",
- component: applicationTheme
+ component: applicationProfile
}])
-*/