mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Create define (#156)
* Delete unused styles from linear progress * Allow vuei18n result as name in table haeder * Rename createX to defineX * Fix styling glitch in private view
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import CollectionsOverview from './routes/collections-overview.vue';
|
||||
import { createModule } from '@/modules/create';
|
||||
import { defineModule } from '@/modules/define';
|
||||
|
||||
export default createModule({
|
||||
export default defineModule({
|
||||
id: 'collections',
|
||||
register: ({ i18n }) => ({
|
||||
name: i18n.tc('collection', 2),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { i18n } from '@/lang/';
|
||||
import { Module, ModuleOptions, ModuleContext } from './types';
|
||||
|
||||
export function createModule(options: ModuleOptions): Module {
|
||||
export function defineModule(options: ModuleOptions): Module {
|
||||
const context: ModuleContext = { i18n };
|
||||
|
||||
const config = {
|
||||
Reference in New Issue
Block a user