-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] Remove duplicated names - [x] Improve the way to load plugins and extensions - [x] Auto loading new plugins - [x] Convert to typescript - [x] Delete unused directive
- Loading branch information
1 parent
4e4d897
commit ea27b9d
Showing
23 changed files
with
93 additions
and
64 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
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
17 changes: 14 additions & 3 deletions
17
...end/plugins/directives/badge.directive.js → ...end/plugins/directives/badge.directive.ts
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
1 change: 1 addition & 0 deletions
1
...nd/plugins/directives/circle.directive.js → ...nd/plugins/directives/circle.directive.ts
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Vue from "vue"; | ||
|
||
Vue.directive("circle", { | ||
bind: (element, binding) => { | ||
let circleDiameter = "0px"; | ||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
argilla-frontend/plugins/directives/optional-field.directive.js
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
9 changes: 8 additions & 1 deletion
9
argilla-frontend/plugins/plugins/filters.js → ...ntend/plugins/extensions/format-number.ts
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
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...frontend/plugins/plugins/vue-draggable.js → ...ntend/plugins/extensions/vue-draggable.ts
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Vue from "vue"; | ||
import Draggable from "vuedraggable"; | ||
|
||
// eslint-disable-next-line vue/component-definition-name-casing, vue/multi-word-component-names | ||
Vue.component("draggable", Draggable); |
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,28 @@ | ||
import { Context } from "@nuxt/types"; | ||
import { Inject } from "@nuxt/types/app"; | ||
|
||
declare const require: { | ||
context( | ||
directory: string, | ||
useSubdirectories: boolean, | ||
regExp: RegExp | ||
): { | ||
keys(): string[]; | ||
(id: string); | ||
}; | ||
}; | ||
|
||
export default (context: Context, inject: Inject) => { | ||
const importing = require.context("./", true, /^\.\/.*\.(ts|js)$/); | ||
|
||
importing | ||
.keys() | ||
.filter((key) => key !== "./index.ts") | ||
.forEach((key) => { | ||
const module = importing(key); | ||
|
||
if (module.default) { | ||
module.default(context, inject); | ||
} | ||
}); | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.