Skip to content

Commit

Permalink
chore(sass): move typed-scss to devDep in package.json and run typed-…
Browse files Browse the repository at this point in the history
…css in style files

clone https://github.com/panaC/typed-scss-modules to my personal github
repos to update the module to node-sass version 9.0.0 (PR
skovy/typed-scss-modules#214)
  • Loading branch information
panaC committed Nov 23, 2023
1 parent 5ee65d9 commit 5d2aa4d
Show file tree
Hide file tree
Showing 25 changed files with 785 additions and 1,180 deletions.
1,542 changes: 573 additions & 969 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"i18n-scan": "node ./scripts/translate-scan.js \"src/resources/locales/temp.json\" && sync-i18n --files 'src/resources/locales/*.json' --primary temp --languages en bg ca de el es eu fi fr gl hr it ja ka ko lt nl pt-br pt-pt ru sv zh-cn zh-tw --space \" \" --finalnewline --newkeysempty && rimraf \"src/resources/locales/temp.json\"",
"i18n-check": "sync-i18n --files 'src/resources/locales/*.json' --primary en --languages bg ca de el es eu fi fr gl hr it ja ka ko lt nl pt-br pt-pt ru sv zh-cn zh-tw --space \" \" --finalnewline --newkeysempty",
"i18n-typed": "node ./scripts/locale-wrap.js \"src/resources/locales/en.json\" \"en.json\" && typed_i18n -i \"en.json\" -o src/typings -l typescript && rimraf \"en.json\"",
"style-typed": "tcm -p \"src/renderer/assets/styles\" && typed-scss-modules \"src/renderer/assets/styles\" --nameFormat none",
"style-typed": "tcm \"src/renderer/assets/styles\" && typed-scss-modules \"src/renderer/assets/styles\" --nameFormat none || echo \"!!failed!!\"",
"ts-unused-exports_": "tcm --namedExports \"src/renderer/assets/styles\" && ts-unused-exports ./tsconfig.json $(find ./src/renderer/assets/styles -name '*.d.ts') || npm run style-typed",
"ts-unused-exports": "ts-unused-exports ./tsconfig.json --ignoreFiles=\"test/.*\"",
"ts-prune": "ts-prune --project ./tsconfig.json --ignore \"(/main|/common|/test|/typings|/utils|preprocessor-directives)/.*\"",
Expand Down Expand Up @@ -396,6 +396,7 @@
"ts-unused-exports": "^10.0.1",
"tsconfig-paths": "^4.2.0",
"typed-css-modules": "^0.8.1",
"typed-scss-modules": "github:panaC/typed-scss-modules",
"typescript": "^5.2.2",
"webpack": "^5.89.0",
"webpack-bundle-analyzer": "^4.10.1",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/assets/styles/app.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
declare const styles: {
readonly "___DEBUG___APP_CSS": string;
readonly "downloadsPanel": string;
readonly "percent": string;
readonly "title": string;
readonly "___DEBUG___APP_CSS": string;
};
export = styles;

26 changes: 13 additions & 13 deletions src/renderer/assets/styles/bookDetailsDialog.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
declare const styles: {
readonly "___DEBUG___BOOK_DETAILS_DIALOG_CSS": string;
readonly "addTagButton": string;
readonly "allowUserSelect": string;
readonly "author": string;
readonly "c_dialog": string;
readonly "c_dialog_background": string;
readonly "c_dialog__box": string;
readonly "c_dialog_background": string;
readonly "description": string;
readonly "descriptionWrapper": string;
readonly "dialog_left": string;
readonly "liens": string;
readonly "lire": string;
readonly "dialog_right": string;
readonly "author": string;
readonly "description": string;
readonly "tags": string;
readonly "tag_list": string;
readonly "addTagButton": string;
readonly "flux_search": string;
readonly "tag_inputs": string;
readonly "image_wrapper": string;
readonly "descriptionWrapper": string;
readonly "hideEnd": string;
readonly "image_wrapper": string;
readonly "liens": string;
readonly "lire": string;
readonly "seeMore": string;
readonly "allowUserSelect": string;
readonly "___DEBUG___BOOK_DETAILS_DIALOG_CSS": string;
readonly "tag_inputs": string;
readonly "tag_list": string;
readonly "tags": string;
};
export = styles;

14 changes: 7 additions & 7 deletions src/renderer/assets/styles/components/blocks.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
declare const styles: {
readonly "block_line": string;
readonly "block_line_inactive": string;
readonly "description_see_more": string;
readonly "block_line_edit": string;
readonly "___DEBUG___COMPONENTS_BLOCKS_CSS": string;
readonly "block_dashed": string;
readonly "block_full": string;
readonly "block_full_wrapper": string;
readonly "block_full_close": string;
readonly "block_full_update": string;
readonly "block_dashed": string;
readonly "___DEBUG___COMPONENTS_BLOCKS_CSS": string;
readonly "block_full_wrapper": string;
readonly "block_line": string;
readonly "block_line_edit": string;
readonly "block_line_inactive": string;
readonly "description_see_more": string;
};
export = styles;

4 changes: 2 additions & 2 deletions src/renderer/assets/styles/components/breadcrumb.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
declare const styles: {
readonly "___DEBUG___COMPONENTS_BREADCRUMB_CSS": string;
readonly "breadcrumb": string;
readonly "button_transparency_icon": string;
readonly "button_transparency": string;
readonly "___DEBUG___COMPONENTS_BREADCRUMB_CSS": string;
readonly "button_transparency_icon": string;
};
export = styles;

30 changes: 15 additions & 15 deletions src/renderer/assets/styles/components/buttons.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
declare const styles: {
readonly "button_primary": string;
readonly "button_primary_small": string;
readonly "___DEBUG___COMPONENTS_BUTTONS_CSS": string;
readonly "block_line": string;
readonly "button_icon": string;
readonly "button_keyboard": string;
readonly "button_link": string;
readonly "button_outline_accessibility": string;
readonly "button_primary": string;
readonly "button_primary_form_default": string;
readonly "icon_end": string;
readonly "disabled": string;
readonly "heading": string;
readonly "button_icon": string;
readonly "button_primary_icon": string;
readonly "button_primary_small": string;
readonly "button_refresh": string;
readonly "button_secondary": string;
readonly "button_see_more": string;
readonly "button_small": string;
readonly "button_transparency": string;
readonly "button_transparency_icon": string;
readonly "button_transparency_icon_inactive": string;
readonly "button_refresh": string;
readonly "button_small": string;
readonly "button_link": string;
readonly "button_keyboard": string;
readonly "skip_link": string;
readonly "button_see_more": string;
readonly "buttons_list": string;
readonly "col_filter": string;
readonly "block_line": string;
readonly "col_book_img": string;
readonly "___DEBUG___COMPONENTS_BUTTONS_CSS": string;
readonly "col_filter": string;
readonly "disabled": string;
readonly "heading": string;
readonly "icon_end": string;
readonly "skip_link": string;
};
export = styles;

14 changes: 7 additions & 7 deletions src/renderer/assets/styles/components/columns.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
declare const styles: {
readonly "row": string;
readonly "col_book_img": string;
readonly "___DEBUG___COMPONENTS_COLUMNS_CSS": string;
readonly "col": string;
readonly "col_1": string;
readonly "col_10": string;
readonly "col_11": string;
readonly "col_12": string;
readonly "col_2": string;
readonly "col_3": string;
readonly "col_4": string;
Expand All @@ -10,12 +13,9 @@ declare const styles: {
readonly "col_7": string;
readonly "col_8": string;
readonly "col_9": string;
readonly "col_10": string;
readonly "col_11": string;
readonly "col_12": string;
readonly "col": string;
readonly "col_book_img": string;
readonly "col_filter": string;
readonly "___DEBUG___COMPONENTS_COLUMNS_CSS": string;
readonly "row": string;
};
export = styles;

4 changes: 2 additions & 2 deletions src/renderer/assets/styles/components/dropdown.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
declare const styles: {
readonly "___DEBUG___COMPONENTS_DROPDOWN_CSS": string;
readonly "dropdown_menu": string;
readonly "dropdown_right": string;
readonly "dropdown_publication": string;
readonly "dropdown_right": string;
readonly "menu": string;
readonly "___DEBUG___COMPONENTS_DROPDOWN_CSS": string;
};
export = styles;

4 changes: 2 additions & 2 deletions src/renderer/assets/styles/components/grids.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
declare const styles: {
readonly "grid_uniform_wrapper": string;
readonly "grid_uniform_item": string;
readonly "___DEBUG___COMPONENTS_GRIDS_CSS": string;
readonly "grid_uniform_item": string;
readonly "grid_uniform_wrapper": string;
};
export = styles;

2 changes: 1 addition & 1 deletion src/renderer/assets/styles/components/images.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare const styles: {
readonly "cover_img": string;
readonly "___DEBUG___COMPONENTS_IMAGES_CSS": string;
readonly "cover_img": string;
};
export = styles;

8 changes: 4 additions & 4 deletions src/renderer/assets/styles/components/inputs.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
declare const styles: {
readonly "outline": string;
readonly "___DEBUG___COMPONENTS_INPUTS_CSS": string;
readonly "checkbox_keyboard": string;
readonly "radio_list": string;
readonly "form_group": string;
readonly "dropzone": string;
readonly "___DEBUG___COMPONENTS_INPUTS_CSS": string;
readonly "form_group": string;
readonly "outline": string;
readonly "radio_list": string;
};
export = styles;

19 changes: 9 additions & 10 deletions src/renderer/assets/styles/components/modals.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
declare const styles: {
readonly "modal_dialog_overlay": string;
readonly "modal_dialog_overlay_hidden": string;
readonly "___DEBUG___COMPONENTS_MODALS_CSS": string;
readonly "add_dialog": string;
readonly "c_dialog__box": string;
readonly "close_button": string;
readonly "field": string;
readonly "modal_dialog": string;
readonly "modal_dialog_full": string;
readonly "modal_dialog_form_wrapper": string;
readonly "modal_dialog_body": string;
readonly "modal_dialog_body_centered": string;
readonly "modal_dialog_header": string;
readonly "modal_dialog_footer": string;
readonly "c_dialog__box": string;
readonly "close_button": string;
readonly "modal_dialog_full": string;
readonly "modal_dialog_header": string;
readonly "modal_dialog_overlay": string;
readonly "modal_dialog_overlay_hidden": string;
readonly "opds_form_dialog": string;
readonly "field": string;
readonly "add_dialog": string;
readonly "___DEBUG___COMPONENTS_MODALS_CSS": string;
};
export = styles;

40 changes: 20 additions & 20 deletions src/renderer/assets/styles/components/publications.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
declare const styles: {
readonly "publication_wrapper": string;
readonly "publication_image_wrapper": string;
readonly "no_img_wrapper": string;
readonly "no_img": string;
readonly "publication_infos_wrapper": string;
readonly "publication_infos": string;
readonly "publication_title": string;
readonly "publication_description": string;
readonly "publication_list_wrapper": string;
readonly "publication_list_infos": string;
readonly "publication_list_title_authors": string;
readonly "___DEBUG___COMPONENTS_PUBLICATIONS_CSS": string;
readonly "author": string;
readonly "block_book": string;
readonly "block_book_list": string;
readonly "icon_seemore": string;
readonly "book_title": string;
readonly "book_author": string;
readonly "infos_sup": string;
readonly "block_book": string;
readonly "book_title": string;
readonly "box": string;
readonly "cover": string;
readonly "cover_img": string;
readonly "icon_seemore": string;
readonly "image_wrapper": string;
readonly "infos_sup": string;
readonly "legend": string;
readonly "menu": string;
readonly "cover": string;
readonly "box": string;
readonly "no_img": string;
readonly "no_img_wrapper": string;
readonly "publication_description": string;
readonly "publication_image_wrapper": string;
readonly "publication_infos": string;
readonly "publication_infos_wrapper": string;
readonly "publication_list_infos": string;
readonly "publication_list_title_authors": string;
readonly "publication_list_wrapper": string;
readonly "publication_title": string;
readonly "publication_wrapper": string;
readonly "title": string;
readonly "author": string;
readonly "cover_img": string;
readonly "___DEBUG___COMPONENTS_PUBLICATIONS_CSS": string;
};
export = styles;

8 changes: 4 additions & 4 deletions src/renderer/assets/styles/components/slider.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
declare const styles: {
readonly "___DEBUG___COMPONENTS_SLIDER_CSS": string;
readonly "slider": string;
readonly "slider_wrapper": string;
readonly "slider_items": string;
readonly "slider_button_prev": string;
readonly "slider_button_next": string;
readonly "___DEBUG___COMPONENTS_SLIDER_CSS": string;
readonly "slider_button_prev": string;
readonly "slider_items": string;
readonly "slider_wrapper": string;
};
export = styles;

6 changes: 3 additions & 3 deletions src/renderer/assets/styles/components/tags.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
declare const styles: {
readonly "tags_wrapper": string;
readonly "tag": string;
readonly "___DEBUG___COMPONENTS_TAGS_CSS": string;
readonly "no_hover": string;
readonly "tag": string;
readonly "tag_inputs": string;
readonly "___DEBUG___COMPONENTS_TAGS_CSS": string;
readonly "tags_wrapper": string;
};
export = styles;

12 changes: 6 additions & 6 deletions src/renderer/assets/styles/components/toasts.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
declare const styles: {
readonly "toasts_wrapper": string;
readonly "toast": string;
readonly "start": string;
readonly "___DEBUG___COMPONENTS_TOASTS_CSS": string;
readonly "closeButton": string;
readonly "error": string;
readonly "success": string;
readonly "icon": string;
readonly "closeButton": string;
readonly "leave": string;
readonly "start": string;
readonly "success": string;
readonly "toRemove": string;
readonly "___DEBUG___COMPONENTS_TOASTS_CSS": string;
readonly "toast": string;
readonly "toasts_wrapper": string;
};
export = styles;

6 changes: 3 additions & 3 deletions src/renderer/assets/styles/focus.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
declare const styles: {
readonly "R2_CSS_CLASS__KEYBOARD_INTERACT": string;
readonly "R2_CSS_CLASS__FORCE_NO_FOCUS_OUTLINE": string;
readonly "body_element": string;
readonly "readium2ElectronAnimation_TARGET": string;
readonly "R2_CSS_CLASS__FORCE_NO_TARGET_OUTLINE": string;
readonly "R2_CSS_CLASS__KEYBOARD_INTERACT": string;
readonly "___DEBUG___FOCUS_CSS": string;
readonly "body_element": string;
readonly "readium2ElectronAnimation_TARGET": string;
};
export = styles;

Loading

0 comments on commit 5d2aa4d

Please sign in to comment.