@shzlx/ui-default 4.58.2
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/README.md +5 -0
- package/api.ts +61 -0
- package/backendlib/builder.ts +182 -0
- package/backendlib/markdown-it-imsize.ts +235 -0
- package/backendlib/markdown-it-katex.ts +139 -0
- package/backendlib/markdown-it-media.ts +163 -0
- package/backendlib/markdown-it-xss.ts +200 -0
- package/backendlib/markdown.js +64 -0
- package/backendlib/misc.ts +54 -0
- package/backendlib/template.ts +279 -0
- package/breakpoints.json +5 -0
- package/components/DOMAttachedObject.ts +128 -0
- package/components/autocomplete/AssignSelectAutoComplete.tsx +22 -0
- package/components/autocomplete/CustomSelectAutoComplete.tsx +23 -0
- package/components/autocomplete/DomainSelectAutoComplete.tsx +18 -0
- package/components/autocomplete/FileSelectAutoComplete.tsx +26 -0
- package/components/autocomplete/LanguageSelectAutoComplete.tsx +24 -0
- package/components/autocomplete/ProblemSelectAutoComplete.tsx +18 -0
- package/components/autocomplete/UserSelectAutoComplete.tsx +23 -0
- package/components/autocomplete/components/AssignSelectAutoComplete.tsx +118 -0
- package/components/autocomplete/components/DomainSelectAutoComplete.tsx +53 -0
- package/components/autocomplete/components/FileSelectAutoComplete.tsx +50 -0
- package/components/autocomplete/components/LanguageSelectAutoComplete.tsx +48 -0
- package/components/autocomplete/components/ProblemSelectAutoComplete.tsx +54 -0
- package/components/autocomplete/components/UserSelectAutoComplete.tsx +54 -0
- package/components/autocomplete/domainselectautocomplete.page.styl +6 -0
- package/components/autocomplete/index.tsx +110 -0
- package/components/autocomplete/problemselectautocomplete.page.styl +6 -0
- package/components/autocomplete/userselectautocomplete.page.styl +6 -0
- package/components/browser-update.page.ts +27 -0
- package/components/calendar/calendar.page.styl +129 -0
- package/components/calendar/index.js +367 -0
- package/components/clipboard.page.ts +23 -0
- package/components/contest/contest.page.styl +119 -0
- package/components/contest/contest.page.ts +23 -0
- package/components/contest/contest_sidebar.page.styl +21 -0
- package/components/contest/problem-contest-bg.png +0 -0
- package/components/contest/problem-contest-bg@2x.png +0 -0
- package/components/customFont.page.tsx +90 -0
- package/components/datepicker/datepicker.page.tsx +94 -0
- package/components/dialog/DomDialog.ts +145 -0
- package/components/dialog/dialog.page.styl +40 -0
- package/components/dialog/index.tsx +285 -0
- package/components/discussion/CommentBox.js +103 -0
- package/components/discussion/collapsible.page.styl +40 -0
- package/components/discussion/collapsible.page.tsx +62 -0
- package/components/discussion/comments.page.styl +142 -0
- package/components/discussion/comments.page.tsx +192 -0
- package/components/discussion/discussion.page.styl +17 -0
- package/components/discussion/history.page.tsx +81 -0
- package/components/discussion/reaction.page.styl +30 -0
- package/components/discussion/reaction.page.tsx +103 -0
- package/components/drop/drop.page.styl +40 -0
- package/components/dropdown/Dropdown.js +50 -0
- package/components/dropdown/dropdown.page.styl +33 -0
- package/components/dropdown/dropdown.page.ts +8 -0
- package/components/editor/cmeditor.page.ts +23 -0
- package/components/editor/cmeditor.styl +10 -0
- package/components/editor/index.tsx +293 -0
- package/components/editor/mdeditor.ts +60 -0
- package/components/editor/textareaHandler.ts +29 -0
- package/components/footer/footer.page.styl +94 -0
- package/components/footer/footer.page.ts +26 -0
- package/components/form/button.page.default.styl +59 -0
- package/components/form/button.page.styl +36 -0
- package/components/form/checkbox.page.styl +89 -0
- package/components/form/form.page.styl +200 -0
- package/components/form/form.page.ts +20 -0
- package/components/form/multiSelectCheckbox.page.js +46 -0
- package/components/form/radiobox.page.styl +62 -0
- package/components/form/select.page.styl +29 -0
- package/components/form/textbox.page.styl +79 -0
- package/components/form/textbox.page.ts +21 -0
- package/components/form/var.inc.styl +14 -0
- package/components/header/header.page.styl +79 -0
- package/components/highlighter/code-example.js +111 -0
- package/components/highlighter/highlighter.page.styl +99 -0
- package/components/highlighter/highlighter.page.ts +72 -0
- package/components/highlighter/meta.js +15 -0
- package/components/highlighter/prismjs.js +122 -0
- package/components/hint.page.styl +9 -0
- package/components/hint.ts +19 -0
- package/components/hitokoto/index.page.js +21 -0
- package/components/hotkey/hotkey.page.js +83 -0
- package/components/katex/katex.page.js +26 -0
- package/components/katex/katex.page.styl +2 -0
- package/components/languageselect.tsx +94 -0
- package/components/loader/loader.page.styl +40 -0
- package/components/mantine.page.tsx +39 -0
- package/components/marker/Marker.js +192 -0
- package/components/marker/MarkerReactive.js +55 -0
- package/components/marker/marker.page.js +8 -0
- package/components/marker/marker.page.styl +57 -0
- package/components/media/media.page.js +46 -0
- package/components/menu/menu-heading.page.js +28 -0
- package/components/menu/menu.page.js +18 -0
- package/components/menu/menu.page.styl +68 -0
- package/components/message/index.page.ts +166 -0
- package/components/message/worker.ts +110 -0
- package/components/messagepad/DialogueListItem.page.styl +28 -0
- package/components/messagepad/DialogueListItemComponent.jsx +39 -0
- package/components/messagepad/Message.page.styl +64 -0
- package/components/messagepad/MessageComponent.jsx +33 -0
- package/components/messagepad/MessagePad.page.styl +99 -0
- package/components/messagepad/MessagePadDialogueContentContainer.jsx +104 -0
- package/components/messagepad/MessagePadDialogueListContainer.jsx +49 -0
- package/components/messagepad/MessagePadInputContainer.jsx +100 -0
- package/components/messagepad/index.jsx +49 -0
- package/components/messagepad/reducers/activeId.ts +36 -0
- package/components/messagepad/reducers/dialogues.js +53 -0
- package/components/messagepad/reducers/index.ts +14 -0
- package/components/messagepad/reducers/inputs.js +43 -0
- package/components/messagepad/reducers/isPosting.ts +49 -0
- package/components/monaco/index.ts +178 -0
- package/components/monaco/languages/markdown.ts +97 -0
- package/components/monaco/languages/typescript.ts +45 -0
- package/components/monaco/languages/yaml.ts +22 -0
- package/components/monaco/loader.ts +96 -0
- package/components/monaco/monaco.styl +30 -0
- package/components/monaco/nls.js +31 -0
- package/components/monaco/schema/problemconfig.ts +123 -0
- package/components/navigation/hamburgers.page.styl +87 -0
- package/components/navigation/nav-logo-small_dark.png +0 -0
- package/components/navigation/navigation.page.js +203 -0
- package/components/navigation/navigation.page.styl +211 -0
- package/components/notification/index.ts +105 -0
- package/components/notification/notification.page.js +14 -0
- package/components/notification/notification.page.styl +84 -0
- package/components/nprogress.page.styl +50 -0
- package/components/omnisearch/index.page.tsx +124 -0
- package/components/omnisearch/omnibar.page.styl +138 -0
- package/components/pager/pager.page.styl +57 -0
- package/components/preview/preview.page.ts +187 -0
- package/components/problem/create.page.js +12 -0
- package/components/problem/list.page.js +9 -0
- package/components/problem/rp.page.styl +4 -0
- package/components/problem/tag.page.styl +84 -0
- package/components/problemconfig/BasicForm.tsx +92 -0
- package/components/problemconfig/ProblemConfigEditor.tsx +170 -0
- package/components/problemconfig/ProblemConfigForm.tsx +140 -0
- package/components/problemconfig/ProblemConfigTree.tsx +163 -0
- package/components/problemconfig/ProblemType.tsx +165 -0
- package/components/problemconfig/index.tsx +91 -0
- package/components/problemconfig/reducer/config.ts +173 -0
- package/components/problemconfig/reducer/index.ts +11 -0
- package/components/problemconfig/reducer/testdata.ts +16 -0
- package/components/problemconfig/tree/AddTestcase.tsx +137 -0
- package/components/problemconfig/tree/SelectionManager.tsx +140 -0
- package/components/problemconfig/tree/SubtaskSettings.tsx +180 -0
- package/components/problemconfig/tree/Testcase.tsx +98 -0
- package/components/profile/backgrounds/1.jpg +0 -0
- package/components/profile/backgrounds/10.jpg +0 -0
- package/components/profile/backgrounds/11.jpg +0 -0
- package/components/profile/backgrounds/12.jpg +0 -0
- package/components/profile/backgrounds/13.jpg +0 -0
- package/components/profile/backgrounds/14.jpg +0 -0
- package/components/profile/backgrounds/15.jpg +0 -0
- package/components/profile/backgrounds/16.jpg +0 -0
- package/components/profile/backgrounds/17.jpg +0 -0
- package/components/profile/backgrounds/18.jpg +0 -0
- package/components/profile/backgrounds/19.jpg +0 -0
- package/components/profile/backgrounds/2.jpg +0 -0
- package/components/profile/backgrounds/20.jpg +0 -0
- package/components/profile/backgrounds/21.jpg +0 -0
- package/components/profile/backgrounds/3.jpg +0 -0
- package/components/profile/backgrounds/4.jpg +0 -0
- package/components/profile/backgrounds/5.jpg +0 -0
- package/components/profile/backgrounds/6.jpg +0 -0
- package/components/profile/backgrounds/7.jpg +0 -0
- package/components/profile/backgrounds/8.jpg +0 -0
- package/components/profile/backgrounds/9.jpg +0 -0
- package/components/profile/backgrounds/gen_thumbnails.sh +7 -0
- package/components/profile/backgrounds/thumbnail/1.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/10.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/11.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/12.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/13.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/14.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/15.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/16.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/17.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/18.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/19.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/2.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/20.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/21.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/3.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/4.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/5.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/6.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/7.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/8.jpg +0 -0
- package/components/profile/backgrounds/thumbnail/9.jpg +0 -0
- package/components/profile/profile.page.styl +23 -0
- package/components/react/DomComponent.tsx +14 -0
- package/components/react/IconComponent.tsx +20 -0
- package/components/record/record.page.styl +26 -0
- package/components/rotator/index.js +75 -0
- package/components/rotator/rotator.page.styl +20 -0
- package/components/scratchpad/DataInput.page.styl +17 -0
- package/components/scratchpad/DataInputComponent.jsx +45 -0
- package/components/scratchpad/Editor.page.styl +13 -0
- package/components/scratchpad/Panel.page.styl +18 -0
- package/components/scratchpad/PanelButton.page.styl +15 -0
- package/components/scratchpad/PanelButtonComponent.jsx +19 -0
- package/components/scratchpad/PanelComponent.jsx +25 -0
- package/components/scratchpad/ScratchpadEditorContainer.tsx +137 -0
- package/components/scratchpad/ScratchpadPretestContainer.jsx +57 -0
- package/components/scratchpad/ScratchpadRecordsContainer.jsx +45 -0
- package/components/scratchpad/ScratchpadRecordsRowContainer.jsx +83 -0
- package/components/scratchpad/ScratchpadSettings.tsx +48 -0
- package/components/scratchpad/ScratchpadToolbarContainer.jsx +190 -0
- package/components/scratchpad/Tab.page.styl +24 -0
- package/components/scratchpad/Toolbar.page.styl +53 -0
- package/components/scratchpad/ToolbarComponent.jsx +85 -0
- package/components/scratchpad/index.tsx +132 -0
- package/components/scratchpad/reducers/editor.ts +24 -0
- package/components/scratchpad/reducers/index.ts +17 -0
- package/components/scratchpad/reducers/pretest.ts +34 -0
- package/components/scratchpad/reducers/records.ts +40 -0
- package/components/scratchpad/reducers/state.ts +10 -0
- package/components/scratchpad/reducers/ui.ts +152 -0
- package/components/scratchpad/scratchpad.page.styl +55 -0
- package/components/scratchpad/var.inc.styl +2 -0
- package/components/selectUser.tsx +16 -0
- package/components/signin/signInDialog.page.js +84 -0
- package/components/signin/signin_dialog.page.styl +57 -0
- package/components/smoothscroll/smoothscroll.page.js +44 -0
- package/components/socket/index.ts +68 -0
- package/components/star/star.page.styl +20 -0
- package/components/star/star.page.ts +58 -0
- package/components/sticky/sticky.page.js +66 -0
- package/components/tab/Tab.js +168 -0
- package/components/tab/tab.page.js +9 -0
- package/components/tab/tab.page.styl +105 -0
- package/components/tab/var.inc.styl +3 -0
- package/components/table/StyledTable.js +51 -0
- package/components/table/styledTable.page.js +8 -0
- package/components/table/table.page.styl +73 -0
- package/components/time/time.page.js +47 -0
- package/components/tooltip/Tooltip.js +49 -0
- package/components/tooltip/tooltip.page.js +29 -0
- package/components/tooltip/tooltip.page.styl +69 -0
- package/components/training/training.page.styl +25 -0
- package/components/upload.tsx +103 -0
- package/components/vote/vote.page.js +43 -0
- package/components/zipDownloader/index.ts +157 -0
- package/constant/domain.js +21 -0
- package/constant/message.js +5 -0
- package/constant/record.js +52 -0
- package/context.ts +11 -0
- package/entry.js +72 -0
- package/hydro.ts +112 -0
- package/index.ts +226 -0
- package/lazyload.ts +69 -0
- package/locales/en.yaml +71 -0
- package/locales/ko.yaml +823 -0
- package/locales/zh.yaml +1137 -0
- package/locales/zh_TW.yaml +1133 -0
- package/misc/Page.ts +49 -0
- package/misc/PageLoader.js +31 -0
- package/misc/float.styl +14 -0
- package/misc/grid.styl +1048 -0
- package/misc/immersive-background.jpg +0 -0
- package/misc/immersive-background@2x.jpg +0 -0
- package/misc/immersive.styl +23 -0
- package/misc/nothing.styl +13 -0
- package/misc/puzzled_twd2.svg +1 -0
- package/misc/section.styl +105 -0
- package/misc/slideout.styl +46 -0
- package/misc/structure.styl +158 -0
- package/misc/textalign.styl +11 -0
- package/misc/typography.styl +485 -0
- package/package.json +148 -0
- package/polyfill.ts +90 -0
- package/postcss.config.js +15 -0
- package/sentry.ts +26 -0
- package/service-worker.ts +265 -0
- package/setting.yaml +98 -0
- package/templates/about.html +14 -0
- package/templates/bsod.html +35 -0
- package/templates/components/comments_discussion.html +165 -0
- package/templates/components/comments_solution.html +171 -0
- package/templates/components/contest.html +12 -0
- package/templates/components/form.html +214 -0
- package/templates/components/home.html +20 -0
- package/templates/components/homework.html +8 -0
- package/templates/components/md_hint.html +39 -0
- package/templates/components/noscript_note.html +15 -0
- package/templates/components/nothing.html +6 -0
- package/templates/components/paginator.html +25 -0
- package/templates/components/problem.html +33 -0
- package/templates/components/record.html +21 -0
- package/templates/components/sidemenu.html +11 -0
- package/templates/components/user.html +49 -0
- package/templates/contest_balloon.html +48 -0
- package/templates/contest_clarification.html +103 -0
- package/templates/contest_detail.html +56 -0
- package/templates/contest_edit.html +259 -0
- package/templates/contest_main.html +146 -0
- package/templates/contest_manage.html +80 -0
- package/templates/contest_print.html +27 -0
- package/templates/contest_problemlist.html +231 -0
- package/templates/contest_scoreboard.html +46 -0
- package/templates/contest_scoreboard_download_html.html +71 -0
- package/templates/contest_user.html +47 -0
- package/templates/discussion_create.html +28 -0
- package/templates/discussion_detail.html +149 -0
- package/templates/discussion_edit.html +30 -0
- package/templates/discussion_main_or_node.html +47 -0
- package/templates/domain_base.html +26 -0
- package/templates/domain_create.html +55 -0
- package/templates/domain_dashboard.html +45 -0
- package/templates/domain_edit.html +6 -0
- package/templates/domain_group.html +51 -0
- package/templates/domain_join.html +47 -0
- package/templates/domain_join_applications.html +67 -0
- package/templates/domain_permission.html +66 -0
- package/templates/domain_role.html +71 -0
- package/templates/domain_user.html +86 -0
- package/templates/domain_user_raw.html +5 -0
- package/templates/error.html +25 -0
- package/templates/home_domain.html +64 -0
- package/templates/home_files.html +16 -0
- package/templates/home_messages.html +9 -0
- package/templates/home_security.html +224 -0
- package/templates/home_settings.html +21 -0
- package/templates/homework_detail.html +82 -0
- package/templates/homework_edit.html +138 -0
- package/templates/homework_files.html +24 -0
- package/templates/homework_main.html +76 -0
- package/templates/layout/basic.html +27 -0
- package/templates/layout/home_base.html +13 -0
- package/templates/layout/html5.html +74 -0
- package/templates/layout/immersive.html +22 -0
- package/templates/layout/mail.html +31 -0
- package/templates/layout/simple.html +4 -0
- package/templates/layout/wiki_base.html +16 -0
- package/templates/main.html +22 -0
- package/templates/manage_base.html +24 -0
- package/templates/manage_config.html +6 -0
- package/templates/manage_dashboard.html +27 -0
- package/templates/manage_script.html +56 -0
- package/templates/manage_setting.html +6 -0
- package/templates/manage_user_import.html +23 -0
- package/templates/manage_user_priv.html +76 -0
- package/templates/partials/category.html +19 -0
- package/templates/partials/contest.html +3 -0
- package/templates/partials/contest_balloon.html +37 -0
- package/templates/partials/contest_sidebar.html +150 -0
- package/templates/partials/contest_sidebar_management.html +56 -0
- package/templates/partials/contest_user.html +19 -0
- package/templates/partials/discussion_edit_form.html +45 -0
- package/templates/partials/discussion_list.html +50 -0
- package/templates/partials/discussion_nodes_widget.html +17 -0
- package/templates/partials/files.html +49 -0
- package/templates/partials/footer.html +108 -0
- package/templates/partials/hamburger.html +7 -0
- package/templates/partials/header_mobile.html +12 -0
- package/templates/partials/homepage/bulletin.html +7 -0
- package/templates/partials/homepage/contest.html +48 -0
- package/templates/partials/homepage/discussion.html +13 -0
- package/templates/partials/homepage/discussion_nodes.html +4 -0
- package/templates/partials/homepage/error.html +5 -0
- package/templates/partials/homepage/hitokoto.html +6 -0
- package/templates/partials/homepage/homework.html +45 -0
- package/templates/partials/homepage/problem_search.html +13 -0
- package/templates/partials/homepage/ranking.html +39 -0
- package/templates/partials/homepage/recent_problems.html +17 -0
- package/templates/partials/homepage/starred_problems.html +15 -0
- package/templates/partials/homepage/suggestion.html +34 -0
- package/templates/partials/homepage/training.html +50 -0
- package/templates/partials/homework.html +3 -0
- package/templates/partials/homework_default_penalty_rules.yaml +6 -0
- package/templates/partials/homework_sidebar.html +93 -0
- package/templates/partials/login_dialog.html +56 -0
- package/templates/partials/manage_user_priv.html +78 -0
- package/templates/partials/nav.html +138 -0
- package/templates/partials/problem-sidebar-information.html +25 -0
- package/templates/partials/problem.html +2 -0
- package/templates/partials/problem_category_dialog.html +43 -0
- package/templates/partials/problem_default.md +26 -0
- package/templates/partials/problem_description.html +33 -0
- package/templates/partials/problem_files.html +63 -0
- package/templates/partials/problem_list.html +68 -0
- package/templates/partials/problem_lucky.html +10 -0
- package/templates/partials/problem_sidebar.html +14 -0
- package/templates/partials/problem_sidebar_contest.html +43 -0
- package/templates/partials/problem_sidebar_homework.html +42 -0
- package/templates/partials/problem_sidebar_normal.html +152 -0
- package/templates/partials/problem_stat.html +3 -0
- package/templates/partials/scoreboard.html +79 -0
- package/templates/partials/setting.html +92 -0
- package/templates/partials/training_default.json +14 -0
- package/templates/partials/training_detail.html +153 -0
- package/templates/partials/user.html +2 -0
- package/templates/partials/user_detail/activity.html +18 -0
- package/templates/partials/user_detail/solution.html +29 -0
- package/templates/problem_config.html +39 -0
- package/templates/problem_detail.html +150 -0
- package/templates/problem_edit.html +111 -0
- package/templates/problem_files.html +91 -0
- package/templates/problem_hack.html +41 -0
- package/templates/problem_import.html +58 -0
- package/templates/problem_main.html +100 -0
- package/templates/problem_solution.html +55 -0
- package/templates/problem_statistics.html +96 -0
- package/templates/problem_submit.html +40 -0
- package/templates/ranking.html +81 -0
- package/templates/record_detail.html +134 -0
- package/templates/record_detail_status.html +93 -0
- package/templates/record_detail_summary.html +19 -0
- package/templates/record_main.html +142 -0
- package/templates/record_main_tr.html +35 -0
- package/templates/status.html +75 -0
- package/templates/training_detail.html +120 -0
- package/templates/training_edit.html +68 -0
- package/templates/training_files.html +64 -0
- package/templates/training_main.html +107 -0
- package/templates/user_changemail_mail.html +6 -0
- package/templates/user_changemail_mail_sent.html +9 -0
- package/templates/user_delete_pending.html +10 -0
- package/templates/user_detail.html +181 -0
- package/templates/user_login.html +46 -0
- package/templates/user_logout.html +13 -0
- package/templates/user_lostpass.html +27 -0
- package/templates/user_lostpass_mail.html +6 -0
- package/templates/user_lostpass_mail_sent.html +9 -0
- package/templates/user_lostpass_with_code.html +29 -0
- package/templates/user_register.html +22 -0
- package/templates/user_register_mail.html +6 -0
- package/templates/user_register_mail_sent.html +9 -0
- package/templates/user_register_with_code.html +35 -0
- package/templates/user_sudo.html +54 -0
- package/templates/user_sudo_redirect.html +18 -0
- package/templates/wiki_help.html +189 -0
- package/theme/bp6-compat.css +48 -0
- package/theme/dark.styl +397 -0
- package/theme/default.js +33 -0
- package/typed.d.ts +20 -0
- package/utils/base.ts +209 -0
- package/utils/base64.js +104 -0
- package/utils/db.ts +32 -0
- package/utils/index.ts +73 -0
- package/utils/loadReactRedux.ts +32 -0
- package/utils/mediaQuery.ts +13 -0
- package/utils/pjax.js +148 -0
- package/utils/slide.ts +57 -0
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
// The typography stylesheet is based on typo.css: http://typo.sofi.sh/
|
|
2
|
+
|
|
3
|
+
html
|
|
4
|
+
box-sizing: border-box
|
|
5
|
+
|
|
6
|
+
+mobile()
|
|
7
|
+
html
|
|
8
|
+
font-size: 13px
|
|
9
|
+
|
|
10
|
+
*, *:before, *:after
|
|
11
|
+
box-sizing: inherit
|
|
12
|
+
|
|
13
|
+
html
|
|
14
|
+
color: $text-1-color
|
|
15
|
+
-webkit-text-size-adjust: 100%
|
|
16
|
+
-ms-text-size-adjust: 100%
|
|
17
|
+
text-rendering: optimizelegibility
|
|
18
|
+
|
|
19
|
+
#panel
|
|
20
|
+
background: $page-bg-color
|
|
21
|
+
|
|
22
|
+
body, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, menu, nav, section
|
|
23
|
+
margin: 0
|
|
24
|
+
padding: 0
|
|
25
|
+
|
|
26
|
+
dt
|
|
27
|
+
line-height: 1.8
|
|
28
|
+
color: lighten($text-1-color, 30%)
|
|
29
|
+
|
|
30
|
+
dd
|
|
31
|
+
margin-bottom: rem(10px)
|
|
32
|
+
|
|
33
|
+
+above(rupture.desktop-cutoff)
|
|
34
|
+
dl.horizontal
|
|
35
|
+
overflow: hidden
|
|
36
|
+
dt
|
|
37
|
+
float: left
|
|
38
|
+
overflow: hidden
|
|
39
|
+
clear: left
|
|
40
|
+
text-align: left
|
|
41
|
+
text-overflow: ellipsis
|
|
42
|
+
white-space: nowrap
|
|
43
|
+
box-sizing: border-box
|
|
44
|
+
padding-right: rem(10px)
|
|
45
|
+
dd
|
|
46
|
+
float: left
|
|
47
|
+
|
|
48
|
+
dt, dd
|
|
49
|
+
line-height: 1.2rem
|
|
50
|
+
margin: rem(5px 0)
|
|
51
|
+
|
|
52
|
+
&.large
|
|
53
|
+
dt
|
|
54
|
+
width: 37%
|
|
55
|
+
|
|
56
|
+
dd
|
|
57
|
+
width: 62%
|
|
58
|
+
|
|
59
|
+
&.exlarge
|
|
60
|
+
dt
|
|
61
|
+
width: 62%
|
|
62
|
+
|
|
63
|
+
dd
|
|
64
|
+
width: 37%
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
article, aside, details, figcaption, figure, footer, header, menu, nav, section
|
|
68
|
+
display: block
|
|
69
|
+
|
|
70
|
+
audio, canvas, video
|
|
71
|
+
display: inline-block
|
|
72
|
+
|
|
73
|
+
body
|
|
74
|
+
font-family: $primary-font-family
|
|
75
|
+
font-weight: 400
|
|
76
|
+
font-size: rem($font-size)
|
|
77
|
+
line-height: 1
|
|
78
|
+
|
|
79
|
+
button, input, optgroup, select, textarea
|
|
80
|
+
color: inherit
|
|
81
|
+
font: inherit
|
|
82
|
+
margin: 0
|
|
83
|
+
|
|
84
|
+
table
|
|
85
|
+
border-collapse: collapse
|
|
86
|
+
border-spacing: 0
|
|
87
|
+
|
|
88
|
+
fieldset, img
|
|
89
|
+
border: 0
|
|
90
|
+
|
|
91
|
+
blockquote
|
|
92
|
+
position: relative
|
|
93
|
+
color: $blockquote-color
|
|
94
|
+
font-weight: 400
|
|
95
|
+
border-left: 3px solid #DDD
|
|
96
|
+
padding: 1rem
|
|
97
|
+
margin: 0.5rem 0 1rem 0
|
|
98
|
+
font-size: ($font-size-secondary)
|
|
99
|
+
|
|
100
|
+
&:before
|
|
101
|
+
display: block
|
|
102
|
+
margin-bottom: 0.6rem
|
|
103
|
+
|
|
104
|
+
&.note
|
|
105
|
+
border-color: $primary-color
|
|
106
|
+
background: #F8F8F8
|
|
107
|
+
color: lighten($text-1-color, 10%)
|
|
108
|
+
|
|
109
|
+
&:before
|
|
110
|
+
content: 'NOTE:'
|
|
111
|
+
color: $primary-color
|
|
112
|
+
|
|
113
|
+
&.warn
|
|
114
|
+
border-color: red
|
|
115
|
+
background: #F8F8F8
|
|
116
|
+
color: lighten($text-1-color, 10%)
|
|
117
|
+
|
|
118
|
+
&:before
|
|
119
|
+
content: 'WARNING:'
|
|
120
|
+
color: red
|
|
121
|
+
|
|
122
|
+
&.red
|
|
123
|
+
border-color: red
|
|
124
|
+
background: #F8F8F8
|
|
125
|
+
color: lighten($text-1-color, 10%)
|
|
126
|
+
|
|
127
|
+
&.yellow
|
|
128
|
+
border-color: yellow
|
|
129
|
+
background: #F8F8F8
|
|
130
|
+
color: lighten($text-1-color, 10%)
|
|
131
|
+
|
|
132
|
+
&.blue
|
|
133
|
+
border-color: blue
|
|
134
|
+
background: #F8F8F8
|
|
135
|
+
color: lighten($text-1-color, 10%)
|
|
136
|
+
|
|
137
|
+
acronym, abbr
|
|
138
|
+
border-bottom: 1px dotted
|
|
139
|
+
font-variant: normal
|
|
140
|
+
|
|
141
|
+
abbr
|
|
142
|
+
cursor: help
|
|
143
|
+
|
|
144
|
+
del
|
|
145
|
+
text-decoration: line-through
|
|
146
|
+
|
|
147
|
+
address, caption, cite, th, var
|
|
148
|
+
font-style: normal
|
|
149
|
+
font-weight: 400
|
|
150
|
+
|
|
151
|
+
ul, ol
|
|
152
|
+
list-style: none
|
|
153
|
+
|
|
154
|
+
caption, th
|
|
155
|
+
text-align: left
|
|
156
|
+
|
|
157
|
+
q:before, q:after
|
|
158
|
+
content: ''
|
|
159
|
+
|
|
160
|
+
sub, sup
|
|
161
|
+
font-size: 75%
|
|
162
|
+
line-height: 0
|
|
163
|
+
position: relative
|
|
164
|
+
|
|
165
|
+
:root sub, :root sup
|
|
166
|
+
vertical-align: baseline
|
|
167
|
+
|
|
168
|
+
sup
|
|
169
|
+
top: -0.5em
|
|
170
|
+
|
|
171
|
+
sub
|
|
172
|
+
bottom: -0.25em
|
|
173
|
+
|
|
174
|
+
a, .link
|
|
175
|
+
&, &:visited, &:hover, &:active
|
|
176
|
+
color: $text-1-color
|
|
177
|
+
|
|
178
|
+
&:hover
|
|
179
|
+
text-decoration: underline
|
|
180
|
+
|
|
181
|
+
ins, a, .link
|
|
182
|
+
text-decoration: none
|
|
183
|
+
|
|
184
|
+
u, .typo-u
|
|
185
|
+
text-decoration: underline
|
|
186
|
+
|
|
187
|
+
.supplementary
|
|
188
|
+
font-size: rem($font-size-secondary)
|
|
189
|
+
line-height: 1
|
|
190
|
+
color: $supplementary-color
|
|
191
|
+
|
|
192
|
+
a
|
|
193
|
+
&, &:visited, &:hover
|
|
194
|
+
color: $supplementary-link-color
|
|
195
|
+
|
|
196
|
+
&.list
|
|
197
|
+
li
|
|
198
|
+
display: inline-block
|
|
199
|
+
margin-right: rem(15px)
|
|
200
|
+
vertical-align: middle
|
|
201
|
+
|
|
202
|
+
&.dot.list
|
|
203
|
+
li
|
|
204
|
+
margin-right: 0
|
|
205
|
+
|
|
206
|
+
li:after
|
|
207
|
+
display: inline-block
|
|
208
|
+
content: '·'
|
|
209
|
+
margin: 0 rem(5px)
|
|
210
|
+
|
|
211
|
+
li:last-child:after
|
|
212
|
+
display: none
|
|
213
|
+
|
|
214
|
+
.supplementary.inverse
|
|
215
|
+
color: $immersive-text-color !important
|
|
216
|
+
|
|
217
|
+
a
|
|
218
|
+
&, &:visited, &:hover
|
|
219
|
+
color: $immersive-text-color !important
|
|
220
|
+
|
|
221
|
+
.group-list__item
|
|
222
|
+
margin-bottom: 1rem
|
|
223
|
+
|
|
224
|
+
&:last-child
|
|
225
|
+
margin-bottom: 0
|
|
226
|
+
|
|
227
|
+
.chip-list__item
|
|
228
|
+
line-height: 1.5
|
|
229
|
+
display: inline-block
|
|
230
|
+
margin-right: 0.5rem
|
|
231
|
+
|
|
232
|
+
mark
|
|
233
|
+
background: #fffdd1
|
|
234
|
+
border-bottom: 1px solid #ffedce
|
|
235
|
+
padding: rem(2px)
|
|
236
|
+
margin: rem(0 5px)
|
|
237
|
+
|
|
238
|
+
pre, code, pre tt
|
|
239
|
+
font-family: $code-font-family
|
|
240
|
+
|
|
241
|
+
.monospace
|
|
242
|
+
font-family: $code-font-family
|
|
243
|
+
|
|
244
|
+
pre
|
|
245
|
+
background: none
|
|
246
|
+
border: 0
|
|
247
|
+
display: block
|
|
248
|
+
white-space: pre-wrap
|
|
249
|
+
overflow: auto
|
|
250
|
+
word-wrap()
|
|
251
|
+
|
|
252
|
+
hr
|
|
253
|
+
border: none
|
|
254
|
+
border-bottom: 1px solid #cfcfcf
|
|
255
|
+
margin-bottom: 0.8em
|
|
256
|
+
height: 10px
|
|
257
|
+
|
|
258
|
+
small, figcaption
|
|
259
|
+
font-size: 0.9em
|
|
260
|
+
color: $text-3-color
|
|
261
|
+
|
|
262
|
+
.typo
|
|
263
|
+
word-wrap()
|
|
264
|
+
overflow: auto hidden;
|
|
265
|
+
|
|
266
|
+
.typo a, .typo .link, .typo-a
|
|
267
|
+
&, &:visited, &:active, &:hover
|
|
268
|
+
&:not(.user-profile-name)
|
|
269
|
+
&:not(.media-link)
|
|
270
|
+
color: $primary-color
|
|
271
|
+
|
|
272
|
+
.typo dl, .typo form, .typo hr, .typo table
|
|
273
|
+
padding-top: 0.3em
|
|
274
|
+
padding-bottom: 0.3em
|
|
275
|
+
|
|
276
|
+
.typo li, .typo ol
|
|
277
|
+
padding-top: 0.15em
|
|
278
|
+
padding-bottom: 0.15em
|
|
279
|
+
line-height: 1.45
|
|
280
|
+
|
|
281
|
+
.typo p
|
|
282
|
+
padding-top: 0.27em
|
|
283
|
+
padding-bottom: 0.27em
|
|
284
|
+
line-height: 1.75
|
|
285
|
+
font-size: inherit
|
|
286
|
+
|
|
287
|
+
h1, h2, h3, h4, h5, h6
|
|
288
|
+
font-family: $header-font-family
|
|
289
|
+
font-weight: 300
|
|
290
|
+
color: $header-1-color
|
|
291
|
+
line-height: 1.1
|
|
292
|
+
|
|
293
|
+
.typo h1, .typo h2, .typo h3, .typo h4, .typo h5, .typo h6
|
|
294
|
+
margin-top: 1.0em
|
|
295
|
+
margin-bottom: 0.6em
|
|
296
|
+
line-height: 1.1
|
|
297
|
+
|
|
298
|
+
.typo h1
|
|
299
|
+
font-size: 1.8em
|
|
300
|
+
font-weight: 500
|
|
301
|
+
|
|
302
|
+
.typo h2
|
|
303
|
+
font-size: 1.4em
|
|
304
|
+
font-weight: 400
|
|
305
|
+
|
|
306
|
+
.typo h3
|
|
307
|
+
font-size: 1.17em
|
|
308
|
+
|
|
309
|
+
.typo h4, .typo h5, .typo h6
|
|
310
|
+
font-size: 1em
|
|
311
|
+
|
|
312
|
+
.typo ul
|
|
313
|
+
margin-left: 1.2em
|
|
314
|
+
list-style: square
|
|
315
|
+
|
|
316
|
+
.no-heading
|
|
317
|
+
h1, h2, h3, h4, h5, h6
|
|
318
|
+
padding-top: 0.3em
|
|
319
|
+
padding-bottom: 0.3em
|
|
320
|
+
margin: 0
|
|
321
|
+
font-size: inherit
|
|
322
|
+
font-weight: 400
|
|
323
|
+
line-height: 1
|
|
324
|
+
margin-top: 0.6em
|
|
325
|
+
|
|
326
|
+
.typo ol
|
|
327
|
+
list-style: decimal
|
|
328
|
+
margin-left: 1.9em
|
|
329
|
+
|
|
330
|
+
.typo li ol
|
|
331
|
+
margin-top: 1.2em
|
|
332
|
+
margin-bottom: 1.2em
|
|
333
|
+
margin-left: 2em
|
|
334
|
+
|
|
335
|
+
.typo li ul
|
|
336
|
+
list-style: circle
|
|
337
|
+
|
|
338
|
+
.typo table th, .typo table td, .typo table caption
|
|
339
|
+
border: 1px solid #ddd
|
|
340
|
+
padding: 0.5em 1em
|
|
341
|
+
color: #666
|
|
342
|
+
|
|
343
|
+
.typo table th
|
|
344
|
+
background: #fbfbfb
|
|
345
|
+
|
|
346
|
+
.typo table thead th
|
|
347
|
+
background: #f1f1f1
|
|
348
|
+
|
|
349
|
+
.typo table caption
|
|
350
|
+
border-bottom: none
|
|
351
|
+
|
|
352
|
+
.typo img
|
|
353
|
+
max-width: 100%
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
.text-aqua
|
|
357
|
+
color: aqua
|
|
358
|
+
&.lighter
|
|
359
|
+
color: lighten(aqua, 40%)
|
|
360
|
+
&.darker
|
|
361
|
+
color: darken(aqua, 40%)
|
|
362
|
+
|
|
363
|
+
.text-blue
|
|
364
|
+
color: blue
|
|
365
|
+
&.lighter
|
|
366
|
+
color: lighten(blue, 40%)
|
|
367
|
+
&.darker
|
|
368
|
+
color: darken(blue, 40%)
|
|
369
|
+
|
|
370
|
+
.text-navy
|
|
371
|
+
color: navy
|
|
372
|
+
&.lighter
|
|
373
|
+
color: lighten(navy, 40%)
|
|
374
|
+
&.darker
|
|
375
|
+
color: darken(navy, 40%)
|
|
376
|
+
|
|
377
|
+
.text-teal
|
|
378
|
+
color: teal
|
|
379
|
+
&.lighter
|
|
380
|
+
color: lighten(teal, 40%)
|
|
381
|
+
&.darker
|
|
382
|
+
color: darken(teal, 40%)
|
|
383
|
+
|
|
384
|
+
.text-green
|
|
385
|
+
color: green
|
|
386
|
+
&.lighter
|
|
387
|
+
color: lighten(green, 40%)
|
|
388
|
+
&.darker
|
|
389
|
+
color: darken(green, 40%)
|
|
390
|
+
|
|
391
|
+
.text-olive
|
|
392
|
+
color: olive
|
|
393
|
+
&.lighter
|
|
394
|
+
color: lighten(olive, 40%)
|
|
395
|
+
&.darker
|
|
396
|
+
color: darken(olive, 40%)
|
|
397
|
+
|
|
398
|
+
.text-lime
|
|
399
|
+
color: lime
|
|
400
|
+
&.lighter
|
|
401
|
+
color: lighten(lime, 40%)
|
|
402
|
+
&.darker
|
|
403
|
+
color: darken(lime, 40%)
|
|
404
|
+
|
|
405
|
+
.text-yellow
|
|
406
|
+
color: yellow
|
|
407
|
+
&.lighter
|
|
408
|
+
color: lighten(yellow, 40%)
|
|
409
|
+
&.darker
|
|
410
|
+
color: darken(yellow, 40%)
|
|
411
|
+
|
|
412
|
+
.text-orange
|
|
413
|
+
color: orange
|
|
414
|
+
&.lighter
|
|
415
|
+
color: lighten(orange, 40%)
|
|
416
|
+
&.darker
|
|
417
|
+
color: darken(orange, 40%)
|
|
418
|
+
|
|
419
|
+
.text-red
|
|
420
|
+
color: red
|
|
421
|
+
&.lighter
|
|
422
|
+
color: lighten(red, 40%)
|
|
423
|
+
&.darker
|
|
424
|
+
color: darken(red, 40%)
|
|
425
|
+
|
|
426
|
+
.text-fuchsia
|
|
427
|
+
color: fuchsia
|
|
428
|
+
&.lighter
|
|
429
|
+
color: lighten(fuchsia, 40%)
|
|
430
|
+
&.darker
|
|
431
|
+
color: darken(fuchsia, 40%)
|
|
432
|
+
|
|
433
|
+
.text-purple
|
|
434
|
+
color: purple
|
|
435
|
+
&.lighter
|
|
436
|
+
color: lighten(purple, 40%)
|
|
437
|
+
&.darker
|
|
438
|
+
color: darken(purple, 40%)
|
|
439
|
+
|
|
440
|
+
.text-maroon
|
|
441
|
+
color: maroon
|
|
442
|
+
&.lighter
|
|
443
|
+
color: lighten(maroon, 40%)
|
|
444
|
+
&.darker
|
|
445
|
+
color: darken(maroon, 40%)
|
|
446
|
+
|
|
447
|
+
.text-white
|
|
448
|
+
color: white
|
|
449
|
+
&.lighter
|
|
450
|
+
color: lighten(white, 40%)
|
|
451
|
+
&.darker
|
|
452
|
+
color: darken(white, 40%)
|
|
453
|
+
|
|
454
|
+
.text-silver
|
|
455
|
+
color: silver
|
|
456
|
+
&.lighter
|
|
457
|
+
color: lighten(silver, 40%)
|
|
458
|
+
&.darker
|
|
459
|
+
color: darken(silver, 40%)
|
|
460
|
+
|
|
461
|
+
.text-gray
|
|
462
|
+
color: gray
|
|
463
|
+
&.lighter
|
|
464
|
+
color: lighten(gray, 40%)
|
|
465
|
+
&.darker
|
|
466
|
+
color: darken(gray, 40%)
|
|
467
|
+
|
|
468
|
+
.text-black
|
|
469
|
+
color: black
|
|
470
|
+
&.lighter
|
|
471
|
+
color: lighten(black, 40%)
|
|
472
|
+
&.darker
|
|
473
|
+
color: darken(black, 40%)
|
|
474
|
+
|
|
475
|
+
textarea
|
|
476
|
+
font-family: $code-font-family !important
|
|
477
|
+
|
|
478
|
+
:focus
|
|
479
|
+
outline: 0px;
|
|
480
|
+
outline-offset: 2px;
|
|
481
|
+
|
|
482
|
+
@font-face
|
|
483
|
+
font-family: "XiaoLai SC";
|
|
484
|
+
font-display: swap;
|
|
485
|
+
src: url('https://raw.githubusercontent.com/lxgw/kose-font/master/TTF%20(Simplified%20Chinese)/XiaolaiSC-Regular.ttf') format('truetype');
|
package/package.json
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shzlx/ui-default",
|
|
3
|
+
"version": "4.58.2",
|
|
4
|
+
"author": "undefined <i@undefined.moe>",
|
|
5
|
+
"license": "AGPL-3.0",
|
|
6
|
+
"main": "index.ts",
|
|
7
|
+
"types": "api.ts",
|
|
8
|
+
"repository": "https://github.com/hydro-dev/Hydro.git",
|
|
9
|
+
"preferUnplugged": true,
|
|
10
|
+
"hydro": {
|
|
11
|
+
"cli": false
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@fontsource/dm-mono": "^5.2.7",
|
|
15
|
+
"@fontsource/fira-code": "^5.2.7",
|
|
16
|
+
"@fontsource/inconsolata": "^5.2.8",
|
|
17
|
+
"@fontsource/jetbrains-mono": "^5.2.8",
|
|
18
|
+
"@fontsource/pt-mono": "^5.2.8",
|
|
19
|
+
"@fontsource/roboto-mono": "^5.2.9",
|
|
20
|
+
"@fontsource/source-code-pro": "^5.2.7",
|
|
21
|
+
"@fontsource/ubuntu-mono": "^5.2.8",
|
|
22
|
+
"@hydrooj/utils": "workspace:^",
|
|
23
|
+
"@mantine/core": "^9.2.1",
|
|
24
|
+
"@mantine/hooks": "^9.2.1",
|
|
25
|
+
"@mantine/notifications": "^9.2.1",
|
|
26
|
+
"@sentry/browser": "^10.53.1",
|
|
27
|
+
"@sentry/webpack-plugin": "^5.3.0",
|
|
28
|
+
"@simplewebauthn/browser": "13.3.0",
|
|
29
|
+
"@svgr/webpack": "^8.1.0",
|
|
30
|
+
"@types/html-to-text": "^9.0.4",
|
|
31
|
+
"@types/jquery": "^3.5.34",
|
|
32
|
+
"@types/jquery.transit": "^0.9.33",
|
|
33
|
+
"@types/json-schema": "^7.0.15",
|
|
34
|
+
"@types/katex": "^0.16.8",
|
|
35
|
+
"@types/markdown-it": "^14.1.2",
|
|
36
|
+
"@types/nunjucks": "^3.2.6",
|
|
37
|
+
"@types/qrcode": "^1.5.6",
|
|
38
|
+
"@types/react": "^19.2.14",
|
|
39
|
+
"@types/react-dom": "^19.2.3",
|
|
40
|
+
"@types/redux-logger": "^3.0.13",
|
|
41
|
+
"@types/uuid": "^11.0.0",
|
|
42
|
+
"@types/webpack-env": "^1.18.8",
|
|
43
|
+
"@vavt/cm-extension": "^1.11.2",
|
|
44
|
+
"@vscode/codicons": "^0.0.45",
|
|
45
|
+
"ajv": "^8.20.0",
|
|
46
|
+
"allotment": "^1.20.5",
|
|
47
|
+
"autoprefixer": "^10.5.0",
|
|
48
|
+
"browser-update": "^3.3.63",
|
|
49
|
+
"chalk": "^5.6.2",
|
|
50
|
+
"classnames": "^2.5.1",
|
|
51
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
52
|
+
"clipboard": "^2.0.11",
|
|
53
|
+
"copy-webpack-plugin": "^14.0.0",
|
|
54
|
+
"cordis": "4.0.0-rc.4",
|
|
55
|
+
"core-js": "^3.49.0",
|
|
56
|
+
"core-js-compat": "^3.49.0",
|
|
57
|
+
"css-loader": "^7.1.4",
|
|
58
|
+
"diff": "^9.0.0",
|
|
59
|
+
"diff-dom": "^5.2.1",
|
|
60
|
+
"echarts": "^6.0.0",
|
|
61
|
+
"emojis-keywords": "2.0.0",
|
|
62
|
+
"emojis-list": "2.1.0",
|
|
63
|
+
"esbuild-loader": "^4.4.3",
|
|
64
|
+
"flatpickr": "^4.6.13",
|
|
65
|
+
"idb": "^8.0.3",
|
|
66
|
+
"jquery": "^3.7.1",
|
|
67
|
+
"jquery.easing": "^1.4.1",
|
|
68
|
+
"jquery.transit": "^0.9.12",
|
|
69
|
+
"mantine-contextmenu": "^9.2.1",
|
|
70
|
+
"matchmedia-polyfill": "^0.3.2",
|
|
71
|
+
"md-editor-rt": "^6.5.0",
|
|
72
|
+
"mini-css-extract-plugin": "^2.10.2",
|
|
73
|
+
"moment": "^2.30.1",
|
|
74
|
+
"monaco-editor": "0.52.2",
|
|
75
|
+
"monaco-editor-nls": "^3.1.0",
|
|
76
|
+
"monaco-editor-webpack-plugin": "^7.1.1",
|
|
77
|
+
"monaco-themes": "0.4.7",
|
|
78
|
+
"monaco-yaml": "5.4.1",
|
|
79
|
+
"nanoid": "^5.1.11",
|
|
80
|
+
"normalize.css": "^8.0.1",
|
|
81
|
+
"nprogress": "^0.2.0",
|
|
82
|
+
"p-queue": "^9.3.0",
|
|
83
|
+
"postcss-loader": "7.3.4",
|
|
84
|
+
"postcss-preset-mantine": "^1.18.0",
|
|
85
|
+
"prism-themes": "^1.9.0",
|
|
86
|
+
"prismjs": "^1.30.0",
|
|
87
|
+
"prop-types": "^15.8.1",
|
|
88
|
+
"qface": "^1.4.1",
|
|
89
|
+
"qrcode": "^1.5.4",
|
|
90
|
+
"react": "^19.2.6",
|
|
91
|
+
"react-colorful": "^5.7.0",
|
|
92
|
+
"react-dnd": "^16.0.1",
|
|
93
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
94
|
+
"react-dom": "^19.2.6",
|
|
95
|
+
"react-redux": "^9.3.0",
|
|
96
|
+
"reconnecting-websocket": "^4.4.0",
|
|
97
|
+
"redux": "^5.0.1",
|
|
98
|
+
"redux-logger": "^3.0.6",
|
|
99
|
+
"redux-promise-middleware": "^6.2.0",
|
|
100
|
+
"redux-thunk": "^3.1.0",
|
|
101
|
+
"rupture": "^0.7.1",
|
|
102
|
+
"sass": "^1.99.0",
|
|
103
|
+
"sass-loader": "^16.0.8",
|
|
104
|
+
"schemastery": "^3.18.0",
|
|
105
|
+
"shorty.js": "^1.0.1",
|
|
106
|
+
"sticky-kit": "^1.1.3",
|
|
107
|
+
"style-loader": "^4.0.0",
|
|
108
|
+
"stylus": "^0.64.0",
|
|
109
|
+
"stylus-loader": "7.1.2",
|
|
110
|
+
"svgtofont": "^6.5.2",
|
|
111
|
+
"tether": "1.4.7",
|
|
112
|
+
"tether-drop": "^1.4.2",
|
|
113
|
+
"timeago-react": "^3.0.7",
|
|
114
|
+
"timeago.js": "^4.0.2",
|
|
115
|
+
"ts-loader": "^9.5.7",
|
|
116
|
+
"web-streams-polyfill": "^4.3.0",
|
|
117
|
+
"webpack": "^5.106.2",
|
|
118
|
+
"webpack-bundle-analyzer": "^5.3.0",
|
|
119
|
+
"webpack-dev-server": "^5.2.4",
|
|
120
|
+
"webpack-manifest-plugin": "^6.0.1",
|
|
121
|
+
"webpackbar": "^7.0.0"
|
|
122
|
+
},
|
|
123
|
+
"dependencies": {
|
|
124
|
+
"@hydrooj/common": "workspace:^",
|
|
125
|
+
"ansi_up": "^6.0.6",
|
|
126
|
+
"cssfilter": "^0.0.11",
|
|
127
|
+
"esbuild": "0.25.2",
|
|
128
|
+
"fs-extra": "^11.3.5",
|
|
129
|
+
"html-to-text": "^10.0.0",
|
|
130
|
+
"js-yaml": "^4.1.1",
|
|
131
|
+
"jsesc": "^3.1.0",
|
|
132
|
+
"katex": "^0.16.47",
|
|
133
|
+
"lodash": "^4.18.1",
|
|
134
|
+
"markdown-it": "^14.1.1",
|
|
135
|
+
"markdown-it-anchor": "^9.2.0",
|
|
136
|
+
"markdown-it-attrs": "^4.3.1",
|
|
137
|
+
"markdown-it-footnote": "^4.0.0",
|
|
138
|
+
"markdown-it-imsize": "^2.0.1",
|
|
139
|
+
"markdown-it-mark": "^4.0.0",
|
|
140
|
+
"markdown-it-merge-cells": "^2.0.0",
|
|
141
|
+
"markdown-it-table-of-contents": "^1.2.0",
|
|
142
|
+
"nunjucks": "^3.2.4",
|
|
143
|
+
"schemastery-jsonschema": "^1.1.1",
|
|
144
|
+
"streamsaver": "^2.0.6",
|
|
145
|
+
"uuid": "^14.0.0",
|
|
146
|
+
"xss": "^1.0.15"
|
|
147
|
+
}
|
|
148
|
+
}
|
package/polyfill.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
import 'matchmedia-polyfill';
|
|
3
|
+
|
|
4
|
+
import browserUpdate from 'browser-update';
|
|
5
|
+
|
|
6
|
+
browserUpdate({
|
|
7
|
+
required: {
|
|
8
|
+
e: -10, f: -10, o: -3, s: -1, c: -10,
|
|
9
|
+
},
|
|
10
|
+
insecure: true,
|
|
11
|
+
api: 2022.03,
|
|
12
|
+
url: 'https://google.cn/chrome/',
|
|
13
|
+
jsshowurl: '/browser-update.js',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
// monaco-editor requires this polyfill
|
|
17
|
+
if (window.MediaQueryList && !MediaQueryList.prototype.addEventListener) {
|
|
18
|
+
MediaQueryList.prototype.addEventListener = (k, listener) => {
|
|
19
|
+
MediaQueryList.prototype.addListener(listener);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (typeof window['WeakRef'] === 'undefined') {
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
window.WeakRef = (function (wm) {
|
|
25
|
+
function WeakRef(target) {
|
|
26
|
+
wm.set(this, target);
|
|
27
|
+
}
|
|
28
|
+
WeakRef.prototype.deref = function () {
|
|
29
|
+
return wm.get(this);
|
|
30
|
+
};
|
|
31
|
+
return WeakRef;
|
|
32
|
+
}(new WeakMap()));
|
|
33
|
+
}
|
|
34
|
+
if (!window.matchMedia('all').addListener && !window.matchMedia('all').addEventListener) {
|
|
35
|
+
const localMatchMedia = window.matchMedia;
|
|
36
|
+
const hasMediaQueries = localMatchMedia('only all').matches;
|
|
37
|
+
let isListening = false;
|
|
38
|
+
let timeoutID;
|
|
39
|
+
const queries = [];
|
|
40
|
+
const handleChange = function () {
|
|
41
|
+
clearTimeout(timeoutID);
|
|
42
|
+
timeoutID = setTimeout(() => {
|
|
43
|
+
for (let i = 0, il = queries.length; i < il; i++) {
|
|
44
|
+
const { mql } = queries[i];
|
|
45
|
+
const listeners = queries[i].listeners || [];
|
|
46
|
+
const { matches } = localMatchMedia(mql.media);
|
|
47
|
+
if (matches !== mql.matches) {
|
|
48
|
+
mql.matches = matches;
|
|
49
|
+
for (let j = 0, jl = listeners.length; j < jl; j++) {
|
|
50
|
+
listeners[j].call(window, mql);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}, 30);
|
|
55
|
+
};
|
|
56
|
+
window.matchMedia = function (media) {
|
|
57
|
+
const mql = localMatchMedia(media);
|
|
58
|
+
const listeners = [];
|
|
59
|
+
let index = 0;
|
|
60
|
+
if (!mql.addListener) {
|
|
61
|
+
mql.addListener = function (listener) {
|
|
62
|
+
if (!hasMediaQueries) return;
|
|
63
|
+
if (!isListening) {
|
|
64
|
+
isListening = true;
|
|
65
|
+
window.addEventListener('resize', handleChange, true);
|
|
66
|
+
}
|
|
67
|
+
if (index === 0) {
|
|
68
|
+
index = queries.push({
|
|
69
|
+
mql,
|
|
70
|
+
listeners,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
listeners.push(listener);
|
|
74
|
+
};
|
|
75
|
+
mql.removeListener = function (listener) {
|
|
76
|
+
for (let i = 0, il = listeners.length; i < il; i++) {
|
|
77
|
+
if (listeners[i] === listener) {
|
|
78
|
+
listeners.splice(i, 1);
|
|
79
|
+
i--;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
if (!mql.addEventListener) {
|
|
85
|
+
mql.addEventListener = (k, listener) => mql.addListener(listener);
|
|
86
|
+
mql.removeEventListener = (k, listener) => mql.removeListener(listener);
|
|
87
|
+
}
|
|
88
|
+
return mql;
|
|
89
|
+
};
|
|
90
|
+
}
|