-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 3d887ea.
- Loading branch information
Showing
8 changed files
with
113 additions
and
50 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import FsExtendsType from "./type"; | ||
import { utils } from "@fast-crud/fast-crud"; | ||
// @ts-ignore | ||
const modules = import.meta.globEager("./components/*.vue"); | ||
import { VueClipboard } from "@soerenmartius/vue3-clipboard"; | ||
const FsExtendsComponents = { | ||
install(app: any) { | ||
utils.vite.installSyncComponents(app, modules, null, null, null); | ||
} | ||
}; | ||
|
||
export const FsExtendsCopyable = { | ||
install(app: any) { | ||
app.use(FsExtendsType); | ||
app.use(FsExtendsComponents); | ||
app.use(VueClipboard); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import FsUploaderType from "./type"; | ||
export * from "./type"; | ||
import { utils } from "@fast-crud/fast-crud"; | ||
import { FsEditorConfig } from "@/editor/type/config"; | ||
// @ts-ignore | ||
const modules = import.meta.globEager("./components/*/*.vue"); | ||
const FsUploaderComponents = { | ||
install(app: any) { | ||
utils.vite.installSyncComponents(app, modules, null, /^.*\/([^\/]+)\/.*.vue$/, null); | ||
} | ||
}; | ||
|
||
export const FsExtendsEditor = { | ||
install(app: any, options: FsEditorConfig) { | ||
app.use(FsUploaderType, options); | ||
app.use(FsUploaderComponents); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from "./uploader/index.umd"; | ||
export * from "./editor/index.umd"; | ||
export * from "./json/index.umd"; | ||
export * from "./copyable/index.umd"; | ||
export * from "./time/index.umd"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import FsExtendsType from "./type"; | ||
export * from "./type"; | ||
import { utils } from "@fast-crud/fast-crud"; | ||
// @ts-ignore | ||
const modules = import.meta.globEager("./components/*.vue"); | ||
const FsExtendsComponents = { | ||
install(app: any) { | ||
utils.vite.installSyncComponents(app, modules, null, null, null); | ||
} | ||
}; | ||
|
||
export const FsExtendsJson = { | ||
install(app: any) { | ||
app.use(FsExtendsType); | ||
app.use(FsExtendsComponents); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import FsExtendsType from "./type"; | ||
import { utils } from "@fast-crud/fast-crud"; | ||
// @ts-ignore | ||
const modules = import.meta.globEager("./components/*.vue"); | ||
const FsExtendsComponents = { | ||
install(app: any) { | ||
utils.vite.installSyncComponents(app, modules, null, null, null); | ||
} | ||
}; | ||
|
||
export const FsExtendsTime = { | ||
install(app: any) { | ||
app.use(FsExtendsType); | ||
app.use(FsExtendsComponents); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import FsUploaderType from "./type"; | ||
export * from "./type"; | ||
import { utils } from "@fast-crud/fast-crud"; | ||
import { FsUploaderOptions } from "./d.ts/type"; | ||
// @ts-ignore | ||
const modules = import.meta.globEager("./components/*.vue"); | ||
const FsUploaderComponents = { | ||
install(app: any) { | ||
utils.vite.installSyncComponents(app, modules, null, null, null); | ||
} | ||
}; | ||
|
||
export const FsExtendsUploader = { | ||
install(app: any, options: FsUploaderOptions) { | ||
app.use(FsUploaderType, options); | ||
app.use(FsUploaderComponents); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters