erudit 3.0.0-dev.23 → 3.0.0-dev.25
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/app/app.vue +25 -185
- package/app/assets/icons/array-check.svg +3 -0
- package/app/assets/icons/array-lines.svg +3 -0
- package/app/assets/icons/array-star.svg +3 -0
- package/app/assets/icons/arrow/from-circle.svg +3 -0
- package/app/assets/icons/arrow/left.svg +3 -0
- package/app/assets/icons/arrow/outward-box.svg +3 -0
- package/app/assets/icons/arrow/outward.svg +3 -0
- package/app/assets/icons/arrow/to-circle.svg +3 -0
- package/app/assets/icons/arrow/up-to-right.svg +3 -0
- package/app/assets/icons/aside-open.svg +2 -2
- package/app/assets/icons/asterisk.svg +2 -2
- package/app/assets/icons/bell.svg +3 -0
- package/app/assets/icons/book-outline.svg +3 -0
- package/app/assets/icons/book-question.svg +2 -2
- package/app/assets/icons/book.svg +2 -2
- package/app/assets/icons/box.svg +3 -0
- package/app/assets/icons/bug.svg +2 -2
- package/app/assets/icons/chevron-right.svg +3 -0
- package/app/assets/icons/cog.svg +3 -0
- package/app/assets/icons/construction.svg +2 -2
- package/app/assets/icons/diamond.svg +2 -2
- package/app/assets/icons/draw.svg +2 -2
- package/app/assets/icons/erudit.svg +3 -0
- package/app/assets/icons/file-lines.svg +2 -2
- package/app/assets/icons/files.svg +2 -4
- package/app/assets/icons/flame.svg +3 -0
- package/app/assets/icons/folder-open.svg +2 -2
- package/app/assets/icons/folder.svg +2 -2
- package/app/assets/icons/globe.svg +2 -2
- package/app/assets/icons/graduation.svg +2 -2
- package/app/assets/icons/handshake.svg +3 -0
- package/app/assets/icons/house.svg +2 -2
- package/app/assets/icons/lines.svg +3 -0
- package/app/assets/icons/moon.svg +2 -2
- package/app/assets/icons/plus-circle.svg +2 -2
- package/app/assets/icons/plus.svg +2 -2
- package/app/assets/icons/puzzle.svg +2 -2
- package/app/assets/icons/question-circle.svg +3 -0
- package/app/assets/icons/rocket.svg +3 -1
- package/app/assets/icons/search/check.svg +3 -0
- package/app/assets/icons/search/dead.svg +3 -0
- package/app/assets/icons/search/glass.svg +3 -0
- package/app/assets/icons/search/wtf.svg +3 -0
- package/app/assets/icons/sun-moon.svg +2 -2
- package/app/assets/icons/sun.svg +2 -2
- package/app/assets/icons/translate.svg +3 -0
- package/app/assets/icons/user.svg +2 -2
- package/app/assets/icons/users.svg +2 -2
- package/app/assets/icons/warning.svg +3 -0
- package/app/components/EruditLink.ts +9 -0
- package/app/components/FancyBold.vue +17 -0
- package/app/components/FancyCard.vue +58 -0
- package/app/components/FancyCardTag.vue +16 -0
- package/app/components/Prose.vue +51 -0
- package/app/components/ScrollHolder.vue +20 -0
- package/app/components/SmartMedia.vue +112 -0
- package/app/components/ads/Ads.vue +39 -33
- package/app/components/ads/AdsBannerAside.vue +46 -61
- package/app/components/ads/AdsBannerBottom.vue +17 -22
- package/app/components/ads/AdsReplacer.vue +28 -73
- package/app/components/ads/provider/Custom.vue +19 -0
- package/app/components/ads/{AdsProviderYandex.vue → provider/Yandex.vue} +84 -91
- package/app/components/aside/AsideListItem.vue +66 -91
- package/app/components/aside/AsideMajor.vue +8 -56
- package/app/components/aside/AsideMinor.vue +76 -97
- package/app/components/aside/AsideSwitch.vue +67 -0
- package/app/components/aside/major/PaneHolder.vue +106 -0
- package/app/components/aside/major/PaneSwitcher.vue +73 -0
- package/app/components/aside/major/PaneSwitcherButton.vue +38 -0
- package/app/components/aside/major/PaneTemplate.vue +5 -0
- package/app/components/aside/major/SiteInfo.vue +68 -85
- package/app/components/aside/major/contentNav/PaneBookNav.vue +116 -0
- package/app/components/aside/major/contentNav/PaneGlobalNav.vue +24 -0
- package/app/components/aside/major/contentNav/items/ContentNavBook.vue +21 -0
- package/app/components/aside/major/contentNav/items/ContentNavFolder.vue +92 -0
- package/app/components/aside/major/contentNav/items/ContentNavItem.vue +33 -0
- package/app/components/aside/major/contentNav/items/ContentNavPage.vue +18 -0
- package/app/components/aside/major/contentNav/items/ContentNavSeparator.vue +62 -0
- package/app/components/aside/major/contentNav/items/ContentNavTopic.vue +18 -0
- package/app/components/aside/major/contentNav/items/Flags.vue +52 -0
- package/app/components/aside/major/contentNav/items/ItemTemplate.vue +27 -0
- package/app/components/aside/major/languages/PaneLanguages.vue +55 -0
- package/app/components/aside/major/pages/PanePages.vue +60 -0
- package/app/components/aside/major/search/PaneSearch.vue +145 -0
- package/app/components/aside/major/search/SearchInput.vue +104 -0
- package/app/components/aside/major/search/SearchResult.vue +103 -0
- package/app/components/aside/major/search/SearchStatus.vue +48 -0
- package/app/components/aside/major/search/search.worker.ts +164 -0
- package/app/components/aside/major/settings/BuildTime.vue +25 -0
- package/app/components/aside/major/settings/EngineVersion.vue +13 -0
- package/app/components/aside/major/settings/PaneSettings.vue +17 -0
- package/app/components/aside/major/settings/ThemeSwitcher.vue +53 -0
- package/app/components/aside/major/settings/repository/Repository.vue +33 -0
- package/app/components/aside/major/settings/repository/SecondaryGitHub.vue +71 -0
- package/app/components/aside/minor/AsideMinorPane.vue +1 -11
- package/app/components/aside/minor/AsideMinorPlainHeader.vue +21 -0
- package/app/components/aside/minor/content/AsideMinorContentContributions.vue +53 -0
- package/app/components/aside/minor/content/AsideMinorContentPage.vue +37 -0
- package/app/components/aside/minor/content/AsideMinorContentTopic.vue +66 -0
- package/app/components/aside/minor/content/ButtonPaneContributions.vue +116 -0
- package/app/components/aside/minor/content/ButtonPaneImprove.vue +121 -0
- package/app/components/aside/minor/content/Contribution.vue +34 -0
- package/app/components/aside/minor/content/Toc.vue +165 -0
- package/app/components/aside/minor/content/TocItem.vue +77 -0
- package/app/components/aside/minor/content/TopicPartButton.vue +35 -0
- package/app/components/aside/minor/contributor/AsideMinorContributor.vue +31 -68
- package/app/components/aside/minor/contributor/ItemBook.vue +39 -0
- package/app/components/aside/minor/contributor/ItemContent.vue +17 -0
- package/app/components/aside/minor/news/AsideMinorNews.vue +135 -0
- package/app/components/aside/minor/news/NewsItem.vue +69 -0
- package/app/components/aside/minor/news/RenderNewsElement.vue +42 -0
- package/app/components/aside/minor/news/elements/Mix.vue +11 -0
- package/app/components/aside/minor/news/elements/P.vue +14 -0
- package/app/components/aside/minor/news/elements/Ref.vue +58 -0
- package/app/components/aside/minor/news/elements/Text.vue +18 -0
- package/app/components/indexPage/IndexPagePersons.vue +117 -0
- package/app/components/main/MainAction.vue +20 -0
- package/app/components/main/MainBreadcrumbs.vue +28 -0
- package/app/components/main/MainContentChild.vue +48 -0
- package/app/components/main/MainContentChildren.vue +14 -0
- package/app/components/main/MainDecoration.vue +15 -0
- package/app/components/main/MainDescription.vue +6 -23
- package/app/components/main/MainFlag.vue +133 -0
- package/app/components/main/MainFlags.vue +17 -0
- package/app/components/main/MainGlow.vue +12 -0
- package/app/components/main/MainQuickLink.vue +76 -0
- package/app/components/main/MainQuickLinks.vue +42 -0
- package/app/components/main/MainQuote.vue +160 -0
- package/app/components/main/MainQuoteLoader.vue +86 -0
- package/app/components/main/MainSection.vue +39 -42
- package/app/components/main/MainSectionPreamble.vue +5 -0
- package/app/components/main/MainSubTitle.vue +12 -0
- package/app/components/main/MainTitle.vue +26 -69
- package/app/components/main/MainTopicPartPage.vue +88 -0
- package/app/components/main/MainTopicPartSwitch.vue +71 -0
- package/app/components/main/connections/Deps.vue +34 -0
- package/app/components/main/connections/Externals.vue +46 -0
- package/app/components/main/connections/MainConnections.vue +41 -0
- package/app/components/main/connections/MainConnectionsButton.vue +80 -0
- package/app/components/main/connections/ScrollPane.vue +11 -0
- package/app/components/main/contentStats/Item.vue +35 -0
- package/app/components/main/contentStats/ItemElement.vue +19 -0
- package/app/components/main/contentStats/ItemMaterials.vue +11 -0
- package/app/components/main/contentStats/MainContentStats.vue +50 -0
- package/app/components/preview/Preview.vue +173 -186
- package/app/components/preview/PreviewError.vue +10 -0
- package/app/components/preview/PreviewLoading.vue +5 -14
- package/app/components/preview/PreviewScreen.vue +65 -141
- package/app/components/preview/PreviewScreenButton.vue +39 -0
- package/app/components/preview/screen/ContentPage.vue +50 -0
- package/app/components/preview/screen/DirectLink.vue +23 -0
- package/app/components/preview/screen/Unique.vue +54 -0
- package/app/components/site/SiteAside.vue +70 -0
- package/app/components/site/SiteAsideOverlay.vue +21 -0
- package/app/components/site/SiteMain.vue +16 -0
- package/app/components/transition/Fade.vue +30 -19
- package/app/components/transition/Slide.vue +47 -0
- package/app/components/tree/TreeContainer.vue +5 -11
- package/app/components/tree/TreeItem.vue +40 -93
- package/app/composables/ads.ts +17 -0
- package/app/composables/analytics.ts +102 -0
- package/app/composables/appElements.ts +40 -0
- package/app/composables/aside.ts +28 -0
- package/app/composables/asideMajorPane.ts +135 -0
- package/app/composables/asideMinor.ts +109 -0
- package/app/composables/contentNav.ts +7 -0
- package/app/composables/favicon.ts +104 -4
- package/app/composables/file.ts +3 -0
- package/app/composables/formatText.ts +78 -81
- package/app/composables/loading.ts +2 -0
- package/app/composables/mainContent.ts +31 -0
- package/app/composables/og.ts +169 -0
- package/app/composables/phrases.ts +126 -77
- package/app/composables/preview.ts +53 -0
- package/app/composables/route.ts +4 -0
- package/app/composables/theme.ts +71 -50
- package/app/composables/url.ts +22 -43
- package/app/formatters/ru.ts +14 -0
- package/app/pages/article/[...articleId].vue +10 -1
- package/app/pages/book/[...bookId].vue +50 -11
- package/app/pages/contributor/[contributorId].vue +127 -203
- package/app/pages/contributors.vue +80 -164
- package/app/pages/group/[...groupId].vue +52 -11
- package/app/pages/index.vue +101 -186
- package/app/pages/page/[...pageId].vue +60 -0
- package/app/pages/practice/[...practiceId].vue +12 -0
- package/app/pages/sponsors.vue +66 -76
- package/app/pages/summary/[...summaryId].vue +10 -1
- package/app/plugins/appSetup/client/htmlBranding.ts +6 -0
- package/app/plugins/appSetup/client/welcome.ts +35 -0
- package/app/plugins/appSetup/config.ts +6 -0
- package/app/plugins/appSetup/global.ts +3 -0
- package/app/plugins/appSetup/index.ts +28 -0
- package/app/plugins/prerender.server.ts +16 -11
- package/app/router.options.ts +5 -0
- package/app/scripts/theme.js +33 -0
- package/app/styles/main.css +173 -0
- package/bin/erudit.mjs +2 -2
- package/modules/erudit/globals/content.ts +4 -0
- package/modules/erudit/globals/contributor.ts +1 -0
- package/modules/erudit/globals/eruditConfig.ts +10 -0
- package/modules/erudit/globals/problem.ts +1 -0
- package/modules/erudit/globals/prose.ts +1 -0
- package/modules/erudit/globals/public.ts +18 -0
- package/modules/erudit/index.ts +60 -0
- package/{module → modules/erudit}/logger.ts +2 -2
- package/modules/erudit/setup/aliases.ts +17 -0
- package/modules/erudit/setup/baseUrl.ts +19 -0
- package/modules/erudit/setup/elements/appTemplate.ts +45 -0
- package/modules/erudit/setup/elements/globalTemplate.ts +82 -0
- package/modules/erudit/setup/elements/globalTypes.ts +273 -0
- package/modules/erudit/setup/elements/setup.ts +167 -0
- package/modules/erudit/setup/elements/shared.ts +10 -0
- package/modules/erudit/setup/elements/tagsTable.ts +28 -0
- package/modules/erudit/setup/fullRestart.ts +71 -0
- package/modules/erudit/setup/globals.ts +196 -0
- package/modules/erudit/setup/nuxtConfig.ts +48 -0
- package/modules/erudit/setup/projectConfig.ts +114 -0
- package/modules/erudit/setup/publicAssets.ts +52 -0
- package/modules/erudit/setup/runtimeConfig.ts +58 -0
- package/modules/erudit/watcher.ts +27 -0
- package/nuxt.config.ts +66 -102
- package/package.json +36 -18
- package/proxy/prose.app.ts +1 -0
- package/proxy/prose.ts +1 -0
- package/public/favicons/default.svg +1 -0
- package/{app/public → public}/logotype.svg +1 -1
- package/public/og.png +0 -0
- package/server/api/aside/major/frontNav/book/[...shortId].ts +10 -0
- package/server/api/aside/major/frontNav/global.ts +5 -0
- package/server/api/aside/major/pages.ts +6 -0
- package/server/api/contributor/list.ts +36 -35
- package/server/api/contributor/page/[contributorId].ts +58 -4
- package/server/api/indexPage.ts +81 -0
- package/server/api/language/functions.ts +6 -7
- package/server/api/language/phrase/[phraseKey].ts +32 -0
- package/server/api/main/content/[...contentTypePath].ts +153 -0
- package/server/api/news/batch/[batchIndex].ts +5 -0
- package/server/api/pageSponsors.ts +56 -0
- package/server/api/prerender/content.ts +82 -0
- package/server/api/prerender/files.ts +10 -0
- package/server/api/prerender/frontNav.ts +13 -0
- package/server/api/prerender/language.ts +3 -5
- package/server/api/prerender/news.ts +8 -0
- package/server/api/prerender/quotes.ts +15 -0
- package/server/api/preview/contentPage/[...contentTypePath].ts +63 -0
- package/server/api/preview/contentUnique/[...contentTypePathUnique].ts +81 -0
- package/server/api/problemScript/[...problemScriptPath].ts +92 -0
- package/server/api/quote/data/[quoteId].ts +87 -0
- package/server/api/quote/ids.ts +3 -0
- package/server/erudit/build.ts +135 -0
- package/server/erudit/cameos/build.ts +111 -0
- package/server/erudit/config.ts +11 -0
- package/server/erudit/content/global/build.ts +271 -0
- package/server/erudit/content/global/singleton.ts +5 -0
- package/server/erudit/content/nav/build.ts +431 -0
- package/server/erudit/content/nav/front.ts +130 -0
- package/server/erudit/content/nav/repository/books.ts +40 -0
- package/server/erudit/content/nav/repository/get.ts +33 -0
- package/server/erudit/content/nav/repository/hasChildren.ts +5 -0
- package/server/erudit/content/nav/repository/hasNav.ts +3 -0
- package/server/erudit/content/nav/repository/hasParent.ts +5 -0
- package/server/erudit/content/nav/repository/id.ts +9 -0
- package/server/erudit/content/nav/repository/index.ts +9 -0
- package/server/erudit/content/nav/repository/order.ts +14 -0
- package/server/erudit/content/nav/repository/previousNext.ts +35 -0
- package/server/erudit/content/nav/repository/walk.ts +127 -0
- package/server/erudit/content/nav/setup.ts +13 -0
- package/server/erudit/content/nav/types.ts +24 -0
- package/server/erudit/content/repository/breadcrumbs.ts +24 -0
- package/server/erudit/content/repository/children.ts +47 -0
- package/server/erudit/content/repository/connections.ts +35 -0
- package/server/erudit/content/repository/contentLink.ts +16 -0
- package/server/erudit/content/repository/decoration.ts +23 -0
- package/server/erudit/content/repository/deps.ts +84 -0
- package/server/erudit/content/repository/description.ts +11 -0
- package/server/erudit/content/repository/elementSnippets.ts +64 -0
- package/server/erudit/content/repository/externals.ts +25 -0
- package/server/erudit/content/repository/flags.ts +33 -0
- package/server/erudit/content/repository/seo.ts +12 -0
- package/server/erudit/content/repository/stats.ts +97 -0
- package/server/erudit/content/repository/title.ts +27 -0
- package/server/erudit/content/repository/topicParts.ts +39 -0
- package/server/erudit/content/repository/unique.ts +76 -0
- package/server/erudit/content/resolve/book.ts +32 -0
- package/server/erudit/content/resolve/group.ts +39 -0
- package/server/erudit/content/resolve/index.ts +139 -0
- package/server/erudit/content/resolve/page.ts +87 -0
- package/server/erudit/content/resolve/topic.ts +113 -0
- package/server/erudit/content/resolve/utils/contentError.ts +10 -0
- package/server/erudit/content/resolve/utils/insertContentItem.ts +122 -0
- package/server/erudit/content/resolve/utils/insertContentResolved.ts +93 -0
- package/server/erudit/content/search.ts +135 -0
- package/server/erudit/contributors/build.ts +111 -0
- package/server/erudit/contributors/global.ts +3 -0
- package/server/erudit/contributors/repository/avatarUrl.ts +10 -0
- package/server/erudit/contributors/repository/contributions.ts +178 -0
- package/server/erudit/contributors/repository/count.ts +3 -0
- package/server/erudit/contributors/search.ts +34 -0
- package/server/erudit/db/repository/pushFile.ts +23 -0
- package/server/erudit/db/repository/pushProblemScript.ts +19 -0
- package/server/erudit/db/repository/pushProseLink.ts +40 -0
- package/server/erudit/db/schema/cameos.ts +7 -0
- package/server/erudit/db/schema/content.ts +18 -0
- package/server/erudit/db/schema/contentContributions.ts +15 -0
- package/server/erudit/db/schema/contentDeps.ts +21 -0
- package/server/erudit/db/schema/contentElementStats.ts +20 -0
- package/server/erudit/db/schema/contentProseLinks.ts +23 -0
- package/server/erudit/db/schema/contentSnippets.ts +32 -0
- package/server/erudit/db/schema/contentToc.ts +16 -0
- package/server/erudit/db/schema/contentUniques.ts +25 -0
- package/server/erudit/db/schema/contributors.ts +12 -0
- package/server/erudit/db/schema/files.ts +11 -0
- package/server/erudit/db/schema/groups.ts +6 -0
- package/server/erudit/db/schema/index.ts +17 -0
- package/server/erudit/db/schema/news.ts +7 -0
- package/server/erudit/db/schema/pages.ts +7 -0
- package/server/erudit/db/schema/problemScripts.ts +14 -0
- package/server/erudit/db/schema/sponsors.ts +9 -0
- package/server/erudit/db/schema/topics.ts +9 -0
- package/server/erudit/db/setup.ts +62 -0
- package/server/erudit/db/types.ts +10 -0
- package/server/erudit/global.ts +33 -0
- package/server/erudit/importer.ts +97 -0
- package/server/erudit/index.ts +90 -0
- package/server/erudit/language/list/en.ts +209 -0
- package/server/erudit/language/list/ru.ts +214 -0
- package/server/erudit/language/list.ts +6 -0
- package/server/erudit/language/setup.ts +36 -0
- package/server/erudit/language/types.ts +16 -0
- package/server/erudit/logger.ts +77 -0
- package/server/erudit/news/build.ts +77 -0
- package/server/erudit/news/repository/batch.ts +61 -0
- package/server/erudit/prose/repository/finalize.ts +68 -0
- package/server/erudit/prose/repository/get.ts +54 -0
- package/server/erudit/prose/repository/resolve.ts +17 -0
- package/server/erudit/prose/storage/callout.ts +14 -0
- package/server/erudit/prose/storage/image.ts +20 -0
- package/server/erudit/prose/storage/link.ts +226 -0
- package/server/erudit/prose/storage/problemScript.ts +21 -0
- package/server/erudit/prose/storage/video.ts +14 -0
- package/server/erudit/prose/transform/bundleProblemScript.ts +6 -0
- package/server/erudit/prose/transform/extensions.ts +15 -0
- package/server/erudit/quote/repository/ids.ts +31 -0
- package/server/erudit/repository.ts +96 -0
- package/server/erudit/sponsors/build.ts +114 -0
- package/server/erudit/sponsors/repository/avatarUrl.ts +10 -0
- package/server/erudit/sponsors/repository/count.ts +4 -0
- package/server/erudit/staticFile.ts +28 -0
- package/server/plugins/augmentCss.ts +17 -0
- package/server/plugins/lang.ts +7 -0
- package/server/plugins/metaViewport.ts +15 -0
- package/server/plugins/theme.ts +13 -0
- package/server/routes/file/[...path].ts +18 -0
- package/server/routes/robots.txt.ts +1 -1
- package/server/routes/search.json.gz.ts +72 -0
- package/server/routes/sitemap.xml.ts +61 -90
- package/shared/search/encoders.ts +20 -0
- package/shared/types/asideMajorPages.ts +4 -0
- package/shared/types/breadcrumbs.ts +9 -0
- package/shared/types/contentChildren.ts +10 -0
- package/shared/types/contentConnections.ts +27 -0
- package/shared/types/contentStats.ts +6 -0
- package/shared/types/elementSnippet.ts +8 -0
- package/shared/types/frontContentNav.ts +38 -0
- package/shared/types/indexPage.ts +20 -0
- package/shared/types/language.ts +189 -89
- package/shared/types/mainContent.ts +69 -0
- package/shared/types/news.ts +13 -0
- package/shared/types/preview.ts +28 -0
- package/shared/types/runtimeConfig.ts +64 -0
- package/shared/types/search.ts +79 -0
- package/shared/utils/contentTypePath.ts +63 -0
- package/shared/utils/icons.ts +11 -0
- package/shared/utils/pages.ts +24 -0
- package/shared/utils/slasher.ts +64 -0
- package/shared/utils/stringColor.ts +13 -9
- package/shared/utils/toStringEqual.ts +21 -0
- package/shared/utils/zip.ts +64 -0
- package/test/shared/utils/slasher.test.ts +75 -0
- package/test/shared/utils/zip.test.ts +8 -0
- package/tsconfig.json +17 -8
- package/app/assets/icons/alert.svg +0 -3
- package/app/assets/icons/angle-right.svg +0 -3
- package/app/assets/icons/arrow-in-text.svg +0 -3
- package/app/assets/icons/arrow-left.svg +0 -3
- package/app/assets/icons/arrow-up-to-right.svg +0 -3
- package/app/assets/icons/cameo-add.svg +0 -3
- package/app/assets/icons/chip.svg +0 -3
- package/app/assets/icons/circle-help.svg +0 -3
- package/app/assets/icons/cross.svg +0 -3
- package/app/assets/icons/ellipsis-vertical.svg +0 -3
- package/app/assets/icons/file-check.svg +0 -3
- package/app/assets/icons/file-star.svg +0 -3
- package/app/assets/icons/link-external.svg +0 -3
- package/app/assets/icons/link.svg +0 -3
- package/app/assets/icons/list-squared.svg +0 -3
- package/app/assets/icons/outline/book.svg +0 -3
- package/app/assets/icons/outline/file-lines.svg +0 -3
- package/app/assets/icons/pirate.svg +0 -3
- package/app/assets/icons/search.svg +0 -3
- package/app/assets/icons/shuffle.svg +0 -3
- package/app/assets/icons/star.svg +0 -3
- package/app/components/Avatar.vue +0 -118
- package/app/components/EruditLink.vue +0 -17
- package/app/components/GroupLikePage.vue +0 -70
- package/app/components/Loading.vue +0 -23
- package/app/components/QuickLinks.vue +0 -99
- package/app/components/SiteAside.vue +0 -393
- package/app/components/SiteMain.vue +0 -32
- package/app/components/ads/AdsProviderCustom.vue +0 -35
- package/app/components/aside/major/PaneContentScroll.vue +0 -23
- package/app/components/aside/major/PaneSwitch.vue +0 -54
- package/app/components/aside/major/PaneSwitchButton.vue +0 -63
- package/app/components/aside/major/panes/Language.vue +0 -79
- package/app/components/aside/major/panes/Pages.vue +0 -50
- package/app/components/aside/major/panes/Search.vue +0 -11
- package/app/components/aside/major/panes/nav/Nav.vue +0 -92
- package/app/components/aside/major/panes/nav/NavBook.vue +0 -95
- package/app/components/aside/major/panes/nav/NavBookLoading.vue +0 -24
- package/app/components/aside/major/panes/nav/NavGlobal.vue +0 -16
- package/app/components/aside/major/panes/nav/fnav/FNav.vue +0 -105
- package/app/components/aside/major/panes/nav/fnav/FNavBook.vue +0 -32
- package/app/components/aside/major/panes/nav/fnav/FNavFlags.vue +0 -40
- package/app/components/aside/major/panes/nav/fnav/FNavFolder.vue +0 -60
- package/app/components/aside/major/panes/nav/fnav/FNavItem.vue +0 -34
- package/app/components/aside/major/panes/nav/fnav/FNavSeparator.vue +0 -80
- package/app/components/aside/major/panes/nav/fnav/FNavTopic.vue +0 -24
- package/app/components/aside/major/panes/other/ItemContent.vue +0 -29
- package/app/components/aside/major/panes/other/ItemGenerator.vue +0 -13
- package/app/components/aside/major/panes/other/ItemTheme.vue +0 -49
- package/app/components/aside/major/panes/other/Other.vue +0 -16
- package/app/components/aside/minor/AsideMinorContribute.vue +0 -175
- package/app/components/aside/minor/AsideMinorNews.vue +0 -11
- package/app/components/aside/minor/AsideMinorTopLink.vue +0 -66
- package/app/components/aside/minor/content/AsideMinorContent.vue +0 -89
- package/app/components/aside/minor/contributor/BookContribution.vue +0 -64
- package/app/components/aside/minor/topic/AsideMinorTopic.vue +0 -31
- package/app/components/aside/minor/topic/TopicContributors.vue +0 -183
- package/app/components/aside/minor/topic/TopicNav.vue +0 -49
- package/app/components/aside/minor/topic/TopicToc.vue +0 -212
- package/app/components/aside/minor/topic/TopicTocItem.vue +0 -19
- package/app/components/aside/utils/AsideOverlayPane.vue +0 -40
- package/app/components/bitran/BitranContent.vue +0 -90
- package/app/components/bitran/RenderWrapper.vue +0 -10
- package/app/components/contributor/ContributorListItem.vue +0 -43
- package/app/components/index/IndexAvatars.vue +0 -143
- package/app/components/main/MainActionButton.vue +0 -53
- package/app/components/main/MainBitranContent.vue +0 -68
- package/app/components/main/MainBreadcrumb.vue +0 -63
- package/app/components/main/MainSectionTitle.vue +0 -50
- package/app/components/main/MainSourceUsages.vue +0 -119
- package/app/components/main/MainSourcesUsage.vue +0 -60
- package/app/components/main/MainToc.vue +0 -135
- package/app/components/main/cameo/MainCameo.vue +0 -135
- package/app/components/main/cameo/MainCameoData.vue +0 -232
- package/app/components/main/content/ContentBreadcrumb.vue +0 -28
- package/app/components/main/content/ContentDecoration.vue +0 -29
- package/app/components/main/content/ContentPopover.vue +0 -188
- package/app/components/main/content/ContentPopovers.vue +0 -118
- package/app/components/main/content/ContentReferences.vue +0 -44
- package/app/components/main/content/reference/ReferenceGroup.vue +0 -39
- package/app/components/main/content/reference/ReferenceItem.vue +0 -70
- package/app/components/main/content/reference/ReferenceSource.vue +0 -121
- package/app/components/main/topic/MainTopic.vue +0 -73
- package/app/components/main/topic/MainTopicQuickLinks.vue +0 -24
- package/app/components/main/topic/TopicPartSwitch.vue +0 -119
- package/app/components/preview/PreviewDisplay.vue +0 -139
- package/app/components/preview/PreviewFooterAction.vue +0 -73
- package/app/components/preview/display/Alert.vue +0 -50
- package/app/components/preview/display/Custom.vue +0 -18
- package/app/components/preview/display/GenericLink.vue +0 -48
- package/app/components/preview/display/PageLink.vue +0 -22
- package/app/components/preview/display/Unique.vue +0 -46
- package/app/components/sponsor/SponsorTier1.vue +0 -89
- package/app/components/sponsor/SponsorTier2.vue +0 -109
- package/app/components/stats/Stats.vue +0 -21
- package/app/components/stats/StatsGroupLike.vue +0 -24
- package/app/components/stats/StatsItem.vue +0 -33
- package/app/components/stats/StatsItemElement.vue +0 -13
- package/app/composables/adsAllowed.ts +0 -11
- package/app/composables/asset.ts +0 -12
- package/app/composables/bitran.ts +0 -108
- package/app/composables/bitranLocation.ts +0 -6
- package/app/composables/contentData.ts +0 -38
- package/app/composables/contentPage.ts +0 -169
- package/app/composables/contentRoute.ts +0 -45
- package/app/composables/darkMagic.ts +0 -24
- package/app/composables/externalApi.ts +0 -69
- package/app/composables/head.ts +0 -24
- package/app/composables/majorPane.ts +0 -62
- package/app/pages/_test/preview.vue +0 -110
- package/app/pages/practice/[...practice].vue +0 -3
- package/app/plugins/analytics.ts +0 -95
- package/app/public/favicon/article.svg +0 -10
- package/app/public/favicon/default.svg +0 -10
- package/app/public/favicon/practice.svg +0 -10
- package/app/public/favicon/summary.svg +0 -10
- package/app/public/og-default.png +0 -0
- package/app/scripts/_immediate.js +0 -9
- package/app/scripts/aside/index.ts +0 -59
- package/app/scripts/aside/major/nav.ts +0 -26
- package/app/scripts/aside/minor/state.ts +0 -37
- package/app/scripts/flag.ts +0 -28
- package/app/scripts/og.ts +0 -28
- package/app/scripts/preview/build.ts +0 -76
- package/app/scripts/preview/data/alert.ts +0 -19
- package/app/scripts/preview/data/custom.ts +0 -8
- package/app/scripts/preview/data/genericLink.ts +0 -24
- package/app/scripts/preview/data/pageLink.ts +0 -24
- package/app/scripts/preview/data/unique.ts +0 -69
- package/app/scripts/preview/data.ts +0 -24
- package/app/scripts/preview/display.ts +0 -37
- package/app/scripts/preview/footer.ts +0 -9
- package/app/scripts/preview/request.ts +0 -51
- package/app/scripts/preview/state.ts +0 -63
- package/app/styles/_immediate.css +0 -7
- package/app/styles/_util.scss +0 -43
- package/app/styles/_utils.scss +0 -44
- package/app/styles/app.scss +0 -91
- package/app/styles/def/_bp.scss +0 -27
- package/app/styles/def/_size.scss +0 -7
- package/app/styles/def/_z.scss +0 -5
- package/app/styles/normalize.scss +0 -49
- package/app/styles/partials/_darkMagic.scss +0 -5
- package/app/styles/partials/_fnav.scss +0 -15
- package/app/styles/partials/_preview.scss +0 -5
- package/const.ts +0 -3
- package/globalPath.ts +0 -21
- package/globals/bitran.ts +0 -1
- package/globals/cameo.ts +0 -5
- package/globals/content.ts +0 -27
- package/globals/contributor.ts +0 -5
- package/globals/erudit.ts +0 -5
- package/globals/register.ts +0 -23
- package/globals/sponsor.ts +0 -17
- package/languages/en.ts +0 -114
- package/languages/ru.ts +0 -119
- package/module/bitran.ts +0 -66
- package/module/config.ts +0 -35
- package/module/imports.ts +0 -74
- package/module/index.ts +0 -47
- package/module/paths.ts +0 -22
- package/module/restart.ts +0 -61
- package/server/api/aside/major/nav/bookIds.ts +0 -5
- package/server/api/aside/major/nav/bookNav/[...bookId].ts +0 -17
- package/server/api/aside/major/nav/global.ts +0 -7
- package/server/api/aside/minor/book/[...bookId].ts +0 -18
- package/server/api/aside/minor/contributor/[contributorId].ts +0 -18
- package/server/api/aside/minor/group/[...groupId].ts +0 -18
- package/server/api/aside/minor/news.ts +0 -7
- package/server/api/aside/minor/topic.ts +0 -36
- package/server/api/bitran/content/[...location].ts +0 -13
- package/server/api/bitran/toc/[...location].ts +0 -9
- package/server/api/cameo/data/[cameoId].ts +0 -42
- package/server/api/cameo/ids.ts +0 -5
- package/server/api/content/data.ts +0 -97
- package/server/api/contributor/count.ts +0 -6
- package/server/api/fake/content.ts +0 -11
- package/server/api/fake/shared/languages.ts +0 -12
- package/server/api/index/data.ts +0 -46
- package/server/api/language/phrase/[phraseId].ts +0 -19
- package/server/api/language/phraseIds.ts +0 -8
- package/server/api/prerender/assets/cameo.ts +0 -14
- package/server/api/prerender/assets/contributor.ts +0 -12
- package/server/api/prerender/assets/sponsor.ts +0 -13
- package/server/api/prerender/cameos.ts +0 -12
- package/server/api/preview/page/[...parts].ts +0 -78
- package/server/api/preview/unique/[...location].ts +0 -48
- package/server/api/problem/generator/[...path].ts +0 -26
- package/server/api/sponsor/cameo/data/[sponsorId].ts +0 -51
- package/server/api/sponsor/cameo/ids.ts +0 -5
- package/server/api/sponsor/count.ts +0 -5
- package/server/api/sponsor/list.ts +0 -36
- package/server/plugin/bitran/content.ts +0 -238
- package/server/plugin/bitran/elements/include.ts +0 -229
- package/server/plugin/bitran/location.ts +0 -40
- package/server/plugin/bitran/toc.ts +0 -94
- package/server/plugin/bitran/transpiler.ts +0 -18
- package/server/plugin/build/close.ts +0 -12
- package/server/plugin/build/jobs/content/builderArgs.ts +0 -8
- package/server/plugin/build/jobs/content/generic.ts +0 -191
- package/server/plugin/build/jobs/content/parse.ts +0 -207
- package/server/plugin/build/jobs/content/path.ts +0 -6
- package/server/plugin/build/jobs/content/type/book.ts +0 -9
- package/server/plugin/build/jobs/content/type/group.ts +0 -16
- package/server/plugin/build/jobs/content/type/topic.ts +0 -36
- package/server/plugin/build/jobs/contributors.ts +0 -69
- package/server/plugin/build/jobs/language.ts +0 -36
- package/server/plugin/build/jobs/nav.ts +0 -345
- package/server/plugin/build/process.ts +0 -34
- package/server/plugin/build/rebuild.ts +0 -68
- package/server/plugin/build/setup.ts +0 -19
- package/server/plugin/content/context.ts +0 -116
- package/server/plugin/db/entities/Book.ts +0 -7
- package/server/plugin/db/entities/Content.ts +0 -45
- package/server/plugin/db/entities/Contribution.ts +0 -10
- package/server/plugin/db/entities/Contributor.ts +0 -25
- package/server/plugin/db/entities/File.ts +0 -10
- package/server/plugin/db/entities/Group.ts +0 -11
- package/server/plugin/db/entities/Hash.ts +0 -15
- package/server/plugin/db/entities/QuickLink.ts +0 -19
- package/server/plugin/db/entities/Stat.ts +0 -13
- package/server/plugin/db/entities/Topic.ts +0 -20
- package/server/plugin/db/entities/Unique.ts +0 -21
- package/server/plugin/db/reset.ts +0 -12
- package/server/plugin/db/setup.ts +0 -53
- package/server/plugin/global.ts +0 -18
- package/server/plugin/importer.ts +0 -16
- package/server/plugin/index.ts +0 -9
- package/server/plugin/logger.ts +0 -23
- package/server/plugin/nav/node.ts +0 -27
- package/server/plugin/nav/utils.ts +0 -179
- package/server/plugin/repository/asideMinor.ts +0 -51
- package/server/plugin/repository/book.ts +0 -39
- package/server/plugin/repository/cameo.ts +0 -16
- package/server/plugin/repository/content.ts +0 -240
- package/server/plugin/repository/contentId.ts +0 -40
- package/server/plugin/repository/contentToc.ts +0 -90
- package/server/plugin/repository/contributor.ts +0 -129
- package/server/plugin/repository/elementStats.ts +0 -80
- package/server/plugin/repository/file.ts +0 -10
- package/server/plugin/repository/frontNav.ts +0 -145
- package/server/plugin/repository/link.ts +0 -20
- package/server/plugin/repository/quickLink.ts +0 -36
- package/server/plugin/repository/readLink.ts +0 -17
- package/server/plugin/repository/reference.ts +0 -78
- package/server/plugin/repository/topic.ts +0 -35
- package/server/plugin/repository/topicCount.ts +0 -19
- package/server/plugin/sponsor/build.ts +0 -82
- package/server/plugin/sponsor/index.ts +0 -5
- package/server/plugin/sponsor/repository.ts +0 -56
- package/server/routes/asset/[...assetPath].ts +0 -34
- package/server/tsconfig.json +0 -9
- package/shared/aside/minor.ts +0 -55
- package/shared/asset.ts +0 -17
- package/shared/bitran/content.ts +0 -9
- package/shared/bitran/contentId.ts +0 -56
- package/shared/bitran/toc.ts +0 -8
- package/shared/breadcrumb.ts +0 -7
- package/shared/content/bookId.ts +0 -12
- package/shared/content/context.ts +0 -9
- package/shared/content/data/base.ts +0 -32
- package/shared/content/data/groupLike.ts +0 -11
- package/shared/content/data/index.ts +0 -5
- package/shared/content/data/type/book.ts +0 -7
- package/shared/content/data/type/group.ts +0 -8
- package/shared/content/data/type/topic.ts +0 -13
- package/shared/content/previousNext.ts +0 -9
- package/shared/content/reference.ts +0 -18
- package/shared/content/toc.ts +0 -35
- package/shared/contributor.ts +0 -34
- package/shared/frontNav.ts +0 -41
- package/shared/icons.ts +0 -38
- package/shared/image.ts +0 -5
- package/shared/indexData.ts +0 -10
- package/shared/link.ts +0 -29
- package/shared/popover.ts +0 -8
- package/shared/quickLink.ts +0 -7
- package/shared/stat.ts +0 -23
- package/shared/utils/objectsEqual.ts +0 -4
- package/test/contentId.test.ts +0 -91
- package/test/utils/url.test.ts +0 -99
- package/utils/contentPath.ts +0 -67
- package/utils/ext.ts +0 -41
- package/utils/normalize.ts +0 -7
- package/utils/stress.ts +0 -9
- package/utils/url.ts +0 -23
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { LinkData } from '@erudit/shared/bitran/link/shared';
|
|
2
|
-
import type { LinkTarget } from '@erudit/shared/bitran/link/target';
|
|
3
|
-
|
|
4
|
-
import type { PreviewData } from './data';
|
|
5
|
-
|
|
6
|
-
export enum PreviewRequestType {
|
|
7
|
-
Link = 'link',
|
|
8
|
-
Data = 'data',
|
|
9
|
-
MissingElement = 'missing-element',
|
|
10
|
-
HashMismatch = 'hash-mismatch',
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface PreviewRequestData extends PreviewRequestBase {
|
|
14
|
-
type: PreviewRequestType.Data;
|
|
15
|
-
data: PreviewData;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface PreviewRequestLink extends PreviewRequestBase {
|
|
19
|
-
type: PreviewRequestType.Link;
|
|
20
|
-
linkData: LinkData;
|
|
21
|
-
linkTarget: LinkTarget;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface PreviewRequestMissingElement extends PreviewRequestBase {
|
|
25
|
-
type: PreviewRequestType.MissingElement;
|
|
26
|
-
elementId: string;
|
|
27
|
-
hashMismatch?: {
|
|
28
|
-
current: string;
|
|
29
|
-
expected: string;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface PreviewRequestHashMismatch extends PreviewRequestBase {
|
|
34
|
-
type: PreviewRequestType.HashMismatch;
|
|
35
|
-
currentHash: string;
|
|
36
|
-
expectedHash: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type PreviewRequest =
|
|
40
|
-
| PreviewRequestData
|
|
41
|
-
| PreviewRequestLink
|
|
42
|
-
| PreviewRequestMissingElement
|
|
43
|
-
| PreviewRequestHashMismatch;
|
|
44
|
-
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
|
|
49
|
-
interface PreviewRequestBase {
|
|
50
|
-
type: `${PreviewRequestType}`;
|
|
51
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { objectsEqual } from '@shared/utils/objectsEqual';
|
|
2
|
-
import { PreviewRequestType, type PreviewRequest } from './request';
|
|
3
|
-
|
|
4
|
-
export enum PreviewThemeName {
|
|
5
|
-
Error = 'error',
|
|
6
|
-
Warn = 'warn',
|
|
7
|
-
Success = 'success',
|
|
8
|
-
Brand = 'brand',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
const _request = ref<PreviewRequest>();
|
|
14
|
-
const _visible = ref(false);
|
|
15
|
-
const _history = ref<PreviewRequest[]>([]);
|
|
16
|
-
const _theme = ref<PreviewThemeName>();
|
|
17
|
-
const _blinki = ref(0);
|
|
18
|
-
|
|
19
|
-
//
|
|
20
|
-
|
|
21
|
-
export const previewRequest = readonly(_request);
|
|
22
|
-
export const previewVisible = readonly(_visible);
|
|
23
|
-
export const previewTheme = readonly(_theme);
|
|
24
|
-
export const previewBlinkTrigger = readonly(_blinki);
|
|
25
|
-
|
|
26
|
-
export const hasPreviewHistory = computed(() => _history.value.length > 0);
|
|
27
|
-
|
|
28
|
-
export function showPreviousPreview() {
|
|
29
|
-
if (!hasPreviewHistory.value) return;
|
|
30
|
-
|
|
31
|
-
_request.value = _history.value.pop();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function showPreview(request: PreviewRequest) {
|
|
35
|
-
if (objectsEqual(_request.value, request)) {
|
|
36
|
-
if (_visible.value) _blinki.value++;
|
|
37
|
-
else _visible.value = true;
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (_request.value) _history.value.push(_request.value);
|
|
42
|
-
|
|
43
|
-
_request.value = request;
|
|
44
|
-
_visible.value = true;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function closePreview() {
|
|
48
|
-
_visible.value = false;
|
|
49
|
-
_request.value = undefined;
|
|
50
|
-
_history.value.length = 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function togglePreview(visible?: boolean) {
|
|
54
|
-
_visible.value = visible === undefined ? !_visible.value : visible;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function setPreviewTheme(newTheme: PreviewThemeName) {
|
|
58
|
-
_theme.value = newTheme;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function unsetPreviewTheme() {
|
|
62
|
-
_theme.value = undefined;
|
|
63
|
-
}
|
package/app/styles/_util.scss
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
@mixin transition($properties...) {
|
|
2
|
-
transition: all var(--transitionSpeed) var(--transitionFunction);
|
|
3
|
-
transition-property: $properties;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@mixin dark {
|
|
7
|
-
:root[data-theme='dark'] & {
|
|
8
|
-
@content;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin hoverLink {
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
color: inherit;
|
|
15
|
-
text-decoration: underline;
|
|
16
|
-
text-decoration-color: transparent;
|
|
17
|
-
@include transition(text-decoration-color);
|
|
18
|
-
|
|
19
|
-
&:hover {
|
|
20
|
-
text-decoration: underline;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@mixin scroll {
|
|
25
|
-
-webkit-overflow-scrolling: auto;
|
|
26
|
-
|
|
27
|
-
&::-webkit-scrollbar {
|
|
28
|
-
-webkit-appearance: none;
|
|
29
|
-
height: 5px;
|
|
30
|
-
width: 5px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&::-webkit-scrollbar-thumb {
|
|
34
|
-
background: var(--scrollbar);
|
|
35
|
-
&:hover {
|
|
36
|
-
background: color-mix(in srgb, var(--scrollbar), var(--invert) 15%);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&::-webkit-scrollbar-corner {
|
|
41
|
-
background: var(--border);
|
|
42
|
-
}
|
|
43
|
-
}
|
package/app/styles/_utils.scss
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
@mixin transition($properties...) {
|
|
2
|
-
transition: all var(--transitionSpeed) var(--transitionFunction);
|
|
3
|
-
transition-property: $properties;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@mixin dark {
|
|
7
|
-
:root[data-theme='dark'] & {
|
|
8
|
-
@content;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin hoverLink {
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
color: inherit;
|
|
15
|
-
text-decoration: underline;
|
|
16
|
-
text-decoration-color: transparent;
|
|
17
|
-
@include transition(text-decoration-color);
|
|
18
|
-
|
|
19
|
-
&:hover {
|
|
20
|
-
text-decoration: underline;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@mixin scroll {
|
|
25
|
-
-webkit-overflow-scrolling: auto;
|
|
26
|
-
|
|
27
|
-
&::-webkit-scrollbar {
|
|
28
|
-
-webkit-appearance: none;
|
|
29
|
-
height: 5px;
|
|
30
|
-
width: 5px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&::-webkit-scrollbar-thumb {
|
|
34
|
-
background: var(--scrollbar);
|
|
35
|
-
|
|
36
|
-
&:hover {
|
|
37
|
-
background: color-mix(in srgb, var(--scrollbar), var(--invert) 15%);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&::-webkit-scrollbar-corner {
|
|
42
|
-
background: var(--border);
|
|
43
|
-
}
|
|
44
|
-
}
|
package/app/styles/app.scss
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
@use '$/def/size';
|
|
2
|
-
|
|
3
|
-
//
|
|
4
|
-
// Vars
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
:root {
|
|
8
|
-
--transitionSpeed: 200ms;
|
|
9
|
-
--transitionFunction: cubic-bezier(0, 0, 0.5, 1);
|
|
10
|
-
interpolate-size: allow-keywords;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// Sizes
|
|
14
|
-
|
|
15
|
-
:root {
|
|
16
|
-
--wAside: #{size.$wAside};
|
|
17
|
-
--wMainMin: #{size.$wMainMin};
|
|
18
|
-
--wMainMax: #{size.$wMainMax};
|
|
19
|
-
|
|
20
|
-
--gap: #{size.$gap};
|
|
21
|
-
--gapSmall: #{size.$gapSmall};
|
|
22
|
-
--gapBig: #{size.$gapBig};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Colors
|
|
26
|
-
|
|
27
|
-
:root {
|
|
28
|
-
--bg: light-dark(#ebebeb, #141414);
|
|
29
|
-
--bgAside: light-dark(#f7f7f7, #1b1b1b);
|
|
30
|
-
--bgMain: light-dark(#ffffff, #212121);
|
|
31
|
-
--bgAccent: light-dark(#e6e6e6, #262626);
|
|
32
|
-
|
|
33
|
-
--border: light-dark(#d7d7d7, #373737);
|
|
34
|
-
|
|
35
|
-
--text: light-dark(#373737, #b9b9b9);
|
|
36
|
-
--textDeep: light-dark(#232323, #e1e1e1);
|
|
37
|
-
--textMuted: light-dark(#696969, #7f7f7f);
|
|
38
|
-
--textDimmed: light-dark(#969696, #616161);
|
|
39
|
-
--textDisabled: light-dark(#b9b9b9, #4f4f4f);
|
|
40
|
-
|
|
41
|
-
--brand: light-dark(#12968e, #379c97);
|
|
42
|
-
--error: light-dark(#d91818, #d94e4e);
|
|
43
|
-
--warn: light-dark(#d98718, #d9b44e);
|
|
44
|
-
--success: light-dark(#12a512, #51a551);
|
|
45
|
-
|
|
46
|
-
--scrollbar: light-dark(#bfbfbf, #494949);
|
|
47
|
-
|
|
48
|
-
--invert: light-dark(black, white);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
//
|
|
52
|
-
// General rules
|
|
53
|
-
//
|
|
54
|
-
|
|
55
|
-
// Noto Sans + Noto Serif
|
|
56
|
-
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
|
|
57
|
-
|
|
58
|
-
body {
|
|
59
|
-
background: var(--bg);
|
|
60
|
-
font-family: 'Noto Sans', system-ui, sans-serif;
|
|
61
|
-
color: var(--text);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
button {
|
|
65
|
-
all: unset;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
h1,
|
|
69
|
-
h2,
|
|
70
|
-
h3,
|
|
71
|
-
h4,
|
|
72
|
-
h5,
|
|
73
|
-
h6,
|
|
74
|
-
strong {
|
|
75
|
-
color: var(--textDeep);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:focus-visible {
|
|
79
|
-
outline: 2px solid var(--brand);
|
|
80
|
-
border-radius: 3px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
::selection {
|
|
84
|
-
background: color-mix(in srgb, var(--brand), transparent 65%);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.icon-flip-h {
|
|
88
|
-
[my-icon] svg {
|
|
89
|
-
transform: scaleX(-1);
|
|
90
|
-
}
|
|
91
|
-
}
|
package/app/styles/def/_bp.scss
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
@use '$/def/size';
|
|
4
|
-
|
|
5
|
-
$bps: (
|
|
6
|
-
'mobile': 500px,
|
|
7
|
-
'aside1': size.$wMainMin + size.$wAside,
|
|
8
|
-
'aside2': size.$wMainMin + size.$wAside * 2,
|
|
9
|
-
);
|
|
10
|
-
|
|
11
|
-
@mixin above($bp) {
|
|
12
|
-
@media (min-width: map.get($bps, $bp)) {
|
|
13
|
-
@content;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@mixin below($bp) {
|
|
18
|
-
@media (max-width: (map.get($bps, $bp) - 1)) {
|
|
19
|
-
@content;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@mixin between($bp1, $bp2) {
|
|
24
|
-
@media (min-width: map.get($bps, $bp1)) and (max-width: (map.get($bps, $bp2) - 1)) {
|
|
25
|
-
@content;
|
|
26
|
-
}
|
|
27
|
-
}
|
package/app/styles/def/_z.scss
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// https://www.joshwcomeau.com/css/custom-css-reset/
|
|
2
|
-
|
|
3
|
-
/* 1. Use a more-intuitive box-sizing model */
|
|
4
|
-
*,
|
|
5
|
-
*::before,
|
|
6
|
-
*::after {
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* 2. Remove default margin */
|
|
11
|
-
* {
|
|
12
|
-
margin: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
body {
|
|
16
|
-
/* 3. Add accessible line-height */
|
|
17
|
-
line-height: 1.5;
|
|
18
|
-
/* 4. Improve text rendering */
|
|
19
|
-
-webkit-font-smoothing: antialiased;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* 5. Improve media defaults */
|
|
23
|
-
img,
|
|
24
|
-
picture,
|
|
25
|
-
video,
|
|
26
|
-
canvas,
|
|
27
|
-
svg {
|
|
28
|
-
display: block;
|
|
29
|
-
max-width: 100%;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/* 6. Inherit fonts for form controls */
|
|
33
|
-
input,
|
|
34
|
-
button,
|
|
35
|
-
textarea,
|
|
36
|
-
select {
|
|
37
|
-
font: inherit;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* 7. Avoid text overflows */
|
|
41
|
-
p,
|
|
42
|
-
h1,
|
|
43
|
-
h2,
|
|
44
|
-
h3,
|
|
45
|
-
h4,
|
|
46
|
-
h5,
|
|
47
|
-
h6 {
|
|
48
|
-
overflow-wrap: break-word;
|
|
49
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.frontNavSeparator {
|
|
2
|
-
--_space: calc(var(--gap) / 2);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.frontNavItem + .frontNavSeparator {
|
|
6
|
-
border-top: 1px solid var(--border);
|
|
7
|
-
margin-top: var(--_space);
|
|
8
|
-
padding-top: var(--_space);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.frontNavSeparator:has(+ .frontNavItem:not(.frontNavSeparator)) {
|
|
12
|
-
border-bottom: 1px solid var(--border);
|
|
13
|
-
padding-bottom: var(--_space);
|
|
14
|
-
margin-bottom: var(--_space);
|
|
15
|
-
}
|
package/const.ts
DELETED
package/globalPath.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url';
|
|
2
|
-
import { resolvePaths } from '@erudit-js/cog/kit';
|
|
3
|
-
|
|
4
|
-
export const ERUDIT_DIR = resolvePaths(fileURLToPath(import.meta.url), '..');
|
|
5
|
-
export const PROJECT_DIR = process.env.ERUDIT_PROJECT_DIR as string;
|
|
6
|
-
|
|
7
|
-
export function eruditPath(path?: string) {
|
|
8
|
-
return path ? `${ERUDIT_DIR}/${path}` : ERUDIT_DIR;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function projectPath(path?: string) {
|
|
12
|
-
return path ? `${PROJECT_DIR}/${path}` : PROJECT_DIR;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function eruditBuildPath(path?: string) {
|
|
16
|
-
return projectPath('.erudit' + (path ? '/' + path : ''));
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function eruditEndNuxtPath(path?: string) {
|
|
20
|
-
return eruditBuildPath('nuxt' + (path ? '/' + path : ''));
|
|
21
|
-
}
|
package/globals/bitran.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { defineServerBitran, defineAppBitran } from '@erudit-js/cog/schema';
|
package/globals/cameo.ts
DELETED
package/globals/content.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
BookConfig,
|
|
3
|
-
ContentReferences,
|
|
4
|
-
ContentReferenceSource,
|
|
5
|
-
GroupConfig,
|
|
6
|
-
TopicConfig,
|
|
7
|
-
} from '@erudit-js/cog/schema';
|
|
8
|
-
|
|
9
|
-
export function defineBook(book: Partial<BookConfig>) {
|
|
10
|
-
return book;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function defineGroup(group: Partial<GroupConfig>) {
|
|
14
|
-
return group;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function defineTopic(topic: Partial<TopicConfig>) {
|
|
18
|
-
return topic;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function defineContentReferences(references: ContentReferences) {
|
|
22
|
-
return references;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export function defineContentSource(source: ContentReferenceSource) {
|
|
26
|
-
return source;
|
|
27
|
-
}
|
package/globals/contributor.ts
DELETED
package/globals/erudit.ts
DELETED
package/globals/register.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as erudit from './erudit';
|
|
2
|
-
import * as contributor from './contributor';
|
|
3
|
-
import * as bitran from './bitran';
|
|
4
|
-
import * as content from './content';
|
|
5
|
-
import * as cameo from './cameo';
|
|
6
|
-
import * as sponsor from './sponsor';
|
|
7
|
-
|
|
8
|
-
import * as asset from '@shared/asset';
|
|
9
|
-
|
|
10
|
-
export function registerGlobals() {
|
|
11
|
-
for (const [key, value] of Object.entries({
|
|
12
|
-
...erudit,
|
|
13
|
-
...contributor,
|
|
14
|
-
...bitran,
|
|
15
|
-
...content,
|
|
16
|
-
...asset,
|
|
17
|
-
...cameo,
|
|
18
|
-
...sponsor,
|
|
19
|
-
})) {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
globalThis[key] = value;
|
|
22
|
-
}
|
|
23
|
-
}
|
package/globals/sponsor.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
SponsorConfig,
|
|
3
|
-
Tier1Sponsor,
|
|
4
|
-
Tier2Sponsor,
|
|
5
|
-
} from '@erudit-js/cog/schema';
|
|
6
|
-
|
|
7
|
-
export function defineTier1Sponsor(
|
|
8
|
-
sponsorConfig: SponsorConfig<Tier1Sponsor>,
|
|
9
|
-
): SponsorConfig<Tier1Sponsor> {
|
|
10
|
-
return sponsorConfig;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function defineTier2Sponsor(
|
|
14
|
-
sponsorConfig: SponsorConfig<Tier2Sponsor>,
|
|
15
|
-
): SponsorConfig<Tier2Sponsor> {
|
|
16
|
-
return sponsorConfig;
|
|
17
|
-
}
|
package/languages/en.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
const english: EruditPhrases = {
|
|
2
|
-
_language_title: 'English',
|
|
3
|
-
_language_code: 'en',
|
|
4
|
-
|
|
5
|
-
site_info_title: 'Erudit',
|
|
6
|
-
site_info_slogan: 'Modern textbook',
|
|
7
|
-
seo_index_title: 'Erudit - CMS for eductional sites',
|
|
8
|
-
seo_index_description:
|
|
9
|
-
'Erudit is a CMS for creating and managing perfect educational sites, maintained by the community.',
|
|
10
|
-
seo_article_description: (contentTitle) =>
|
|
11
|
-
`Clear and interesting explanation of the topic "${contentTitle}". Illustrative examples, important properties, interesting facts, life applications, clear proofs. Here you will definitely understand the topic!`,
|
|
12
|
-
seo_summary_description: (contentTitle) =>
|
|
13
|
-
`Summary of the topic "${contentTitle}": key definitions, theorems, properties and examples of their use. All the most important things in a concise form!`,
|
|
14
|
-
seo_practice_description: (contentTitle) =>
|
|
15
|
-
`Various problems with hints and answers on the topic "${contentTitle}". Interesting conditions, hints and detailed solutions. Turn knowledge into a skill!`,
|
|
16
|
-
index: 'Index',
|
|
17
|
-
pages: 'Pages',
|
|
18
|
-
search: 'Search',
|
|
19
|
-
language: 'Language',
|
|
20
|
-
other: 'Other',
|
|
21
|
-
ads_replacer:
|
|
22
|
-
'Help us develop the project.<br><strong>Disable your ads blocker!</strong>',
|
|
23
|
-
theme: 'Theme',
|
|
24
|
-
theme_system: 'System',
|
|
25
|
-
theme_light: 'Light',
|
|
26
|
-
theme_dark: 'Dark',
|
|
27
|
-
content: 'Content',
|
|
28
|
-
main_page: 'Main page',
|
|
29
|
-
contributors: 'Contributors',
|
|
30
|
-
contributors_page_description:
|
|
31
|
-
'List of people who contributed to the project materials: suggested valuable ideas, made corrections to existing material or wrote their own!',
|
|
32
|
-
contributors_page_invite:
|
|
33
|
-
'You can also help the project, make a contribution and get on this page!',
|
|
34
|
-
become_contributor: 'Become a contributor',
|
|
35
|
-
contributor: 'Contributor',
|
|
36
|
-
contribution: 'Contribution',
|
|
37
|
-
contributions_explain: (count) =>
|
|
38
|
-
`Contributed to ${m(count, 'material', 'materials')}`,
|
|
39
|
-
contributor_description: (name) =>
|
|
40
|
-
`Page with information about the contributor "${name}" and his contribution to the project.`,
|
|
41
|
-
editor: 'Editor',
|
|
42
|
-
add_translation: 'Add translation',
|
|
43
|
-
empty_nav: 'Empty navigation',
|
|
44
|
-
flag_dev: 'Development',
|
|
45
|
-
flag_dev_description:
|
|
46
|
-
'This material is in development! It may change in the future and even contain errors!',
|
|
47
|
-
flag_advanced: 'Advanced',
|
|
48
|
-
flag_advanced_description:
|
|
49
|
-
'This material is for learners with a high level of knowledge. It contains information that is not suitable for beginners!',
|
|
50
|
-
flag_secondary: 'Additional',
|
|
51
|
-
flag_secondary_description:
|
|
52
|
-
'This is an optional material is for learners who want to dive deeper and gain additional knowledge and context.',
|
|
53
|
-
popover_dependencies: 'Dependencies',
|
|
54
|
-
popover_dependencies_description:
|
|
55
|
-
'There is no royal way into this topic! You can only figure it out if you know the following topics:',
|
|
56
|
-
to_index: 'To index',
|
|
57
|
-
about_book: 'About book',
|
|
58
|
-
close: 'Close',
|
|
59
|
-
back: 'Back',
|
|
60
|
-
goto: 'Go to',
|
|
61
|
-
error: 'Error!',
|
|
62
|
-
external_link: 'External link',
|
|
63
|
-
external_link_warn: 'You are going to visit external resource!',
|
|
64
|
-
internal_link: 'Internal link',
|
|
65
|
-
internal_link_warn: 'You are going to visit internal site page!',
|
|
66
|
-
book: 'Textbook',
|
|
67
|
-
group: 'Group',
|
|
68
|
-
topic: 'Topic',
|
|
69
|
-
topics: 'Topics',
|
|
70
|
-
article: 'Article',
|
|
71
|
-
summary: 'Summary',
|
|
72
|
-
practice: 'Practice',
|
|
73
|
-
element_id: 'Element ID',
|
|
74
|
-
preview_missing_title: 'Element not found!',
|
|
75
|
-
preview_missing_explain: `Can't find the element with specified ID in this page!<br>Perhaps the element ID is specified incorrectly or the element has been changed/deleted.`,
|
|
76
|
-
preview_missing_explain_mismatch: `Can't find the element with specified ID in this page!<br>The version of the linked page is different from the current version of the page!<br>This is most likely the cause of the error.`,
|
|
77
|
-
preview_hash_mismatch_title: 'Page version mismatch!',
|
|
78
|
-
preview_hash_mismatch_explain:
|
|
79
|
-
'The version of the page you see now is different from the version of the page the original link led to!<br>The content may be different from what you expected to see.',
|
|
80
|
-
current_page_hash: 'Current hash',
|
|
81
|
-
expected_page_hash: 'Expected hash',
|
|
82
|
-
empty_toc: 'Empty table of contents...',
|
|
83
|
-
no_contributors: 'No contributors...',
|
|
84
|
-
make_contribution: 'Make a contribution',
|
|
85
|
-
material_improvement: 'Material improvement',
|
|
86
|
-
how_to_improve: 'How to improve?',
|
|
87
|
-
edit_page: 'Edit page',
|
|
88
|
-
report_problem: 'Report a problem',
|
|
89
|
-
references: 'References',
|
|
90
|
-
reference_source_featured: 'Featured source',
|
|
91
|
-
references_description:
|
|
92
|
-
'A list of external sources that were used to write this material. If there is an asterisk next to the title, it is a featured source and is worth reading if you want to delve deeper into the material.',
|
|
93
|
-
sponsors: 'Sponsors',
|
|
94
|
-
sponsors_description:
|
|
95
|
-
'People and organizations that support the project financially. Thanks to them, we can continue to develop the project and improve the quality of materials. If you want to support the project, you can become a sponsor too!',
|
|
96
|
-
become_sponsor: 'Become a sponsor',
|
|
97
|
-
toc: 'Table of contents',
|
|
98
|
-
mentions: (count) => m(count, 'mention', 'mentions'),
|
|
99
|
-
start_learning: 'Start learning!',
|
|
100
|
-
x_contributors: (count) => m(count, 'Contributor', 'Contributors'),
|
|
101
|
-
x_sponsors: (count) => m(count, 'Sponsor', 'Sponsors'),
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export default english;
|
|
105
|
-
|
|
106
|
-
export function m(
|
|
107
|
-
number: number,
|
|
108
|
-
one: string,
|
|
109
|
-
few: string,
|
|
110
|
-
includeNumber = true,
|
|
111
|
-
) {
|
|
112
|
-
const text = number === 1 ? one : few;
|
|
113
|
-
return includeNumber ? `${number} ${text}` : text;
|
|
114
|
-
}
|