@loftyshaky/shared-app 0.0.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/_locales/de/messages.json +128 -0
- package/_locales/en/messages.json +131 -0
- package/_locales/ru/messages.json +128 -0
- package/announcement.d.ts +2 -0
- package/announcement.js +1 -0
- package/app.d.ts +5 -0
- package/app.js +1 -0
- package/chunk-app-198a1b93.js +1 -0
- package/chunk-main-1095d121.js +9 -0
- package/chunk-main-651fde68.js +1 -0
- package/chunk-main-b3455ac8.js +1 -0
- package/chunk-pickr.min-a2459eac.js +1 -0
- package/ext.d.ts +5 -0
- package/ext.js +1 -0
- package/fonts/noto_sans.woff2 +0 -0
- package/html/announcement.html +15 -0
- package/index.d.ts +3 -0
- package/index.js +1 -0
- package/inputs.d.ts +2 -0
- package/inputs.js +1 -0
- package/js/env.js +16 -0
- package/js/ext/manifest.js +58 -0
- package/js/locales.js +48 -0
- package/js/package/plugins/rollup-plugin-copy.js +169 -0
- package/js/package/plugins/watcher.js +56 -0
- package/js/package/terser.js +18 -0
- package/js/project_name.js +5 -0
- package/js/projects_path.js +5 -0
- package/js/task_scheduler.js +39 -0
- package/js/webpack.config.js +156 -0
- package/package.json +14 -0
- package/scss/announcement/body.scss +10 -0
- package/scss/announcement/index.scss +3 -0
- package/scss/announcement/main.scss +8 -0
- package/scss/settings/ext_version.scss +7 -0
- package/scss/settings/index.scss +6 -0
- package/scss/settings/main.scss +17 -0
- package/scss/settings/section_btns.scss +52 -0
- package/scss/settings/sections.scss +22 -0
- package/scss/settings/transitions.scss +21 -0
- package/scss/shared/all.scss +3 -0
- package/scss/shared/btns.scss +39 -0
- package/scss/shared/checkboxes.scss +38 -0
- package/scss/shared/color_pickers.scss +93 -0
- package/scss/shared/colors.scss +84 -0
- package/scss/shared/crash_handler.scss +36 -0
- package/scss/shared/css_vars.scss +4 -0
- package/scss/shared/embed/error.scss +96 -0
- package/scss/shared/embed/font_face.scss +5 -0
- package/scss/shared/embed/loading_screen.scss +36 -0
- package/scss/shared/embed/no_tr.scss +3 -0
- package/scss/shared/focus.scss +80 -0
- package/scss/shared/group.scss +18 -0
- package/scss/shared/help.scss +66 -0
- package/scss/shared/hr.scss +6 -0
- package/scss/shared/index.scss +29 -0
- package/scss/shared/input_btns.scss +11 -0
- package/scss/shared/inputs.scss +70 -0
- package/scss/shared/inset_border.scss +20 -0
- package/scss/shared/link_btns.scss +12 -0
- package/scss/shared/links.scss +11 -0
- package/scss/shared/mixins.scss +130 -0
- package/scss/shared/mods.scss +39 -0
- package/scss/shared/range.scss +43 -0
- package/scss/shared/scrollbar.scss +35 -0
- package/scss/shared/selects.scss +14 -0
- package/scss/shared/text.scss +20 -0
- package/scss/shared/textareas.scss +7 -0
- package/scss/shared/themes/colors/dark.scss +13 -0
- package/scss/shared/themes/colors/light.scss +13 -0
- package/scss/shared/themes/colors/very_dark.scss +13 -0
- package/scss/shared/themes/general/dark_theme.scss +7 -0
- package/scss/shared/themes/general/light_theme.scss +7 -0
- package/scss/shared/themes/general/template.scss +259 -0
- package/scss/shared/themes/general/template_focus.scss +52 -0
- package/scss/shared/themes/general/very_dark_theme.scss +7 -0
- package/scss/shared/transitions.scss +36 -0
- package/scss/shared/upload_box.scss +67 -0
- package/scss/shared/vars.scss +19 -0
- package/settings.d.ts +2 -0
- package/settings.js +1 -0
- package/ts/announcement/components/body.d.ts +3 -0
- package/ts/announcement/components/index.d.ts +1 -0
- package/ts/announcement/components/prop_types/body.d.ts +4 -0
- package/ts/announcement/components/prop_types/index.d.ts +1 -0
- package/ts/announcement/internal.d.ts +3 -0
- package/ts/announcement/scripts/display.d.ts +6 -0
- package/ts/announcement/scripts/header.d.ts +6 -0
- package/ts/announcement/scripts/index.d.ts +2 -0
- package/ts/error_modules/crash_handler/components/body.d.ts +52 -0
- package/ts/error_modules/crash_handler/components/index.d.ts +1 -0
- package/ts/error_modules/crash_handler/components/prop_types/body.d.ts +4 -0
- package/ts/error_modules/crash_handler/components/prop_types/index.d.ts +1 -0
- package/ts/error_modules/crash_handler/data/fatal_error.d.ts +7 -0
- package/ts/error_modules/crash_handler/data/index.d.ts +2 -0
- package/ts/error_modules/crash_handler/data/visibility.d.ts +7 -0
- package/ts/error_modules/crash_handler/scripts/index.d.ts +1 -0
- package/ts/error_modules/crash_handler/scripts/page.d.ts +6 -0
- package/ts/error_modules/css/scripts/index.d.ts +1 -0
- package/ts/error_modules/css/scripts/main.d.ts +8 -0
- package/ts/error_modules/error/components/body.d.ts +3 -0
- package/ts/error_modules/error/components/close_btn.d.ts +2 -0
- package/ts/error_modules/error/components/ext_name.d.ts +2 -0
- package/ts/error_modules/error/components/index.d.ts +4 -0
- package/ts/error_modules/error/components/msg.d.ts +2 -0
- package/ts/error_modules/error/components/prop_types/body.d.ts +5 -0
- package/ts/error_modules/error/components/prop_types/index.d.ts +1 -0
- package/ts/error_modules/error/data/index.d.ts +3 -0
- package/ts/error_modules/error/data/main.d.ts +10 -0
- package/ts/error_modules/error/data/msg.d.ts +15 -0
- package/ts/error_modules/error/data/state.d.ts +24 -0
- package/ts/error_modules/error/interfaces/error.d.ts +6 -0
- package/ts/error_modules/error/interfaces/error_obj.d.ts +6 -0
- package/ts/error_modules/error/interfaces/index.d.ts +5 -0
- package/ts/error_modules/error/interfaces/observable_keys.d.ts +1 -0
- package/ts/error_modules/error/interfaces/show_error.d.ts +6 -0
- package/ts/error_modules/error/interfaces/timeout_observable_keys.d.ts +1 -0
- package/ts/error_modules/error/scripts/globals.d.ts +9 -0
- package/ts/error_modules/error/scripts/index.d.ts +1 -0
- package/ts/error_modules/internal.d.ts +10 -0
- package/ts/inputs/color/components/body.d.ts +3 -0
- package/ts/inputs/color/components/color_picker.d.ts +3 -0
- package/ts/inputs/color/components/fill_shadow.d.ts +3 -0
- package/ts/inputs/color/components/index.d.ts +4 -0
- package/ts/inputs/color/components/prop_types/body.d.ts +4 -0
- package/ts/inputs/color/components/prop_types/color_picker.d.ts +7 -0
- package/ts/inputs/color/components/prop_types/fill_shadow.d.ts +5 -0
- package/ts/inputs/color/components/prop_types/index.d.ts +4 -0
- package/ts/inputs/color/components/prop_types/visualization.d.ts +6 -0
- package/ts/inputs/color/components/visualization.d.ts +3 -0
- package/ts/inputs/color/data/color.d.ts +54 -0
- package/ts/inputs/color/data/index.d.ts +2 -0
- package/ts/inputs/color/data/visibility.d.ts +38 -0
- package/ts/inputs/color/interfaces/color.d.ts +1 -0
- package/ts/inputs/color/interfaces/color_picker_state.d.ts +6 -0
- package/ts/inputs/color/interfaces/color_picker_state_one.d.ts +5 -0
- package/ts/inputs/color/interfaces/i.d.ts +1 -0
- package/ts/inputs/color/interfaces/index.d.ts +4 -0
- package/ts/inputs/color/obj/color.d.ts +54 -0
- package/ts/inputs/color/obj/index.d.ts +1 -0
- package/ts/inputs/color/scripts/color_picker.d.ts +20 -0
- package/ts/inputs/color/scripts/index.d.ts +2 -0
- package/ts/inputs/color/scripts/position.d.ts +7 -0
- package/ts/inputs/components/btn.d.ts +3 -0
- package/ts/inputs/components/checkbox.d.ts +3 -0
- package/ts/inputs/components/file.d.ts +3 -0
- package/ts/inputs/components/group.d.ts +3 -0
- package/ts/inputs/components/help.d.ts +3 -0
- package/ts/inputs/components/help_btn.d.ts +3 -0
- package/ts/inputs/components/hr.d.ts +3 -0
- package/ts/inputs/components/icon_btn.d.ts +3 -0
- package/ts/inputs/components/index.d.ts +21 -0
- package/ts/inputs/components/input_item.d.ts +3 -0
- package/ts/inputs/components/label.d.ts +3 -0
- package/ts/inputs/components/link.d.ts +3 -0
- package/ts/inputs/components/link_btn.d.ts +3 -0
- package/ts/inputs/components/prop_types/btn.d.ts +4 -0
- package/ts/inputs/components/prop_types/checkbox.d.ts +4 -0
- package/ts/inputs/components/prop_types/file.d.ts +4 -0
- package/ts/inputs/components/prop_types/group.d.ts +5 -0
- package/ts/inputs/components/prop_types/help.d.ts +4 -0
- package/ts/inputs/components/prop_types/help_btn.d.ts +4 -0
- package/ts/inputs/components/prop_types/hr.d.ts +4 -0
- package/ts/inputs/components/prop_types/icon_btn.d.ts +4 -0
- package/ts/inputs/components/prop_types/index.d.ts +21 -0
- package/ts/inputs/components/prop_types/input_item.d.ts +7 -0
- package/ts/inputs/components/prop_types/label.d.ts +4 -0
- package/ts/inputs/components/prop_types/link.d.ts +4 -0
- package/ts/inputs/components/prop_types/link_btn.d.ts +4 -0
- package/ts/inputs/components/prop_types/range.d.ts +4 -0
- package/ts/inputs/components/prop_types/section.d.ts +4 -0
- package/ts/inputs/components/prop_types/section_btn.d.ts +6 -0
- package/ts/inputs/components/prop_types/section_content.d.ts +4 -0
- package/ts/inputs/components/prop_types/select.d.ts +4 -0
- package/ts/inputs/components/prop_types/text.d.ts +4 -0
- package/ts/inputs/components/prop_types/text_btn.d.ts +8 -0
- package/ts/inputs/components/prop_types/textarea.d.ts +4 -0
- package/ts/inputs/components/prop_types/upload_box.d.ts +4 -0
- package/ts/inputs/components/range.d.ts +3 -0
- package/ts/inputs/components/section.d.ts +3 -0
- package/ts/inputs/components/section_btn.d.ts +3 -0
- package/ts/inputs/components/section_content.d.ts +3 -0
- package/ts/inputs/components/select.d.ts +3 -0
- package/ts/inputs/components/text.d.ts +3 -0
- package/ts/inputs/components/text_btn.d.ts +3 -0
- package/ts/inputs/components/textarea.d.ts +3 -0
- package/ts/inputs/components/upload_box.d.ts +3 -0
- package/ts/inputs/data/help.d.ts +15 -0
- package/ts/inputs/data/index.d.ts +7 -0
- package/ts/inputs/data/input_width.d.ts +22 -0
- package/ts/inputs/data/label.d.ts +9 -0
- package/ts/inputs/data/nested_input.d.ts +18 -0
- package/ts/inputs/data/text.d.ts +21 -0
- package/ts/inputs/data/upload_box.d.ts +20 -0
- package/ts/inputs/data/val.d.ts +36 -0
- package/ts/inputs/interfaces/icon_btns.d.ts +2 -0
- package/ts/inputs/interfaces/index.d.ts +8 -0
- package/ts/inputs/interfaces/input.d.ts +2 -0
- package/ts/inputs/interfaces/inputs.d.ts +2 -0
- package/ts/inputs/interfaces/links.d.ts +2 -0
- package/ts/inputs/interfaces/options.d.ts +2 -0
- package/ts/inputs/interfaces/sections.d.ts +2 -0
- package/ts/inputs/interfaces/state_cond.d.ts +4 -0
- package/ts/inputs/interfaces/text_btn.d.ts +7 -0
- package/ts/inputs/internal.d.ts +12 -0
- package/ts/inputs/obj/btn.d.ts +5 -0
- package/ts/inputs/obj/checkbox.d.ts +5 -0
- package/ts/inputs/obj/file.d.ts +8 -0
- package/ts/inputs/obj/group.d.ts +6 -0
- package/ts/inputs/obj/hr.d.ts +5 -0
- package/ts/inputs/obj/icon_btn.d.ts +6 -0
- package/ts/inputs/obj/index.d.ts +16 -0
- package/ts/inputs/obj/input_base.d.ts +37 -0
- package/ts/inputs/obj/link.d.ts +12 -0
- package/ts/inputs/obj/link_btn.d.ts +5 -0
- package/ts/inputs/obj/option.d.ts +6 -0
- package/ts/inputs/obj/range.d.ts +20 -0
- package/ts/inputs/obj/section.d.ts +17 -0
- package/ts/inputs/obj/select.d.ts +9 -0
- package/ts/inputs/obj/text.d.ts +17 -0
- package/ts/inputs/obj/textarea.d.ts +5 -0
- package/ts/inputs/obj/upload_box.d.ts +14 -0
- package/ts/inputs/scripts/index.d.ts +2 -0
- package/ts/inputs/scripts/resolve.d.ts +5 -0
- package/ts/inputs/scripts/upload_box.d.ts +8 -0
- package/ts/settings/components/body.d.ts +3 -0
- package/ts/settings/components/index.d.ts +1 -0
- package/ts/settings/components/prop_types/body.d.ts +7 -0
- package/ts/settings/components/prop_types/index.d.ts +1 -0
- package/ts/settings/data/back_up.d.ts +16 -0
- package/ts/settings/data/index.d.ts +2 -0
- package/ts/settings/data/sections.d.ts +37 -0
- package/ts/settings/init.d.ts +1 -0
- package/ts/settings/internal.d.ts +9 -0
- package/ts/settings/optional_permissions/data/index.d.ts +1 -0
- package/ts/settings/optional_permissions/data/main.d.ts +11 -0
- package/ts/settings/optional_permissions/interfaces/index.d.ts +1 -0
- package/ts/settings/optional_permissions/interfaces/optional_permission_checkbox_dict.d.ts +3 -0
- package/ts/settings/schema/data/index.d.ts +1 -0
- package/ts/settings/schema/data/main.d.ts +10 -0
- package/ts/settings/schema/obj/index.d.ts +1 -0
- package/ts/settings/schema/obj/transform_item.d.ts +7 -0
- package/ts/settings/scripts/index.d.ts +1 -0
- package/ts/settings/scripts/theme.d.ts +12 -0
- package/ts/shared/app.d.ts +10 -0
- package/ts/shared/app_ext_globals.d.ts +6 -0
- package/ts/shared/css_vars/scripts/index.d.ts +1 -0
- package/ts/shared/css_vars/scripts/main.d.ts +18 -0
- package/ts/shared/data/data/index.d.ts +1 -0
- package/ts/shared/data/data/main.d.ts +4 -0
- package/ts/shared/data/interfaces/index.d.ts +1 -0
- package/ts/shared/data/interfaces/val.d.ts +2 -0
- package/ts/shared/ext.d.ts +27 -0
- package/ts/shared/ext_version/components/body.d.ts +2 -0
- package/ts/shared/ext_version/components/index.d.ts +1 -0
- package/ts/shared/functions.d.ts +3 -0
- package/ts/shared/globals.d.ts +4 -0
- package/ts/shared/init.d.ts +1 -0
- package/ts/shared/internal.d.ts +28 -0
- package/ts/shared/loading_screen/components/body.d.ts +3 -0
- package/ts/shared/loading_screen/components/index.d.ts +1 -0
- package/ts/shared/loading_screen/components/prop_types/body.d.ts +4 -0
- package/ts/shared/loading_screen/components/prop_types/index.d.ts +1 -0
- package/ts/shared/loading_screen/data/index.d.ts +1 -0
- package/ts/shared/loading_screen/data/main.d.ts +10 -0
- package/ts/shared/no_tr/scripts/index.d.ts +1 -0
- package/ts/shared/no_tr/scripts/main.d.ts +12 -0
- package/ts/shared/svg.d.ts +7 -0
- package/ts/shared/t.d.ts +34 -0
- package/ts/shared/tab_index/interfaces/index.d.ts +1 -0
- package/ts/shared/tab_index/interfaces/set_Input_type_event.d.ts +2 -0
- package/ts/shared/tab_index/scripts/index.d.ts +1 -0
- package/ts/shared/tab_index/scripts/main.d.ts +18 -0
- package/ts/shared/theme/scripts/index.d.ts +1 -0
- package/ts/shared/theme/scripts/main.d.ts +11 -0
- package/ts/shared/title/scripts/index.d.ts +1 -0
- package/ts/shared/title/scripts/main.d.ts +6 -0
- package/ts/shared/tr/components/base_tr.d.ts +9 -0
- package/ts/shared/tr/components/index.d.ts +1 -0
- package/ts/shared/tr/components/prop_types/base_tr.d.ts +13 -0
- package/ts/shared/tr/components/prop_types/index.d.ts +1 -0
- package/ts/shared/tr/data/index.d.ts +1 -0
- package/ts/shared/tr/data/transition.d.ts +23 -0
- package/ts/shared/tr/interfaces/index.d.ts +1 -0
- package/ts/shared/tr/interfaces/transitions.d.ts +2 -0
- package/ts/shared/tr/obj/index.d.ts +1 -0
- package/ts/shared/tr/obj/transition.d.ts +8 -0
- package/ts/shared/utils/scripts/index.d.ts +1 -0
- package/ts/shared/utils/scripts/main.d.ts +11 -0
- package/ts/shared/vars.d.ts +1 -0
- package/ts/shared/viewport/scripts/index.d.ts +1 -0
- package/ts/shared/viewport/scripts/main.d.ts +8 -0
- package/ts/shared/x.d.ts +60 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
const shared_config = ({
|
|
4
|
+
app_type,
|
|
5
|
+
app_root,
|
|
6
|
+
webpack,
|
|
7
|
+
argv,
|
|
8
|
+
env,
|
|
9
|
+
TerserPlugin,
|
|
10
|
+
MiniCssExtractPlugin,
|
|
11
|
+
CssMinimizerPlugin,
|
|
12
|
+
CopyWebpackPlugin,
|
|
13
|
+
copy_patters,
|
|
14
|
+
minimize = true,
|
|
15
|
+
enable_anouncement,
|
|
16
|
+
callback_begin = () => undefined,
|
|
17
|
+
callback_done = () => undefined,
|
|
18
|
+
}) => {
|
|
19
|
+
const shared_path = path.join(
|
|
20
|
+
app_root,
|
|
21
|
+
'node_modules',
|
|
22
|
+
'@loftyshaky',
|
|
23
|
+
'shared',
|
|
24
|
+
'scss',
|
|
25
|
+
'shared',
|
|
26
|
+
);
|
|
27
|
+
const paths = {
|
|
28
|
+
ts: path.join(app_root, 'src', 'ts'),
|
|
29
|
+
embed: path.join(shared_path, 'embed'),
|
|
30
|
+
themes: path.join(shared_path, 'themes', 'general'),
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const external_copy_patterns = copy_patters || [];
|
|
34
|
+
const copy_patterns_final = [
|
|
35
|
+
...external_copy_patterns,
|
|
36
|
+
...[
|
|
37
|
+
{
|
|
38
|
+
from: path.join(app_root, 'node_modules', '@loftyshaky', 'shared', 'html'),
|
|
39
|
+
noErrorOnMissing: true,
|
|
40
|
+
globOptions: {
|
|
41
|
+
ignore: enable_anouncement ? [] : ['**/announcement.html'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
from: path.join(app_root, 'src', 'html'),
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
if (app_type === 'app') {
|
|
51
|
+
copy_patterns_final.push({
|
|
52
|
+
from: path.join(app_root, 'src', 'icons'),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
copy_patterns_final.push({ from: path.join(app_root, 'package.json') });
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (app_type === 'ext') {
|
|
59
|
+
copy_patterns_final.push(
|
|
60
|
+
{
|
|
61
|
+
from: path.join(app_root, 'src', 'icons', 'all'),
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
from: path.join(app_root, 'src', 'icons', env.browser),
|
|
65
|
+
},
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
entry: {
|
|
71
|
+
...(enable_anouncement && {
|
|
72
|
+
announcement: path.join(paths.ts, 'announcement', 'announcement.ts'),
|
|
73
|
+
}),
|
|
74
|
+
font_face: path.join(paths.embed, 'font_face.scss'),
|
|
75
|
+
no_tr: path.join(paths.embed, 'no_tr.scss'),
|
|
76
|
+
error: path.join(paths.embed, 'error.scss'),
|
|
77
|
+
loading_screen: path.join(paths.embed, 'loading_screen.scss'),
|
|
78
|
+
...(enable_anouncement && {
|
|
79
|
+
announcement_css: path.join(
|
|
80
|
+
app_root,
|
|
81
|
+
'node_modules',
|
|
82
|
+
'@loftyshaky',
|
|
83
|
+
'shared',
|
|
84
|
+
'scss',
|
|
85
|
+
'announcement',
|
|
86
|
+
'index.scss',
|
|
87
|
+
),
|
|
88
|
+
}),
|
|
89
|
+
light_theme: path.join(paths.themes, 'light_theme.scss'),
|
|
90
|
+
dark_theme: path.join(paths.themes, 'dark_theme.scss'),
|
|
91
|
+
very_dark_theme: path.join(paths.themes, 'very_dark_theme.scss'),
|
|
92
|
+
},
|
|
93
|
+
output: {
|
|
94
|
+
filename: '[name].js',
|
|
95
|
+
chunkFilename: 'chunks/[name].js',
|
|
96
|
+
path: path.join(app_root, 'dist'),
|
|
97
|
+
publicPath: '',
|
|
98
|
+
},
|
|
99
|
+
resolve: {
|
|
100
|
+
alias: {
|
|
101
|
+
shared: path.join(paths.ts, 'shared'),
|
|
102
|
+
...(app_type === 'ext' && {
|
|
103
|
+
background: path.join(paths.ts, 'background'),
|
|
104
|
+
settings: path.join(paths.ts, 'settings'),
|
|
105
|
+
content_script: path.join(paths.ts, 'content_script'),
|
|
106
|
+
}),
|
|
107
|
+
...(enable_anouncement && {
|
|
108
|
+
announcement: path.join(paths.ts, 'announcement'),
|
|
109
|
+
}),
|
|
110
|
+
},
|
|
111
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
112
|
+
},
|
|
113
|
+
module: {
|
|
114
|
+
rules: [
|
|
115
|
+
{
|
|
116
|
+
test: /\.(ts|tsx)$/,
|
|
117
|
+
loader: 'ts-loader',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
test: /\.(scss|css)$/,
|
|
121
|
+
use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'],
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
test: /\.svg$/,
|
|
125
|
+
use: ['@svgr/webpack'],
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
plugins: [
|
|
130
|
+
new webpack.ProgressPlugin(),
|
|
131
|
+
new MiniCssExtractPlugin(),
|
|
132
|
+
new CopyWebpackPlugin({
|
|
133
|
+
patterns: copy_patterns_final,
|
|
134
|
+
}),
|
|
135
|
+
{
|
|
136
|
+
apply: (compiler) => {
|
|
137
|
+
compiler.hooks.initialize.tap('initialize', callback_begin);
|
|
138
|
+
compiler.hooks.done.tap('done', callback_done);
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
target: 'web',
|
|
143
|
+
devtool: false,
|
|
144
|
+
optimization: {
|
|
145
|
+
minimize: minimize && argv.mode === 'production',
|
|
146
|
+
minimizer: [new TerserPlugin(), new CssMinimizerPlugin()],
|
|
147
|
+
sideEffects: argv.mode === 'production',
|
|
148
|
+
},
|
|
149
|
+
performance: {
|
|
150
|
+
maxEntrypointSize: 52428800,
|
|
151
|
+
maxAssetSize: 52428800,
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
module.exports = { shared_config };
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@loftyshaky/shared-app",
|
|
3
|
+
"description": "-",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"author": "loftyshaky",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/loftyshaky/shared.git"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"pub": "npm publish --access public"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
html,
|
|
2
|
+
.body {
|
|
3
|
+
height: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.main {
|
|
7
|
+
padding: $main_margin_2;
|
|
8
|
+
padding-left: $main_margin_2;
|
|
9
|
+
display: block;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.main_2 {
|
|
13
|
+
display: flex;
|
|
14
|
+
height: calc(100vh - #{$main_margin_4 + 2});
|
|
15
|
+
max-width: 1366px - $main_margin_2 + 2px;
|
|
16
|
+
margin: auto;
|
|
17
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.section_btns {
|
|
2
|
+
flex-shrink: 0;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-flow: column;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
|
|
7
|
+
.filler {
|
|
8
|
+
position: relative;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.section_btn {
|
|
13
|
+
@include input_basic;
|
|
14
|
+
|
|
15
|
+
position: relative;
|
|
16
|
+
text-align: left;
|
|
17
|
+
padding: 10px;
|
|
18
|
+
padding-right: 11px;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
|
|
21
|
+
&.selected {
|
|
22
|
+
cursor: default;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.selected::before,
|
|
26
|
+
&:not(.selected):hover::before {
|
|
27
|
+
content: '';
|
|
28
|
+
height: 33px;
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
left: 3px;
|
|
33
|
+
margin: auto;
|
|
34
|
+
width: 3px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:not(.selected):hover::before {
|
|
38
|
+
animation: var(--animation);
|
|
39
|
+
animation-name: fade_in;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes fade_in {
|
|
45
|
+
0% {
|
|
46
|
+
opacity: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
100% {
|
|
50
|
+
opacity: 1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.sections {
|
|
2
|
+
flex-grow: 1;
|
|
3
|
+
height: 100%;
|
|
4
|
+
overflow: auto;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.section {
|
|
8
|
+
margin: $main_margin;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.subsection {
|
|
12
|
+
.name {
|
|
13
|
+
margin: 0;
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
font-size: unset;
|
|
16
|
+
text-decoration: underline;
|
|
17
|
+
|
|
18
|
+
&:not(:first-child) {
|
|
19
|
+
margin-top: $main_margin;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.input_item,
|
|
2
|
+
.input_w,
|
|
3
|
+
.help, {
|
|
4
|
+
transition: var(--transition);
|
|
5
|
+
transition-property: opacity;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.section_btns .section_btn::before {
|
|
9
|
+
transition: var(--transition);
|
|
10
|
+
transition-property: background-color;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.link,
|
|
14
|
+
.link_btn {
|
|
15
|
+
transition: var(--transition);
|
|
16
|
+
transition-property: color;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.link:active {
|
|
20
|
+
transition: none;
|
|
21
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
$icon_btn_size: 20px;
|
|
2
|
+
|
|
3
|
+
.btn {
|
|
4
|
+
@include btn;
|
|
5
|
+
|
|
6
|
+
border-radius: 0;
|
|
7
|
+
position: relative;
|
|
8
|
+
vertical-align: bottom;
|
|
9
|
+
|
|
10
|
+
&.text {
|
|
11
|
+
@include btn;
|
|
12
|
+
@include border_transparent;
|
|
13
|
+
@include outline_solid;
|
|
14
|
+
|
|
15
|
+
display: block;
|
|
16
|
+
height: $input_height + ($border_width * 2);
|
|
17
|
+
padding: 0 $input_inner_padding 0 $input_inner_padding;
|
|
18
|
+
outline-offset: -1px;
|
|
19
|
+
|
|
20
|
+
&:not(:first-child) {
|
|
21
|
+
margin-top: $gap;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::before {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.color_ok_btn {
|
|
30
|
+
margin-left: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.icon {
|
|
34
|
+
svg {
|
|
35
|
+
width: $icon_btn_size;
|
|
36
|
+
height: $icon_btn_size;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
$box_size: 20px;
|
|
2
|
+
$checkmark_size: 16px;
|
|
3
|
+
|
|
4
|
+
.input_item {
|
|
5
|
+
&.checkbox {
|
|
6
|
+
input {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.wrap_label {
|
|
11
|
+
@include border_transparent;
|
|
12
|
+
|
|
13
|
+
margin-right: $input_content_gap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.box {
|
|
17
|
+
@include center_flex;
|
|
18
|
+
@include outline_solid;
|
|
19
|
+
|
|
20
|
+
height: $box_size;
|
|
21
|
+
width: $box_size;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.box svg {
|
|
26
|
+
width: $checkmark_size;
|
|
27
|
+
height: $checkmark_size;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
input + .box svg {
|
|
31
|
+
opacity: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
input:checked + .box svg {
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* stylelint-disable selector-class-pattern */
|
|
2
|
+
|
|
3
|
+
$pcr_picker_size: 16px;
|
|
4
|
+
$btn_padding: 6px;
|
|
5
|
+
|
|
6
|
+
.input_item {
|
|
7
|
+
.pcr-app,
|
|
8
|
+
.pcr-last-color,
|
|
9
|
+
.pcr-palette,
|
|
10
|
+
.pcr-current-color,
|
|
11
|
+
.pcr-slider,
|
|
12
|
+
.color_picker_w input {
|
|
13
|
+
border-radius: 0 !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pcr-palette,
|
|
17
|
+
.pcr-slider {
|
|
18
|
+
@include border;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.color_picker_w {
|
|
22
|
+
position: absolute;
|
|
23
|
+
z-index: 2;
|
|
24
|
+
top: $input_height + $input_content_gap;
|
|
25
|
+
left: 0;
|
|
26
|
+
user-select: none;
|
|
27
|
+
|
|
28
|
+
input {
|
|
29
|
+
@include outline_solid;
|
|
30
|
+
|
|
31
|
+
filter: initial !important;
|
|
32
|
+
|
|
33
|
+
&:not(.pcr-result) {
|
|
34
|
+
padding: $btn_padding $btn_padding 5px $btn_padding;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.color_picker {
|
|
40
|
+
position: fixed;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pcr-app {
|
|
44
|
+
@include box_shadow_important;
|
|
45
|
+
|
|
46
|
+
position: relative !important;
|
|
47
|
+
left: initial !important;
|
|
48
|
+
top: initial !important;
|
|
49
|
+
width: fit-content !important;
|
|
50
|
+
padding: $gap !important;
|
|
51
|
+
transition: none !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pcr-picker {
|
|
55
|
+
width: $pcr_picker_size !important;
|
|
56
|
+
height: $pcr_picker_size !important;
|
|
57
|
+
border-width: 1px !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pcr-color-preview {
|
|
61
|
+
@include border;
|
|
62
|
+
|
|
63
|
+
margin-bottom: $gap !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pcr-swatches {
|
|
67
|
+
margin-top: 2px !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.pcr-interaction {
|
|
71
|
+
margin-left: -2px !important;
|
|
72
|
+
margin-right: -1px !important;
|
|
73
|
+
margin-bottom: 1px !important;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
display: unset !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.pcr-result {
|
|
79
|
+
width: calc(100% - 5px);
|
|
80
|
+
display: block;
|
|
81
|
+
margin-top: 9px !important;
|
|
82
|
+
padding-top: 6px !important;
|
|
83
|
+
margin-bottom: 2px !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.pcr-color-chooser {
|
|
87
|
+
margin-top: $gap !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.pcr-type {
|
|
91
|
+
margin-right: 5px !important;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
.input_item {
|
|
2
|
+
&.color .label {
|
|
3
|
+
align-self: normal;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.inner_w {
|
|
7
|
+
position: absolute;
|
|
8
|
+
height: $color_input_height;
|
|
9
|
+
align-self: center;
|
|
10
|
+
order: -1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.visualization_w {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.visualization {
|
|
19
|
+
@include border;
|
|
20
|
+
|
|
21
|
+
outline: none;
|
|
22
|
+
margin-right: $input_content_gap;
|
|
23
|
+
min-width: $color_input_height;
|
|
24
|
+
height: $color_input_height;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
border-radius: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.palette_visualization_w {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
padding: 0;
|
|
32
|
+
margin-right: $gap;
|
|
33
|
+
margin-bottom: $gap;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
|
|
36
|
+
&:nth-child(10),
|
|
37
|
+
&:nth-child(20),
|
|
38
|
+
&:nth-child(30) {
|
|
39
|
+
margin-right: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:nth-child(n + 21) {
|
|
43
|
+
margin-bottom: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.palette_visualization {
|
|
48
|
+
@include border;
|
|
49
|
+
|
|
50
|
+
outline: none;
|
|
51
|
+
width: $color_input_height;
|
|
52
|
+
height: $color_input_height;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
border-radius: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.fill_shadow_w {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: $input_content_gap + $input_content_gap;
|
|
60
|
+
left: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.fill_shadow {
|
|
64
|
+
position: fixed;
|
|
65
|
+
display: block;
|
|
66
|
+
visibility: hidden;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.palette_w {
|
|
70
|
+
z-index: 2;
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: $input_content_gap + $input_content_gap;
|
|
73
|
+
left: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.palette {
|
|
77
|
+
@include box_shadow;
|
|
78
|
+
|
|
79
|
+
position: fixed;
|
|
80
|
+
padding: 10px;
|
|
81
|
+
width: 410px;
|
|
82
|
+
line-height: 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.reload_ui_btn_w {
|
|
2
|
+
@include full_spread;
|
|
3
|
+
@include center_flex;
|
|
4
|
+
|
|
5
|
+
position: fixed;
|
|
6
|
+
visibility: hidden;
|
|
7
|
+
|
|
8
|
+
.btn {
|
|
9
|
+
@include btn;
|
|
10
|
+
@include outline_solid;
|
|
11
|
+
|
|
12
|
+
outline-color: $black;
|
|
13
|
+
visibility: visible;
|
|
14
|
+
color: $black;
|
|
15
|
+
background-color: $light_orange;
|
|
16
|
+
padding: 6px 12px;
|
|
17
|
+
width: max-content;
|
|
18
|
+
font-size: 21px;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: $blue;
|
|
22
|
+
color: white;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:active {
|
|
26
|
+
background-color: $yellow;
|
|
27
|
+
color: $black;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:focus {
|
|
31
|
+
@include outline_solid_thick;
|
|
32
|
+
|
|
33
|
+
outline-color: #293fe2;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|