@ldmjs/ui 1.0.0-dev-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +15 -0
- package/.eslintrc.json +299 -0
- package/.yarnrc.yml +1 -0
- package/README.md +1 -0
- package/config/webpack.config.build.js +130 -0
- package/config/webpack.config.dev.js +85 -0
- package/dist/main.umd.js +311 -0
- package/dist/main.umd.js.LICENSE.txt +13 -0
- package/index.html +18 -0
- package/main.ts +10 -0
- package/package.json +44 -0
- package/src/app.vue +12 -0
- package/src/index.ts +45 -0
- package/src/ld-icon/icons/access_control_24.svg +3 -0
- package/src/ld-icon/icons/account_tree_black_24.svg +3 -0
- package/src/ld-icon/icons/add_a_stage_24.svg +3 -0
- package/src/ld-icon/icons/add_column_24.svg +3 -0
- package/src/ld-icon/icons/add_outline_24.svg +3 -0
- package/src/ld-icon/icons/add_user_24.svg +3 -0
- package/src/ld-icon/icons/add_user_24_max.svg +3 -0
- package/src/ld-icon/icons/additional_zone_mode_24.svg +5 -0
- package/src/ld-icon/icons/additional_zone_mode_24_max.svg +3 -0
- package/src/ld-icon/icons/archive_24.svg +3 -0
- package/src/ld-icon/icons/archive_24_max.svg +3 -0
- package/src/ld-icon/icons/arrow_downward_24.svg +3 -0
- package/src/ld-icon/icons/arrow_downward_24_max.svg +3 -0
- package/src/ld-icon/icons/arrow_upward_24.svg +3 -0
- package/src/ld-icon/icons/arrow_upward_24_max.svg +3 -0
- package/src/ld-icon/icons/assignment_24.svg +3 -0
- package/src/ld-icon/icons/attach_file_outline_24_1.svg +3 -0
- package/src/ld-icon/icons/attach_file_outline_24_2.svg +3 -0
- package/src/ld-icon/icons/attach_file_outline_24_3.svg +3 -0
- package/src/ld-icon/icons/attach_file_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/attantion_outline_24.svg +3 -0
- package/src/ld-icon/icons/attribute_label_24.svg +3 -0
- package/src/ld-icon/icons/back_24.svg +3 -0
- package/src/ld-icon/icons/back_24_max.svg +3 -0
- package/src/ld-icon/icons/back_to_base_doc_24.svg +3 -0
- package/src/ld-icon/icons/burger_menu_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/business_processes_24.svg +3 -0
- package/src/ld-icon/icons/cancel_outline_24.svg +3 -0
- package/src/ld-icon/icons/change_user_24.svg +4 -0
- package/src/ld-icon/icons/chat_24.svg +3 -0
- package/src/ld-icon/icons/chat_24_max.svg +3 -0
- package/src/ld-icon/icons/class_24.svg +3 -0
- package/src/ld-icon/icons/class_24_max.svg +3 -0
- package/src/ld-icon/icons/clear_date_outline_24.svg +3 -0
- package/src/ld-icon/icons/clip_outline_24_max.svg +10 -0
- package/src/ld-icon/icons/clock_24.svg +3 -0
- package/src/ld-icon/icons/clock_24_max.svg +3 -0
- package/src/ld-icon/icons/clock_outline_24.svg +3 -0
- package/src/ld-icon/icons/close_24_max.svg +3 -0
- package/src/ld-icon/icons/close_fullscreen_24.svg +3 -0
- package/src/ld-icon/icons/close_fullscreen_24_max.svg +3 -0
- package/src/ld-icon/icons/collapse_16.svg +4 -0
- package/src/ld-icon/icons/collapse_24.svg +4 -0
- package/src/ld-icon/icons/collapse_accordion_24.svg +3 -0
- package/src/ld-icon/icons/collapse_panel_24.svg +3 -0
- package/src/ld-icon/icons/collapse_tree_24.svg +3 -0
- package/src/ld-icon/icons/collapse_window_24.svg +3 -0
- package/src/ld-icon/icons/color_design_24.svg +3 -0
- package/src/ld-icon/icons/column_view_24.svg +3 -0
- package/src/ld-icon/icons/column_view_24_max.svg +3 -0
- package/src/ld-icon/icons/component_24.svg +3 -0
- package/src/ld-icon/icons/content_24.svg +3 -0
- package/src/ld-icon/icons/content_24_max.svg +3 -0
- package/src/ld-icon/icons/content_storage_management_24.svg +3 -0
- package/src/ld-icon/icons/control_24.svg +3 -0
- package/src/ld-icon/icons/copy_24.svg +3 -0
- package/src/ld-icon/icons/correspondent_24.svg +3 -0
- package/src/ld-icon/icons/correspondent_24_max-1.svg +3 -0
- package/src/ld-icon/icons/correspondent_24_max.svg +3 -0
- package/src/ld-icon/icons/create_a_desktop_outline_24.svg +3 -0
- package/src/ld-icon/icons/create_a_desktop_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/date_range_24.svg +5 -0
- package/src/ld-icon/icons/date_range_24_max.svg +3 -0
- package/src/ld-icon/icons/delegate_24.svg +3 -0
- package/src/ld-icon/icons/delete_24.svg +3 -0
- package/src/ld-icon/icons/delete_24_max.svg +3 -0
- package/src/ld-icon/icons/delete_user_24.svg +3 -0
- package/src/ld-icon/icons/delete_user_24_max.svg +3 -0
- package/src/ld-icon/icons/denied_24.svg +4 -0
- package/src/ld-icon/icons/department_24.svg +3 -0
- package/src/ld-icon/icons/departments_24.svg +3 -0
- package/src/ld-icon/icons/deploy_grid_24.svg +3 -0
- package/src/ld-icon/icons/dev_24.svg +10 -0
- package/src/ld-icon/icons/document_24.svg +3 -0
- package/src/ld-icon/icons/document_24_max.svg +3 -0
- package/src/ld-icon/icons/done_outline_24.svg +3 -0
- package/src/ld-icon/icons/done_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/down_to_the_end_24.svg +3 -0
- package/src/ld-icon/icons/edit_24.svg +3 -0
- package/src/ld-icon/icons/edit_24_max.svg +3 -0
- package/src/ld-icon/icons/edit_grid_24.svg +3 -0
- package/src/ld-icon/icons/electronic_signature_24.svg +3 -0
- package/src/ld-icon/icons/email_24.svg +3 -0
- package/src/ld-icon/icons/email_24_max.svg +3 -0
- package/src/ld-icon/icons/email_outline_24.svg +3 -0
- package/src/ld-icon/icons/email_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/event_24.svg +3 -0
- package/src/ld-icon/icons/event_24_max.svg +3 -0
- package/src/ld-icon/icons/expand_16.svg +4 -0
- package/src/ld-icon/icons/expand_24.svg +5 -0
- package/src/ld-icon/icons/expand_accordion__24.svg +3 -0
- package/src/ld-icon/icons/expand_navigation_panel_24.svg +3 -0
- package/src/ld-icon/icons/expand_panel_24.svg +3 -0
- package/src/ld-icon/icons/expand_tree_24.svg +3 -0
- package/src/ld-icon/icons/favourites_24.svg +3 -0
- package/src/ld-icon/icons/favourites_24_max.svg +3 -0
- package/src/ld-icon/icons/file_24.svg +3 -0
- package/src/ld-icon/icons/file_24_max.svg +3 -0
- package/src/ld-icon/icons/file_outline_24.svg +3 -0
- package/src/ld-icon/icons/file_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/filter_list_24.svg +3 -0
- package/src/ld-icon/icons/filter_list_24_max.svg +3 -0
- package/src/ld-icon/icons/folder_24.svg +3 -0
- package/src/ld-icon/icons/folder_24_max.svg +3 -0
- package/src/ld-icon/icons/folder_back_24.svg +3 -0
- package/src/ld-icon/icons/folder_files_24.svg +3 -0
- package/src/ld-icon/icons/folder_outline_24.svg +3 -0
- package/src/ld-icon/icons/folder_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/forbidden_24.svg +3 -0
- package/src/ld-icon/icons/forward_24.svg +3 -0
- package/src/ld-icon/icons/forward_24_max.svg +3 -0
- package/src/ld-icon/icons/from_project_outline_24.svg +3 -0
- package/src/ld-icon/icons/get_app_24.svg +3 -0
- package/src/ld-icon/icons/get_app_24_max.svg +3 -0
- package/src/ld-icon/icons/help_24.svg +3 -0
- package/src/ld-icon/icons/history_outline_24.svg +3 -0
- package/src/ld-icon/icons/history_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/home_24.svg +3 -0
- package/src/ld-icon/icons/home_24_max.svg +3 -0
- package/src/ld-icon/icons/host_24.svg +3 -0
- package/src/ld-icon/icons/info_24-1.svg +3 -0
- package/src/ld-icon/icons/info_24.svg +3 -0
- package/src/ld-icon/icons/info_24_max.svg +3 -0
- package/src/ld-icon/icons/info_outline_24.svg +3 -0
- package/src/ld-icon/icons/input_marker_24.svg +3 -0
- package/src/ld-icon/icons/insert_diagonal_link_outline_24.svg +3 -0
- package/src/ld-icon/icons/insert_link_outline_24.svg +3 -0
- package/src/ld-icon/icons/interaction_management_24.svg +3 -0
- package/src/ld-icon/icons/label_outline_24.svg +3 -0
- package/src/ld-icon/icons/label_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/lamp_24.svg +3 -0
- package/src/ld-icon/icons/lamp_24_max.svg +3 -0
- package/src/ld-icon/icons/list_view_24.svg +3 -0
- package/src/ld-icon/icons/list_view_24_max.svg +3 -0
- package/src/ld-icon/icons/live_help_24_max.svg +3 -0
- package/src/ld-icon/icons/lock_24.svg +3 -0
- package/src/ld-icon/icons/lock_24_max.svg +3 -0
- package/src/ld-icon/icons/lock_open_outline_24.svg +3 -0
- package/src/ld-icon/icons/lock_open_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/logicgroup_24.svg +3 -0
- package/src/ld-icon/icons/logo_windows_24.svg +3 -0
- package/src/ld-icon/icons/mailing_group_department_24.svg +3 -0
- package/src/ld-icon/icons/mass_actions_24.svg +3 -0
- package/src/ld-icon/icons/maximize_window_outline_24.svg +6 -0
- package/src/ld-icon/icons/mini_pin_24.svg +3 -0
- package/src/ld-icon/icons/model_resolutions_24.svg +3 -0
- package/src/ld-icon/icons/monitor_24.svg +3 -0
- package/src/ld-icon/icons/more_vert_24_max.svg +3 -0
- package/src/ld-icon/icons/more_vert_24s.svg +3 -0
- package/src/ld-icon/icons/multi_volume_archive_24.svg +4 -0
- package/src/ld-icon/icons/negative_report_accepted_24.svg +4 -0
- package/src/ld-icon/icons/new_version_24.svg +3 -0
- package/src/ld-icon/icons/next_24.svg +4 -0
- package/src/ld-icon/icons/next_24_max.svg +3 -0
- package/src/ld-icon/icons/notyfications_24.svg +3 -0
- package/src/ld-icon/icons/notyfications_24_max.svg +3 -0
- package/src/ld-icon/icons/object_right.svg +4 -0
- package/src/ld-icon/icons/on_hold_24.svg +3 -0
- package/src/ld-icon/icons/on_hold_outline_24.svg +3 -0
- package/src/ld-icon/icons/open_in_full_24.svg +3 -0
- package/src/ld-icon/icons/open_in_full_24_max.svg +3 -0
- package/src/ld-icon/icons/open_modal_24.svg +3 -0
- package/src/ld-icon/icons/open_modal_24_max.svg +4 -0
- package/src/ld-icon/icons/pages_outline_24.svg +3 -0
- package/src/ld-icon/icons/pages_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/parallel_24.svg +3 -0
- package/src/ld-icon/icons/parallel_24_max.svg +3 -0
- package/src/ld-icon/icons/pause_18.svg +3 -0
- package/src/ld-icon/icons/photo_camera_24_max.svg +10 -0
- package/src/ld-icon/icons/pie_chart_24.svg +3 -0
- package/src/ld-icon/icons/pie_chart_24_max.svg +3 -0
- package/src/ld-icon/icons/pin_24.svg +3 -0
- package/src/ld-icon/icons/preview_mode_off_24.svg +3 -0
- package/src/ld-icon/icons/preview_mode_off_24_max.svg +3 -0
- package/src/ld-icon/icons/preview_mode_on_24.svg +3 -0
- package/src/ld-icon/icons/preview_mode_on_24_max.svg +3 -0
- package/src/ld-icon/icons/previous_24.svg +3 -0
- package/src/ld-icon/icons/previous_24_max.svg +3 -0
- package/src/ld-icon/icons/print_24.svg +3 -0
- package/src/ld-icon/icons/print_24_max.svg +3 -0
- package/src/ld-icon/icons/project_24.svg +3 -0
- package/src/ld-icon/icons/project_24_max.svg +3 -0
- package/src/ld-icon/icons/read_email_24.svg +3 -0
- package/src/ld-icon/icons/recipient_24.svg +3 -0
- package/src/ld-icon/icons/recipient_organization_24.svg +3 -0
- package/src/ld-icon/icons/redirect_24.svg +3 -0
- package/src/ld-icon/icons/redirect_24_max.svg +3 -0
- package/src/ld-icon/icons/refresh_outline_24.svg +3 -0
- package/src/ld-icon/icons/refresh_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/related_files_outline_24.svg +3 -0
- package/src/ld-icon/icons/remove_24.svg +3 -0
- package/src/ld-icon/icons/remove_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/rename_outline_24.svg +3 -0
- package/src/ld-icon/icons/repeat_report_for_user_24.svg +3 -0
- package/src/ld-icon/icons/reply_24.svg +3 -0
- package/src/ld-icon/icons/reply_24_max.svg +3 -0
- package/src/ld-icon/icons/restore_deleted_24.svg +3 -0
- package/src/ld-icon/icons/role_24.svg +3 -0
- package/src/ld-icon/icons/role_icon_24.svg +3 -0
- package/src/ld-icon/icons/roll_up_grid_24.svg +3 -0
- package/src/ld-icon/icons/save_24.svg +3 -0
- package/src/ld-icon/icons/save_24_max.svg +3 -0
- package/src/ld-icon/icons/scan_24.svg +3 -0
- package/src/ld-icon/icons/scheduler_24_1.svg +3 -0
- package/src/ld-icon/icons/scheduler_24_2.svg +3 -0
- package/src/ld-icon/icons/search_outline_24.svg +3 -0
- package/src/ld-icon/icons/search_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/select_the_widget_24.svg +3 -0
- package/src/ld-icon/icons/send_24.svg +3 -0
- package/src/ld-icon/icons/send_24_max.svg +3 -0
- package/src/ld-icon/icons/sequential_24.svg +3 -0
- package/src/ld-icon/icons/sequential_24_max.svg +3 -0
- package/src/ld-icon/icons/settings_24.svg +3 -0
- package/src/ld-icon/icons/settings_24_max.svg +3 -0
- package/src/ld-icon/icons/share_24.svg +3 -0
- package/src/ld-icon/icons/share_24_max.svg +3 -0
- package/src/ld-icon/icons/show_recipients_outline_24.svg +3 -0
- package/src/ld-icon/icons/sort_outline_24.svg +3 -0
- package/src/ld-icon/icons/stamp_24.svg +3 -0
- package/src/ld-icon/icons/star_outline_24.svg +3 -0
- package/src/ld-icon/icons/star_outline_24_max.svg +3 -0
- package/src/ld-icon/icons/start_the_route_24_max.svg +3 -0
- package/src/ld-icon/icons/statistics_24.svg +3 -0
- package/src/ld-icon/icons/stop_the_route_24.svg +3 -0
- package/src/ld-icon/icons/subsystem_24.svg +3 -0
- package/src/ld-icon/icons/successfully_24.svg +4 -0
- package/src/ld-icon/icons/table_view_24.svg +3 -0
- package/src/ld-icon/icons/table_view_24_max.svg +3 -0
- package/src/ld-icon/icons/tag_24.svg +3 -0
- package/src/ld-icon/icons/the_report_is_accepted_24.svg +3 -0
- package/src/ld-icon/icons/to_the_begining_24.svg +3 -0
- package/src/ld-icon/icons/to_the_end_24.svg +3 -0
- package/src/ld-icon/icons/typical__route_24_max.svg +7 -0
- package/src/ld-icon/icons/typical_route_24-1.svg +3 -0
- package/src/ld-icon/icons/typical_route_24.svg +3 -0
- package/src/ld-icon/icons/unarchive_24.svg +3 -0
- package/src/ld-icon/icons/undo_outline_24.svg +3 -0
- package/src/ld-icon/icons/unpin_navigation_panel_24.svg +3 -0
- package/src/ld-icon/icons/up_24.svg +3 -0
- package/src/ld-icon/icons/up_to_the_begining_24.svg +3 -0
- package/src/ld-icon/icons/user_icon_24.svg +3 -0
- package/src/ld-icon/icons/user_icon_24_max.svg +3 -0
- package/src/ld-icon/icons/user_rights_24.svg +3 -0
- package/src/ld-icon/icons/verified_user_24.svg +3 -0
- package/src/ld-icon/icons/verified_user_24_max.svg +3 -0
- package/src/ld-icon/icons/viewing_24.svg +7 -0
- package/src/ld-icon/icons/vocabulary_24.svg +3 -0
- package/src/ld-icon/icons/warning_24.svg +3 -0
- package/src/ld-icon/icons/warning_24_max.svg +3 -0
- package/src/ld-icon/icons/warning_outline_24.svg +3 -0
- package/src/ld-icon/icons/whats_new_24.svg +3 -0
- package/src/ld-icon/icons/work_outline_24.svg +3 -0
- package/src/ld-icon/icons/work_outline_24_max.svg +3 -0
- package/src/ld-icon/icons.html +37 -0
- package/src/ld-icon/icons.json +147 -0
- package/src/ld-icon/icons.md +2 -0
- package/src/ld-icon/ld-icon.ts +59 -0
- package/src/ld-icon/ld-icon.vue +1 -0
- package/src/ld-icon/svg-icon.ts +10 -0
- package/src/ld-icon/svg-icon.vue +6 -0
- package/tsconfig.json +32 -0
- package/typings/declarations.d.ts +2 -0
- package/typings/vue-shims.d.ts +19 -0
- package/typings/vue.d.ts +34 -0
package/.eslintignore
ADDED
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Настройки проекта
|
|
3
|
+
"env": {
|
|
4
|
+
// Проект для браузера
|
|
5
|
+
"browser": true,
|
|
6
|
+
// Включаем возможности ES6
|
|
7
|
+
"es6": true,
|
|
8
|
+
// Добавляем возможности ES2017
|
|
9
|
+
"es2017": true
|
|
10
|
+
},
|
|
11
|
+
// Наборы правил
|
|
12
|
+
"extends": [
|
|
13
|
+
// Базовый набор правил eslint
|
|
14
|
+
"eslint:recommended",
|
|
15
|
+
"plugin:promise/recommended",
|
|
16
|
+
// Отключаем правила из базового набора
|
|
17
|
+
// "plugin:@typescript-eslint/eslint-recommended",
|
|
18
|
+
// Базовые правила для TypeScript
|
|
19
|
+
"plugin:@typescript-eslint/recommended",
|
|
20
|
+
// Правила TS, требующие инфо о типах
|
|
21
|
+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
22
|
+
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
|
|
23
|
+
"plugin:vue/base"
|
|
24
|
+
],
|
|
25
|
+
// Движок парсинга
|
|
26
|
+
"parser": "vue-eslint-parser",
|
|
27
|
+
"parserOptions": {
|
|
28
|
+
"parser": "@typescript-eslint/parser",
|
|
29
|
+
// Движку нужен проект TS для правил с типами
|
|
30
|
+
"project": "tsconfig.json",
|
|
31
|
+
"tsconfigRootDir": ".",
|
|
32
|
+
"extraFileExtensions": [".vue", ".html"]
|
|
33
|
+
},
|
|
34
|
+
// Плагин с наборами правил для TypeScript
|
|
35
|
+
"plugins": ["prettier", "@typescript-eslint", "promise", "vue"],
|
|
36
|
+
"rules": {
|
|
37
|
+
"prettier/prettier": [
|
|
38
|
+
"error",
|
|
39
|
+
{
|
|
40
|
+
"usePrettierrc": true,
|
|
41
|
+
"printWidth": 120
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"no-shadow": [
|
|
45
|
+
"off",
|
|
46
|
+
{
|
|
47
|
+
"builtinGlobals": false
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"no-duplicate-imports": [
|
|
51
|
+
"error",
|
|
52
|
+
{
|
|
53
|
+
"includeExports": true
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"no-template-curly-in-string": "error",
|
|
57
|
+
"block-scoped-var": "error",
|
|
58
|
+
"curly": ["error", "all"],
|
|
59
|
+
"eqeqeq": "error",
|
|
60
|
+
"max-classes-per-file": ["error", 1],
|
|
61
|
+
"no-alert": "error",
|
|
62
|
+
"no-console": ["error", { "allow": ["time", "timeEnd"] }],
|
|
63
|
+
"no-else-return": [
|
|
64
|
+
"error",
|
|
65
|
+
{
|
|
66
|
+
"allowElseIf": false
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"no-implicit-coercion": "error",
|
|
70
|
+
"no-labels": "error",
|
|
71
|
+
"no-lone-blocks": "error",
|
|
72
|
+
"no-multi-spaces": "error",
|
|
73
|
+
"no-new": "error",
|
|
74
|
+
"no-new-func": "error",
|
|
75
|
+
"no-new-wrappers": "error",
|
|
76
|
+
"no-return-await": "error",
|
|
77
|
+
"no-self-compare": "error",
|
|
78
|
+
"no-sequences": "error",
|
|
79
|
+
"no-throw-literal": "error",
|
|
80
|
+
"no-unused-expressions": "error",
|
|
81
|
+
"no-useless-call": "error",
|
|
82
|
+
"no-useless-concat": "error",
|
|
83
|
+
"no-useless-return": "error",
|
|
84
|
+
"prefer-promise-reject-errors": "error",
|
|
85
|
+
"radix": "error",
|
|
86
|
+
"no-undefined": "error",
|
|
87
|
+
"array-bracket-newline": [
|
|
88
|
+
"off",
|
|
89
|
+
{
|
|
90
|
+
"multiline": true
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"comma-dangle": "off",
|
|
94
|
+
"comma-style": "error",
|
|
95
|
+
"eol-last": "error",
|
|
96
|
+
"key-spacing": "error",
|
|
97
|
+
"keyword-spacing": "error",
|
|
98
|
+
"new-parens": "error",
|
|
99
|
+
"no-bitwise": "warn",
|
|
100
|
+
"no-lonely-if": "warn",
|
|
101
|
+
"no-multiple-empty-lines": "error",
|
|
102
|
+
"no-nested-ternary": "error",
|
|
103
|
+
"no-new-object": "error",
|
|
104
|
+
"no-tabs": [
|
|
105
|
+
"error",
|
|
106
|
+
{
|
|
107
|
+
"allowIndentationTabs": true
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"no-trailing-spaces": "error",
|
|
111
|
+
"no-unneeded-ternary": "error",
|
|
112
|
+
"no-whitespace-before-property": "error",
|
|
113
|
+
"object-curly-newline": "error",
|
|
114
|
+
"object-curly-spacing": ["error", "always"],
|
|
115
|
+
"semi-spacing": "error",
|
|
116
|
+
"space-before-blocks": "error",
|
|
117
|
+
"space-before-function-paren": [
|
|
118
|
+
"error",
|
|
119
|
+
{
|
|
120
|
+
"anonymous": "always",
|
|
121
|
+
"named": "never",
|
|
122
|
+
"asyncArrow": "always"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"space-in-parens": "error",
|
|
126
|
+
"space-infix-ops": "error",
|
|
127
|
+
"space-unary-ops": "error",
|
|
128
|
+
"spaced-comment": ["error", "always"],
|
|
129
|
+
"switch-colon-spacing": "error",
|
|
130
|
+
"arrow-body-style": ["error", "as-needed"],
|
|
131
|
+
"arrow-parens": ["error", "as-needed"],
|
|
132
|
+
"arrow-spacing": "error",
|
|
133
|
+
"no-useless-computed-key": "error",
|
|
134
|
+
"no-useless-rename": "error",
|
|
135
|
+
"object-shorthand": ["error", "always"],
|
|
136
|
+
"prefer-arrow-callback": "warn",
|
|
137
|
+
"prefer-destructuring": "off",
|
|
138
|
+
"rest-spread-spacing": ["error", "never"],
|
|
139
|
+
"sort-imports": "off",
|
|
140
|
+
"template-curly-spacing": "error",
|
|
141
|
+
"optimize-regex/optimize-regex": "warn",
|
|
142
|
+
"@typescript-eslint/no-extra-parens": ["off"],
|
|
143
|
+
"@typescript-eslint/semi": ["error", "always"],
|
|
144
|
+
"@typescript-eslint/member-delimiter-style": [
|
|
145
|
+
"error",
|
|
146
|
+
{
|
|
147
|
+
"multiline": {
|
|
148
|
+
"delimiter": "semi"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"@typescript-eslint/member-ordering": "off",
|
|
153
|
+
"@typescript-eslint/no-magic-numbers": [
|
|
154
|
+
"off",
|
|
155
|
+
{
|
|
156
|
+
"ignoreNumericLiteralTypes": true,
|
|
157
|
+
"ignoreEnums": true,
|
|
158
|
+
"enforceConst": true,
|
|
159
|
+
"ignoreReadonlyClassProperties": true,
|
|
160
|
+
"ignore": [0, 1, 24, 60, 1000]
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"@typescript-eslint/indent": ["off", 2],
|
|
164
|
+
"@typescript-eslint/quotes": [
|
|
165
|
+
"error",
|
|
166
|
+
"single",
|
|
167
|
+
{
|
|
168
|
+
"avoidEscape": true
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"@typescript-eslint/func-call-spacing": ["error", "never"],
|
|
172
|
+
"@typescript-eslint/no-useless-constructor": "error",
|
|
173
|
+
"@typescript-eslint/prefer-for-of": "warn",
|
|
174
|
+
"@typescript-eslint/no-parameter-properties": "off",
|
|
175
|
+
"@typescript-eslint/no-unsafe-argument": "off",
|
|
176
|
+
"@typescript-eslint/no-unnecessary-type-arguments": "warn",
|
|
177
|
+
"@typescript-eslint/prefer-function-type": "warn",
|
|
178
|
+
"@typescript-eslint/prefer-readonly": "warn",
|
|
179
|
+
"@typescript-eslint/no-explicit-any": "error",
|
|
180
|
+
"@typescript-eslint/explicit-function-return-type": [
|
|
181
|
+
"off",
|
|
182
|
+
{
|
|
183
|
+
"allowExpressions": true
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
187
|
+
"@typescript-eslint/interface-name-prefix": "off",
|
|
188
|
+
"@typescript-eslint/no-unused-vars": [
|
|
189
|
+
"error",
|
|
190
|
+
{
|
|
191
|
+
"argsIgnorePattern": "^",
|
|
192
|
+
"varsIgnorePattern": "^$"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
196
|
+
"simple-import-sort/imports": [
|
|
197
|
+
"error",
|
|
198
|
+
{
|
|
199
|
+
// The default grouping, but with no blank lines.
|
|
200
|
+
"groups": [["^\\u0000", "^@?\\w", "^[^.]", "^\\."]]
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"no-case-declarations": "off",
|
|
204
|
+
"@typescript-eslint/no-misused-promises": [
|
|
205
|
+
"error",
|
|
206
|
+
{
|
|
207
|
+
"checksVoidReturn": false
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"promise/catch-or-return": [
|
|
211
|
+
"error",
|
|
212
|
+
{
|
|
213
|
+
"allowFinally": true
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"vue/html-self-closing": "off",
|
|
217
|
+
"@typescript-eslint/explicit-module-boundary-types": ["off"],
|
|
218
|
+
"@typescript-eslint/typedef": [
|
|
219
|
+
"error",
|
|
220
|
+
{
|
|
221
|
+
"arrayDestructuring": false,
|
|
222
|
+
"arrowParameter": false,
|
|
223
|
+
"memberVariableDeclaration": false,
|
|
224
|
+
"objectDestructuring": false,
|
|
225
|
+
"parameter": true,
|
|
226
|
+
"propertyDeclaration": true,
|
|
227
|
+
"variableDeclaration": false,
|
|
228
|
+
"variableDeclarationIgnoreFunction": true
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"@typescript-eslint/no-inferrable-types": [
|
|
232
|
+
"error",
|
|
233
|
+
{
|
|
234
|
+
"ignoreParameters": true
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"vuetify/no-deprecated-classes": "error",
|
|
238
|
+
"vuetify/grid-unknown-attributes": "error",
|
|
239
|
+
"vuetify/no-deprecated-colors": "off",
|
|
240
|
+
"camelcase": "off",
|
|
241
|
+
"@typescript-eslint/naming-convention": [
|
|
242
|
+
"error",
|
|
243
|
+
{
|
|
244
|
+
"selector": "default",
|
|
245
|
+
"format": ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
246
|
+
"leadingUnderscore": "allow",
|
|
247
|
+
"filter": {
|
|
248
|
+
"regex": "(\\w*-\\w*)|(:\\w*)|(@\\w*)|(\\d)",
|
|
249
|
+
"match": false
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"selector": "variable",
|
|
254
|
+
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
|
|
255
|
+
"leadingUnderscore": "allow"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"selector": "parameter",
|
|
259
|
+
"format": ["camelCase", "PascalCase"],
|
|
260
|
+
"leadingUnderscore": "allow"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"selector": "memberLike",
|
|
264
|
+
"modifiers": ["public", "private", "static"],
|
|
265
|
+
"format": ["camelCase", "UPPER_CASE"],
|
|
266
|
+
"leadingUnderscore": "allow"
|
|
267
|
+
},
|
|
268
|
+
// {
|
|
269
|
+
// "selector": "memberLike",
|
|
270
|
+
// "modifiers": ["private static"],
|
|
271
|
+
// "format": ["camelCase", "UPPER_CASE"],
|
|
272
|
+
// "leadingUnderscore": "allow"
|
|
273
|
+
// },
|
|
274
|
+
{
|
|
275
|
+
"selector": "typeLike",
|
|
276
|
+
"format": ["PascalCase", "UPPER_CASE"]
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"@typescript-eslint/no-floating-promises": [
|
|
280
|
+
"off",
|
|
281
|
+
{
|
|
282
|
+
"ignoreVoid": false,
|
|
283
|
+
"ignoreIIFE": false
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"require-await": "off",
|
|
287
|
+
"@typescript-eslint/require-await": "error",
|
|
288
|
+
"@typescript-eslint/no-shadow": ["error"],
|
|
289
|
+
"sonarjs/cognitive-complexity": "off",
|
|
290
|
+
"sonarjs/prefer-immediate-return": "error",
|
|
291
|
+
"sonarjs/no-duplicate-string": "error",
|
|
292
|
+
"@typescript-eslint/restrict-template-expressions": "off",
|
|
293
|
+
"@typescript-eslint/restrict-plus-operands": "off",
|
|
294
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
295
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
296
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
297
|
+
"@typescript-eslint/no-unsafe-return": "off"
|
|
298
|
+
}
|
|
299
|
+
}
|
package/.yarnrc.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodeLinker: node-modules
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hello, LDM!
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
const TerserPlugin = require('terser-webpack-plugin');
|
|
2
|
+
const { VueLoaderPlugin } = require('vue-loader');
|
|
3
|
+
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
4
|
+
const DefinePlugin = require('webpack/lib/DefinePlugin');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
mode: 'production',
|
|
9
|
+
entry: {
|
|
10
|
+
'main': path.join(__dirname, '../src/index.ts'),
|
|
11
|
+
},
|
|
12
|
+
output: {
|
|
13
|
+
umdNamedDefine: true,
|
|
14
|
+
libraryTarget: 'umd',
|
|
15
|
+
library: 'ldm-ui',
|
|
16
|
+
filename: 'main.umd.js',
|
|
17
|
+
path: path.resolve(__dirname, '../dist'),
|
|
18
|
+
},
|
|
19
|
+
externals: {
|
|
20
|
+
'vue': 'vue',
|
|
21
|
+
'vue-class-component': 'vue-class-component',
|
|
22
|
+
'vue-property-decorator': 'vue-property-decorator'
|
|
23
|
+
},
|
|
24
|
+
resolve: {
|
|
25
|
+
symlinks: true,
|
|
26
|
+
modules: [path.join(__dirname, '../'), 'node_modules'],
|
|
27
|
+
extensions: ['*', '.ts', '.js', '.vue', '.html', '.json', '.scss'],
|
|
28
|
+
alias: {
|
|
29
|
+
'vue$': 'vue/dist/vue.esm-bundler.js',
|
|
30
|
+
'@': 'src',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
module: {
|
|
34
|
+
rules: [
|
|
35
|
+
{
|
|
36
|
+
test: /\.vue$/,
|
|
37
|
+
use: [
|
|
38
|
+
{
|
|
39
|
+
loader: 'vue-loader',
|
|
40
|
+
options: {
|
|
41
|
+
compilerOptions: {
|
|
42
|
+
whitespace: 'preserve',
|
|
43
|
+
},
|
|
44
|
+
hotReload: true
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
test: /\.ts$/,
|
|
51
|
+
exclude: /node_modules|\.(spec|e2e|d)\.ts$|vue\/src/,
|
|
52
|
+
use: [
|
|
53
|
+
{
|
|
54
|
+
loader: 'ts-loader',
|
|
55
|
+
options: {
|
|
56
|
+
appendTsSuffixTo: [/\.vue$/],
|
|
57
|
+
transpileOnly: true,
|
|
58
|
+
happyPackMode: false,
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
optimization: {
|
|
66
|
+
minimize: false,
|
|
67
|
+
minimizer: [
|
|
68
|
+
new TerserPlugin({
|
|
69
|
+
exclude: /\/assets\//,
|
|
70
|
+
parallel: true,
|
|
71
|
+
terserOptions: {
|
|
72
|
+
// ecma: 8,
|
|
73
|
+
warnings: false,
|
|
74
|
+
mangle: true,
|
|
75
|
+
output: {
|
|
76
|
+
comments: false,
|
|
77
|
+
beautify: false,
|
|
78
|
+
},
|
|
79
|
+
toplevel: true,
|
|
80
|
+
nameCache: null,
|
|
81
|
+
ie8: false,
|
|
82
|
+
keep_classnames: true,
|
|
83
|
+
keep_fnames: true,
|
|
84
|
+
safari10: false,
|
|
85
|
+
// unsafe: true, // new options
|
|
86
|
+
// inline: true, // new options
|
|
87
|
+
// passes: 2, // new options
|
|
88
|
+
// keep_fargs: false, // new options
|
|
89
|
+
compress: {
|
|
90
|
+
// turn off flags with small gains to speed up minification
|
|
91
|
+
arrows: false,
|
|
92
|
+
collapse_vars: false, // 0.3kb
|
|
93
|
+
comparisons: false,
|
|
94
|
+
computed_props: false,
|
|
95
|
+
hoist_funs: false,
|
|
96
|
+
hoist_props: false,
|
|
97
|
+
hoist_vars: false,
|
|
98
|
+
inline: false,
|
|
99
|
+
loops: false,
|
|
100
|
+
negate_iife: false,
|
|
101
|
+
properties: false,
|
|
102
|
+
reduce_funcs: false,
|
|
103
|
+
reduce_vars: false,
|
|
104
|
+
switches: false,
|
|
105
|
+
toplevel: false,
|
|
106
|
+
typeofs: false,
|
|
107
|
+
|
|
108
|
+
// a few flags with noticable gains/speed ratio
|
|
109
|
+
// numbers based on out of the box vendor bundle
|
|
110
|
+
booleans: true, // 0.7kb
|
|
111
|
+
if_return: true, // 0.4kb
|
|
112
|
+
sequences: true, // 0.7kb
|
|
113
|
+
unused: true, // 2.3kb
|
|
114
|
+
|
|
115
|
+
// required features to drop conditional branches
|
|
116
|
+
conditionals: true,
|
|
117
|
+
dead_code: true,
|
|
118
|
+
evaluate: true
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
}),
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
plugins: [
|
|
125
|
+
new VueLoaderPlugin(),
|
|
126
|
+
new DefinePlugin({
|
|
127
|
+
'$DEV': false,
|
|
128
|
+
}),
|
|
129
|
+
]
|
|
130
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const { VueLoaderPlugin } = require('vue-loader');
|
|
2
|
+
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
3
|
+
const DefinePlugin = require('webpack/lib/DefinePlugin');
|
|
4
|
+
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
mode: 'development',
|
|
9
|
+
entry: {
|
|
10
|
+
'main': './main.ts',
|
|
11
|
+
},
|
|
12
|
+
module: {
|
|
13
|
+
rules: [
|
|
14
|
+
{
|
|
15
|
+
test: /\.vue$/,
|
|
16
|
+
use: [
|
|
17
|
+
{
|
|
18
|
+
loader: 'vue-loader',
|
|
19
|
+
options: {
|
|
20
|
+
compilerOptions: {
|
|
21
|
+
whitespace: 'preserve',
|
|
22
|
+
},
|
|
23
|
+
hotReload: true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
test: /\.ts$/,
|
|
30
|
+
exclude: /node_modules|\.(spec|e2e|d)\.ts$|vue\/src/,
|
|
31
|
+
use: [
|
|
32
|
+
{
|
|
33
|
+
loader: 'ts-loader',
|
|
34
|
+
options: {
|
|
35
|
+
appendTsSuffixTo: [/\.vue$/],
|
|
36
|
+
transpileOnly: true,
|
|
37
|
+
happyPackMode: false,
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
resolve: {
|
|
45
|
+
symlinks: true,
|
|
46
|
+
modules: [path.join(__dirname, '../'), 'node_modules'],
|
|
47
|
+
extensions: ['*', '.ts', '.js', '.vue', '.html', '.json', '.scss'],
|
|
48
|
+
alias: {
|
|
49
|
+
'vue$': 'vue/dist/vue.esm-bundler.js',
|
|
50
|
+
'@': 'src',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
plugins: [
|
|
54
|
+
new VueLoaderPlugin(),
|
|
55
|
+
new HtmlWebpackPlugin({
|
|
56
|
+
inject: true,
|
|
57
|
+
template: './index.html'
|
|
58
|
+
}),
|
|
59
|
+
new DefinePlugin({
|
|
60
|
+
'$DEV': true,
|
|
61
|
+
'__VUE_OPTIONS_API__': true,
|
|
62
|
+
'__VUE_PROD_DEVTOOLS__': false,
|
|
63
|
+
'__VUE_PROD_HYDRATION_MISMATCH_DETAILS__': false,
|
|
64
|
+
}),
|
|
65
|
+
new CopyWebpackPlugin({
|
|
66
|
+
patterns: [
|
|
67
|
+
{
|
|
68
|
+
from: 'src/ld-icon/icons',
|
|
69
|
+
to: './icons'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
from: 'src/ld-icon/icons.json',
|
|
73
|
+
to: './icons.json'
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}),
|
|
77
|
+
],
|
|
78
|
+
devServer: {
|
|
79
|
+
https: false,
|
|
80
|
+
port: 4000,
|
|
81
|
+
host: '0.0.0.0',
|
|
82
|
+
historyApiFallback: true,
|
|
83
|
+
hot: true,
|
|
84
|
+
}
|
|
85
|
+
}
|