Skip to content

Commit

Permalink
[general] Moving front-end interface from previous project (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 28, 2024
1 parent 49b1cce commit a32e7a2
Show file tree
Hide file tree
Showing 13 changed files with 618 additions and 298 deletions.
2 changes: 1 addition & 1 deletion assets/composables/useRoutesNames.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IRoutes } from '@/types';
import { IRoutes } from '../types';

export function useRoutesNames(): { routeNames: IRoutes } {
const routeNames: IRoutes = {
Expand Down
2 changes: 1 addition & 1 deletion assets/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InjectionKey } from 'vue';
import { ITriggersModuleConfiguration, ITriggersModuleMeta } from '@/types';
import { ITriggersModuleConfiguration, ITriggersModuleMeta } from './types';

export const metaKey: InjectionKey<ITriggersModuleMeta> = Symbol('triggers-module_meta');
export const configurationKey: InjectionKey<ITriggersModuleConfiguration> = Symbol('triggers-module_configuration');
16 changes: 8 additions & 8 deletions assets/entry.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { App } from 'vue';

import moduleRouter from '@/router';
import { ITriggersModuleOptions, InstallFunction } from '@/types';
import { configurationKey, metaKey } from '@/configuration';
import moduleRouter from './router';
import { ITriggersModuleOptions, InstallFunction } from './types';
import { configurationKey, metaKey } from './configuration';

export function createTriggersModule(): InstallFunction {
const plugin: InstallFunction = {
Expand All @@ -26,9 +26,9 @@ export function createTriggersModule(): InstallFunction {
return plugin;
}

export * from '@/configuration';
export * from '@/composables';
export * from '@/layouts';
export * from '@/router';
export * from './configuration';
export * from './composables';
export * from './layouts';
export * from './router';

export * from '@/types';
export * from './types';
6 changes: 3 additions & 3 deletions assets/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { Router, RouteRecordRaw } from 'vue-router';

import { useRoutesNames } from '@/composables';
import { useRoutesNames } from '../composables';

const { routeNames } = useRoutesNames();

const moduleRoutes: RouteRecordRaw[] = [
{
path: '/',
name: routeNames.root,
component: () => import('@/layouts/layout-default.vue'),
component: () => import('../layouts/layout-default.vue'),
children: [
{
path: 'triggers',
name: routeNames.triggers,
component: () => import('@/views/view-triggers.vue'),
component: () => import('../views/view-triggers.vue'),
meta: {
guards: ['authenticated'],
},
Expand Down
212 changes: 0 additions & 212 deletions build/rollup.config.js

This file was deleted.

Loading

0 comments on commit a32e7a2

Please sign in to comment.