erudit 2.0.0-dev.7
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/.nuxtrc +1 -0
- package/app/app.vue +172 -0
- package/app/assets/icons/alert.svg +3 -0
- package/app/assets/icons/angle-right.svg +3 -0
- package/app/assets/icons/arrow-in-text.svg +3 -0
- package/app/assets/icons/arrow-left.svg +3 -0
- package/app/assets/icons/arrow-up-to-right.svg +3 -0
- package/app/assets/icons/aside-open.svg +3 -0
- package/app/assets/icons/asterisk.svg +3 -0
- package/app/assets/icons/book-question.svg +3 -0
- package/app/assets/icons/book.svg +3 -0
- package/app/assets/icons/bug.svg +3 -0
- package/app/assets/icons/chip.svg +3 -0
- package/app/assets/icons/circle-help.svg +3 -0
- package/app/assets/icons/construction.svg +3 -0
- package/app/assets/icons/cross.svg +3 -0
- package/app/assets/icons/draw.svg +3 -0
- package/app/assets/icons/ellipsis-vertical.svg +3 -0
- package/app/assets/icons/file-check.svg +3 -0
- package/app/assets/icons/file-lines.svg +3 -0
- package/app/assets/icons/file-star.svg +3 -0
- package/app/assets/icons/folder-open.svg +3 -0
- package/app/assets/icons/folder.svg +3 -0
- package/app/assets/icons/globe.svg +3 -0
- package/app/assets/icons/house.svg +3 -0
- package/app/assets/icons/link-external.svg +3 -0
- package/app/assets/icons/link.svg +3 -0
- package/app/assets/icons/moon.svg +3 -0
- package/app/assets/icons/outline/book.svg +3 -0
- package/app/assets/icons/outline/file-lines.svg +3 -0
- package/app/assets/icons/pirate.svg +3 -0
- package/app/assets/icons/plus-circle.svg +3 -0
- package/app/assets/icons/plus.svg +3 -0
- package/app/assets/icons/puzzle.svg +3 -0
- package/app/assets/icons/search.svg +3 -0
- package/app/assets/icons/shuffle.svg +3 -0
- package/app/assets/icons/star.svg +3 -0
- package/app/assets/icons/sun-moon.svg +3 -0
- package/app/assets/icons/sun.svg +3 -0
- package/app/assets/icons/user.svg +3 -0
- package/app/assets/icons/users.svg +3 -0
- package/app/components/Loading.vue +23 -0
- package/app/components/SiteAside.vue +382 -0
- package/app/components/SiteMain.vue +35 -0
- package/app/components/ads/BannerTemplate.vue +51 -0
- package/app/components/ads/BottomBanner.vue +45 -0
- package/app/components/ads/LeftBanner.vue +50 -0
- package/app/components/aside/AsideListItem.vue +74 -0
- package/app/components/aside/AsideMajor.vue +56 -0
- package/app/components/aside/AsideMinor.vue +71 -0
- package/app/components/aside/major/PaneContentScroll.vue +23 -0
- package/app/components/aside/major/PaneSwitch.vue +54 -0
- package/app/components/aside/major/PaneSwitchButton.vue +63 -0
- package/app/components/aside/major/SiteInfo.vue +85 -0
- package/app/components/aside/major/panes/Language.vue +79 -0
- package/app/components/aside/major/panes/Pages.vue +34 -0
- package/app/components/aside/major/panes/Search.vue +3 -0
- package/app/components/aside/major/panes/nav/Nav.vue +91 -0
- package/app/components/aside/major/panes/nav/NavBook.vue +86 -0
- package/app/components/aside/major/panes/nav/NavBookLoading.vue +24 -0
- package/app/components/aside/major/panes/nav/NavGlobal.vue +16 -0
- package/app/components/aside/major/panes/nav/fnav/FNav.vue +105 -0
- package/app/components/aside/major/panes/nav/fnav/FNavBook.vue +32 -0
- package/app/components/aside/major/panes/nav/fnav/FNavFlags.vue +40 -0
- package/app/components/aside/major/panes/nav/fnav/FNavFolder.vue +60 -0
- package/app/components/aside/major/panes/nav/fnav/FNavItem.vue +34 -0
- package/app/components/aside/major/panes/nav/fnav/FNavSeparator.vue +80 -0
- package/app/components/aside/major/panes/nav/fnav/FNavTopic.vue +24 -0
- package/app/components/aside/major/panes/other/ItemContent.vue +29 -0
- package/app/components/aside/major/panes/other/ItemGenerator.vue +15 -0
- package/app/components/aside/major/panes/other/ItemTheme.vue +54 -0
- package/app/components/aside/major/panes/other/Other.vue +16 -0
- package/app/components/aside/minor/AsideMinorContributor.vue +5 -0
- package/app/components/aside/minor/AsideMinorNews.vue +11 -0
- package/app/components/aside/minor/AsideMinorPane.vue +16 -0
- package/app/components/aside/minor/AsideMinorTopLink.vue +67 -0
- package/app/components/aside/minor/Contribute.vue +145 -0
- package/app/components/aside/minor/content/AsideMinorContent.vue +92 -0
- package/app/components/aside/minor/topic/AsideMinorTopic.vue +32 -0
- package/app/components/aside/minor/topic/TopicContributors.vue +177 -0
- package/app/components/aside/minor/topic/TopicNav.vue +49 -0
- package/app/components/aside/minor/topic/TopicToc.vue +202 -0
- package/app/components/aside/minor/topic/TopicTocItem.vue +31 -0
- package/app/components/aside/utils/AsideOverlayPane.vue +40 -0
- package/app/components/bitran/BitranContent.vue +64 -0
- package/app/components/bitran/RenderWrapper.vue +12 -0
- package/app/components/contributor/ContributorAvatar.vue +43 -0
- package/app/components/contributor/ContributorListItem.vue +35 -0
- package/app/components/main/topic/MainTopic.vue +79 -0
- package/app/components/main/topic/TopicPartSwitch.vue +118 -0
- package/app/components/main/utils/Breadcrumb.vue +75 -0
- package/app/components/main/utils/ContentDecoration.vue +29 -0
- package/app/components/main/utils/ContentDescription.vue +20 -0
- package/app/components/main/utils/ContentFlag.vue +16 -0
- package/app/components/main/utils/ContentPopover.vue +176 -0
- package/app/components/main/utils/ContentPopovers.vue +105 -0
- package/app/components/main/utils/ContentReferences.vue +76 -0
- package/app/components/main/utils/ContentSection.vue +42 -0
- package/app/components/main/utils/ContentTitle.vue +37 -0
- package/app/components/main/utils/reference/ReferenceGroup.vue +41 -0
- package/app/components/main/utils/reference/ReferenceItem.vue +64 -0
- package/app/components/main/utils/reference/ReferenceSource.vue +110 -0
- package/app/components/preview/Preview.vue +177 -0
- package/app/components/preview/PreviewDisplay.vue +139 -0
- package/app/components/preview/PreviewFooterAction.vue +73 -0
- package/app/components/preview/PreviewLoading.vue +15 -0
- package/app/components/preview/PreviewScreen.vue +99 -0
- package/app/components/preview/display/Alert.vue +50 -0
- package/app/components/preview/display/Custom.vue +18 -0
- package/app/components/preview/display/GenericLink.vue +48 -0
- package/app/components/preview/display/PageLink.vue +20 -0
- package/app/components/preview/display/Unique.vue +49 -0
- package/app/components/transition/Fade.vue +22 -0
- package/app/components/tree/TreeContainer.vue +12 -0
- package/app/components/tree/TreeItem.vue +89 -0
- package/app/composables/bitran.ts +132 -0
- package/app/composables/bitranContent.ts +36 -0
- package/app/composables/bitranLocation.ts +7 -0
- package/app/composables/contentData.ts +36 -0
- package/app/composables/contentPage.ts +156 -0
- package/app/composables/contentRoute.ts +45 -0
- package/app/composables/darkMagic.ts +24 -0
- package/app/composables/externalApi.ts +63 -0
- package/app/composables/favicon.ts +8 -0
- package/app/composables/formatText.ts +86 -0
- package/app/composables/majorPane.ts +60 -0
- package/app/composables/phrases.ts +80 -0
- package/app/composables/theme.ts +29 -0
- package/app/composables/url.ts +33 -0
- package/app/pages/_test/preview.vue +110 -0
- package/app/pages/article/[...articleId].vue +3 -0
- package/app/pages/book/[...bookId].vue +47 -0
- package/app/pages/group/[...groupId].vue +64 -0
- package/app/pages/index.vue +32 -0
- package/app/pages/members.vue +7 -0
- package/app/pages/practice/[...practice].vue +3 -0
- package/app/pages/summary/[...summaryId].vue +3 -0
- package/app/public/favicon/article.svg +10 -0
- package/app/public/favicon/default.svg +10 -0
- package/app/public/favicon/practice.svg +10 -0
- package/app/public/favicon/summary.svg +10 -0
- package/app/public/logotype.svg +17 -0
- package/app/public/og-default.png +0 -0
- package/app/public/user.svg +10 -0
- package/app/scripts/_immediate.js +4 -0
- package/app/scripts/aside/index.ts +59 -0
- package/app/scripts/aside/major/nav.ts +26 -0
- package/app/scripts/aside/minor/state.ts +37 -0
- package/app/scripts/aside/minor/topic.ts +3 -0
- package/app/scripts/flag.ts +28 -0
- package/app/scripts/og.ts +27 -0
- package/app/scripts/preview/build.ts +84 -0
- package/app/scripts/preview/data/alert.ts +19 -0
- package/app/scripts/preview/data/custom.ts +8 -0
- package/app/scripts/preview/data/genericLink.ts +24 -0
- package/app/scripts/preview/data/pageLink.ts +20 -0
- package/app/scripts/preview/data/unique.ts +70 -0
- package/app/scripts/preview/data.ts +26 -0
- package/app/scripts/preview/display.ts +39 -0
- package/app/scripts/preview/footer.ts +9 -0
- package/app/scripts/preview/request.ts +51 -0
- package/app/scripts/preview/state.ts +63 -0
- package/app/styles/_immediate.css +3 -0
- package/app/styles/_util.scss +50 -0
- package/app/styles/_utils.scss +44 -0
- package/app/styles/app.scss +91 -0
- package/app/styles/def/_bp.scss +24 -0
- package/app/styles/def/_size.scss +7 -0
- package/app/styles/def/_z.scss +5 -0
- package/app/styles/default.scss +85 -0
- package/app/styles/normalize.scss +63 -0
- package/app/styles/partials/_darkMagic.scss +7 -0
- package/app/styles/partials/_fnav.scss +18 -0
- package/app/styles/partials/_preview.scss +7 -0
- package/globalPath.ts +24 -0
- package/globals/bitran.ts +39 -0
- package/globals/content.ts +22 -0
- package/globals/contributor.ts +5 -0
- package/globals/erudit.ts +5 -0
- package/globals/register.ts +18 -0
- package/languages/en.ts +95 -0
- package/languages/ru.ts +99 -0
- package/module/bitran.ts +34 -0
- package/module/config.ts +34 -0
- package/module/imports.ts +46 -0
- package/module/index.ts +35 -0
- package/module/logger.ts +10 -0
- package/module/paths.ts +22 -0
- package/module/restart.ts +61 -0
- package/nuxt.config.ts +96 -0
- package/package.json +32 -0
- package/server/api/aside/major/nav/bookIds.ts +5 -0
- package/server/api/aside/major/nav/bookNav/[...bookId].ts +20 -0
- package/server/api/aside/major/nav/global.ts +7 -0
- package/server/api/aside/minor/news.ts +7 -0
- package/server/api/aside/minor/path.ts +78 -0
- package/server/api/bitran/content/[location].ts +7 -0
- package/server/api/bitran/toc/[location].ts +7 -0
- package/server/api/content/data.ts +72 -0
- package/server/api/contributor/count.ts +6 -0
- package/server/api/fake/content.ts +11 -0
- package/server/api/fake/shared/languages.ts +12 -0
- package/server/api/language/functions.ts +12 -0
- package/server/api/language/phrase/[phraseId].ts +19 -0
- package/server/api/language/phraseIds.ts +8 -0
- package/server/api/preview/page/[...parts].ts +51 -0
- package/server/api/preview/unique/[location].ts +55 -0
- package/server/plugin/bitran/content.ts +176 -0
- package/server/plugin/bitran/core.ts +51 -0
- package/server/plugin/bitran/location.ts +25 -0
- package/server/plugin/bitran/products/include.ts +229 -0
- package/server/plugin/bitran/products/link.ts +114 -0
- package/server/plugin/bitran/setup.ts +10 -0
- package/server/plugin/bitran/toc.ts +82 -0
- package/server/plugin/build/close.ts +10 -0
- package/server/plugin/build/jobs/content/builderArgs.ts +8 -0
- package/server/plugin/build/jobs/content/generic.ts +176 -0
- package/server/plugin/build/jobs/content/parse.ts +90 -0
- package/server/plugin/build/jobs/content/path.ts +6 -0
- package/server/plugin/build/jobs/content/type/book.ts +9 -0
- package/server/plugin/build/jobs/content/type/group.ts +37 -0
- package/server/plugin/build/jobs/content/type/topic.ts +36 -0
- package/server/plugin/build/jobs/contributors.ts +66 -0
- package/server/plugin/build/jobs/language.ts +36 -0
- package/server/plugin/build/jobs/nav.ts +209 -0
- package/server/plugin/build/process.ts +25 -0
- package/server/plugin/build/rebuild.ts +55 -0
- package/server/plugin/build/setup.ts +21 -0
- package/server/plugin/content/absoluteId.ts +94 -0
- package/server/plugin/content/context.ts +112 -0
- package/server/plugin/db/entities/Book.ts +7 -0
- package/server/plugin/db/entities/Content.ts +49 -0
- package/server/plugin/db/entities/Contribution.ts +10 -0
- package/server/plugin/db/entities/Contributor.ts +16 -0
- package/server/plugin/db/entities/Group.ts +14 -0
- package/server/plugin/db/entities/Hash.ts +15 -0
- package/server/plugin/db/entities/Topic.ts +20 -0
- package/server/plugin/db/entities/Unique.ts +21 -0
- package/server/plugin/db/setup.ts +34 -0
- package/server/plugin/global.ts +18 -0
- package/server/plugin/importer.ts +12 -0
- package/server/plugin/index.ts +9 -0
- package/server/plugin/logger.ts +23 -0
- package/server/plugin/nav/node.ts +26 -0
- package/server/plugin/nav/utils.ts +129 -0
- package/server/plugin/repository/book.ts +21 -0
- package/server/plugin/repository/content.ts +238 -0
- package/server/plugin/repository/contributor.ts +8 -0
- package/server/plugin/repository/frontNav.ts +148 -0
- package/server/plugin/repository/topic.ts +32 -0
- package/server/tsconfig.json +7 -0
- package/shared/aside/minor.ts +50 -0
- package/shared/asset.ts +15 -0
- package/shared/bitran/alias.ts +17 -0
- package/shared/bitran/context.ts +7 -0
- package/shared/bitran/location.ts +166 -0
- package/shared/bitran/products/alias/core/factory.ts +46 -0
- package/shared/bitran/products/alias/core/index.ts +13 -0
- package/shared/bitran/products/alias/render/Alias.vue +10 -0
- package/shared/bitran/products/alias/render/icon.svg +3 -0
- package/shared/bitran/products/alias/render/index.ts +17 -0
- package/shared/bitran/products/alias/render/languages/en.ts +5 -0
- package/shared/bitran/products/alias/render/languages/ru.ts +5 -0
- package/shared/bitran/products/alias/shared.ts +11 -0
- package/shared/bitran/products/heading/core/factory.ts +53 -0
- package/shared/bitran/products/heading/core/index.ts +19 -0
- package/shared/bitran/products/heading/render/Heading.vue +47 -0
- package/shared/bitran/products/heading/render/icon.svg +3 -0
- package/shared/bitran/products/heading/render/index.ts +17 -0
- package/shared/bitran/products/heading/render/languages/en.ts +5 -0
- package/shared/bitran/products/heading/render/languages/ru.ts +5 -0
- package/shared/bitran/products/heading/shared.ts +13 -0
- package/shared/bitran/products/include/core/factory.ts +61 -0
- package/shared/bitran/products/include/core/index.ts +13 -0
- package/shared/bitran/products/include/render/Include.vue +13 -0
- package/shared/bitran/products/include/render/icon.svg +3 -0
- package/shared/bitran/products/include/render/index.ts +18 -0
- package/shared/bitran/products/include/render/languages/en.ts +5 -0
- package/shared/bitran/products/include/render/languages/ru.ts +5 -0
- package/shared/bitran/products/include/shared.ts +15 -0
- package/shared/bitran/products/link/core/factory.ts +20 -0
- package/shared/bitran/products/link/core/index.ts +17 -0
- package/shared/bitran/products/link/render/Link.vue +174 -0
- package/shared/bitran/products/link/render/icon.svg +3 -0
- package/shared/bitran/products/link/render/index.ts +17 -0
- package/shared/bitran/products/link/render/languages/en.ts +5 -0
- package/shared/bitran/products/link/render/languages/ru.ts +5 -0
- package/shared/bitran/products/link/shared.ts +15 -0
- package/shared/bitran/products/link/target.ts +134 -0
- package/shared/bitran/toc.ts +8 -0
- package/shared/content/context.ts +9 -0
- package/shared/content/data/base.ts +32 -0
- package/shared/content/data/index.ts +5 -0
- package/shared/content/data/type/book.ts +5 -0
- package/shared/content/data/type/group.ts +6 -0
- package/shared/content/data/type/topic.ts +11 -0
- package/shared/content/previousNext.ts +9 -0
- package/shared/contributor.ts +5 -0
- package/shared/frontNav.ts +41 -0
- package/shared/icons.ts +38 -0
- package/shared/image.ts +5 -0
- package/shared/link.ts +25 -0
- package/shared/types/language.ts +75 -0
- package/shared/utils/objectsEqual.ts +4 -0
- package/shared/utils/stringColor.ts +9 -0
- package/test/bitran/alias.test.ts +44 -0
- package/test/bitran/location.test.ts +143 -0
- package/test/bitran/products/alias.test.ts +83 -0
- package/test/bitran/products/heading.test.ts +119 -0
- package/test/bitran/products/include.test.ts +77 -0
- package/test/bitran/products/link/factory.test.ts +30 -0
- package/test/bitran/products/link/target.test.ts +138 -0
- package/tsconfig.json +8 -0
- package/utils/stress.ts +9 -0
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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(#1879d9, #4e94d9);
|
|
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
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
{
|
|
13
|
+
@media (min-width: map.get($bps, $bp)) { @content; }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin below($bp)
|
|
17
|
+
{
|
|
18
|
+
@media (max-width: (map.get($bps, $bp) - 1)) { @content; }
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin between($bp1, $bp2)
|
|
22
|
+
{
|
|
23
|
+
@media (min-width: map.get($bps, $bp1)) and (max-width: (map.get($bps, $bp2) - 1)) { @content; }
|
|
24
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@use '$/def/size';
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
// Vars
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
:root
|
|
8
|
+
{
|
|
9
|
+
--transitionSpeed: 200ms;
|
|
10
|
+
--transitionFunction: cubic-bezier(0, 0, .5, 1);
|
|
11
|
+
interpolate-size: allow-keywords;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Sizes
|
|
15
|
+
|
|
16
|
+
:root
|
|
17
|
+
{
|
|
18
|
+
--wAside: #{size.$wAside};
|
|
19
|
+
--wMainMin: #{size.$wMainMin};
|
|
20
|
+
--wMainMax: #{size.$wMainMax};
|
|
21
|
+
|
|
22
|
+
--gap: #{size.$gap};
|
|
23
|
+
--gapSmall : #{size.$gapSmall};
|
|
24
|
+
--gapBig : #{size.$gapBig};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Colors
|
|
28
|
+
|
|
29
|
+
:root
|
|
30
|
+
{
|
|
31
|
+
--bg: light-dark(#ebebeb, #141414);
|
|
32
|
+
--bgAside: light-dark(#f7f7f7, #1b1b1b);
|
|
33
|
+
--bgMain: light-dark(#ffffff, #212121);
|
|
34
|
+
--bgAccent: light-dark(#e6e6e6, #262626);
|
|
35
|
+
|
|
36
|
+
--border: light-dark(#D7D7D7, #373737);
|
|
37
|
+
|
|
38
|
+
--text: light-dark(#373737, #b9b9b9);
|
|
39
|
+
--textDeep: light-dark(#232323, #e1e1e1);
|
|
40
|
+
--textMuted: light-dark(#696969, #7f7f7f);
|
|
41
|
+
--textDimmed: light-dark(#969696, #616161);
|
|
42
|
+
--textDisabled: light-dark(#b9b9b9, #4f4f4f);
|
|
43
|
+
|
|
44
|
+
--brand: light-dark(#1879d9, #4e94d9);
|
|
45
|
+
--error: light-dark(#d91818, #d94e4e);
|
|
46
|
+
--warn: light-dark(#d98718, #d9b44e);
|
|
47
|
+
--success: light-dark(#12a512, #51a551);
|
|
48
|
+
|
|
49
|
+
--scrollbar: light-dark(#bfbfbf, #494949);
|
|
50
|
+
|
|
51
|
+
--invert: light-dark(black, white);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//
|
|
55
|
+
// General rules
|
|
56
|
+
//
|
|
57
|
+
|
|
58
|
+
// Noto Sans + Noto Serif
|
|
59
|
+
@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');
|
|
60
|
+
|
|
61
|
+
body
|
|
62
|
+
{
|
|
63
|
+
background: var(--bg);
|
|
64
|
+
font-family: 'Noto Sans', system-ui, sans-serif;
|
|
65
|
+
color: var(--text);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
h1, h2, h3, h4, h5, h6, strong
|
|
69
|
+
{
|
|
70
|
+
color: var(--textDeep);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
::selection
|
|
74
|
+
{
|
|
75
|
+
//color: var(--text);
|
|
76
|
+
background: color-mix(in srgb, var(--brand), transparent 65%);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.icon-flip-h
|
|
80
|
+
{
|
|
81
|
+
[my-icon] svg
|
|
82
|
+
{
|
|
83
|
+
transform: scaleX(-1);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
}
|
|
50
|
+
|
|
51
|
+
/* 8. Improve line wrapping */
|
|
52
|
+
p {
|
|
53
|
+
text-wrap: pretty;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
h1,
|
|
57
|
+
h2,
|
|
58
|
+
h3,
|
|
59
|
+
h4,
|
|
60
|
+
h5,
|
|
61
|
+
h6 {
|
|
62
|
+
text-wrap: balance;
|
|
63
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.frontNavSeparator
|
|
2
|
+
{
|
|
3
|
+
--_space: calc(var(--gap) / 2);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.frontNavItem + .frontNavSeparator
|
|
7
|
+
{
|
|
8
|
+
border-top: 1px solid var(--border);
|
|
9
|
+
margin-top: var(--_space);
|
|
10
|
+
padding-top: var(--_space);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.frontNavSeparator:has(+ .frontNavItem:not(.frontNavSeparator))
|
|
14
|
+
{
|
|
15
|
+
border-bottom: 1px solid var(--border);
|
|
16
|
+
padding-bottom: var(--_space);
|
|
17
|
+
margin-bottom: var(--_space);
|
|
18
|
+
}
|
package/globalPath.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { fileURLToPath } from 'node:url';
|
|
2
|
+
import { resolvePaths } from 'erudit-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
|
+
console.log('ERUDIT_DIR: ', ERUDIT_DIR);
|
|
8
|
+
|
|
9
|
+
export function eruditPath(path?: string) {
|
|
10
|
+
console.log('Erudit Path: ', path ? `${ERUDIT_DIR}/${path}` : ERUDIT_DIR);
|
|
11
|
+
return path ? `${ERUDIT_DIR}/${path}` : ERUDIT_DIR;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function projectPath(path?: string) {
|
|
15
|
+
return path ? `${PROJECT_DIR}/${path}` : PROJECT_DIR;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function eruditBuildPath(path?: string) {
|
|
19
|
+
return projectPath('.erudit' + (path ? '/' + path : ''));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function eruditEndNuxtPath(path?: string) {
|
|
23
|
+
return eruditBuildPath('nuxt' + (path ? '/' + path : ''));
|
|
24
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { GenericProductCore } from 'bitran/core';
|
|
2
|
+
import type { ProductRender } from 'bitran/render';
|
|
3
|
+
|
|
4
|
+
export interface ConfigProduct {
|
|
5
|
+
core: () => Promise<GenericProductCore>;
|
|
6
|
+
render: () => Promise<ProductRender>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type ConfigProducts = Record<string, ConfigProduct>;
|
|
10
|
+
|
|
11
|
+
export interface EruditBitranConfig<
|
|
12
|
+
TProducts extends ConfigProducts = ConfigProducts,
|
|
13
|
+
> {
|
|
14
|
+
products: TProducts;
|
|
15
|
+
toc: (keyof TProducts)[];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* TODO!
|
|
19
|
+
* Groups of products that are tracked on site, included in TOC, in search, display in front and book pages and so on.
|
|
20
|
+
*
|
|
21
|
+
* Example:
|
|
22
|
+
* tracked: {
|
|
23
|
+
* term: {
|
|
24
|
+
* products: ['definition', 'axiom'],
|
|
25
|
+
title: 'Термин',
|
|
26
|
+
toc: true,
|
|
27
|
+
search: false,
|
|
28
|
+
color: '#E0E0E0',
|
|
29
|
+
* }
|
|
30
|
+
* }
|
|
31
|
+
*/
|
|
32
|
+
tracked: any;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function defineBitranConfig<T extends ConfigProducts>(
|
|
36
|
+
config: Partial<EruditBitranConfig<T>>,
|
|
37
|
+
) {
|
|
38
|
+
return config;
|
|
39
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
BookConfig,
|
|
3
|
+
ContentReferences,
|
|
4
|
+
GroupConfig,
|
|
5
|
+
TopicConfig,
|
|
6
|
+
} from 'erudit-cog/schema';
|
|
7
|
+
|
|
8
|
+
export function defineBook(book: Partial<BookConfig>) {
|
|
9
|
+
return book;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function defineGroup(group: Partial<GroupConfig>) {
|
|
13
|
+
return group;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function defineTopic(topic: Partial<TopicConfig>) {
|
|
17
|
+
return topic;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function defineContentReferences(references: ContentReferences) {
|
|
21
|
+
return references;
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 asset from '@shared/asset';
|
|
6
|
+
|
|
7
|
+
export function registerGlobals() {
|
|
8
|
+
for (const [key, value] of Object.entries({
|
|
9
|
+
...erudit,
|
|
10
|
+
...contributor,
|
|
11
|
+
...bitran,
|
|
12
|
+
...content,
|
|
13
|
+
...asset,
|
|
14
|
+
})) {
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
globalThis[key] = value;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/languages/en.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
generator: 'Generator',
|
|
29
|
+
main_page: 'Main page',
|
|
30
|
+
members: 'Members',
|
|
31
|
+
add_translation: 'Add translation',
|
|
32
|
+
empty_nav: 'Empty navigation',
|
|
33
|
+
flag_dev: 'Development',
|
|
34
|
+
flag_dev_description:
|
|
35
|
+
'This material is in development! It may change in the future and even contain errors!',
|
|
36
|
+
flag_advanced: 'Advanced',
|
|
37
|
+
flag_advanced_description:
|
|
38
|
+
'This material is for learners with a high level of knowledge. It contains information that is not suitable for beginners!',
|
|
39
|
+
flag_secondary: 'Additional',
|
|
40
|
+
flag_secondary_description:
|
|
41
|
+
'This is an optional material is for learners who want to dive deeper and gain additional knowledge and context.',
|
|
42
|
+
popover_dependencies: 'Dependencies',
|
|
43
|
+
popover_dependencies_description:
|
|
44
|
+
'There is no royal way into this topic! You can only figure it out if you know the following topics:',
|
|
45
|
+
to_index: 'To index',
|
|
46
|
+
about_book: 'About book',
|
|
47
|
+
close: 'Close',
|
|
48
|
+
back: 'Back',
|
|
49
|
+
goto: 'Go to',
|
|
50
|
+
error: 'Error!',
|
|
51
|
+
external_link: 'External link',
|
|
52
|
+
external_link_warn: 'You are going to visit external resource!',
|
|
53
|
+
internal_link: 'Internal link',
|
|
54
|
+
internal_link_warn: 'You are going to visit internal site page!',
|
|
55
|
+
book: 'Book',
|
|
56
|
+
group: 'Group',
|
|
57
|
+
topic: 'Topic',
|
|
58
|
+
article: 'Article',
|
|
59
|
+
summary: 'Summary',
|
|
60
|
+
practice: 'Practice',
|
|
61
|
+
contributor: 'Contributor',
|
|
62
|
+
element_id: 'Element ID',
|
|
63
|
+
preview_missing_title: 'Element not found!',
|
|
64
|
+
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.`,
|
|
65
|
+
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.`,
|
|
66
|
+
preview_hash_mismatch_title: 'Page version mismatch!',
|
|
67
|
+
preview_hash_mismatch_explain:
|
|
68
|
+
'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.',
|
|
69
|
+
current_page_hash: 'Current hash',
|
|
70
|
+
expected_page_hash: 'Expected hash',
|
|
71
|
+
empty_toc: 'Empty table of contents...',
|
|
72
|
+
contributors: 'Contributors',
|
|
73
|
+
no_contributors: 'No contributors...',
|
|
74
|
+
make_contribution: 'Make a contribution',
|
|
75
|
+
material_improvement: 'Material improvement',
|
|
76
|
+
how_to_improve: 'How to improve?',
|
|
77
|
+
edit_page: 'Edit page',
|
|
78
|
+
report_problem: 'Report a problem',
|
|
79
|
+
references: 'References',
|
|
80
|
+
reference_source_featured: 'Featured source',
|
|
81
|
+
references_description:
|
|
82
|
+
'List of external sources that were used in writing this material. For a deeper dive into the material, it is recommended to read them in more detail, especially the featured sources, which are marked with an asterisk:',
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export default english;
|
|
86
|
+
|
|
87
|
+
export function m(
|
|
88
|
+
number: number,
|
|
89
|
+
one: string,
|
|
90
|
+
few: string,
|
|
91
|
+
includeNumber = true,
|
|
92
|
+
) {
|
|
93
|
+
const text = number === 1 ? one : few;
|
|
94
|
+
return includeNumber ? `${number} ${text}` : text;
|
|
95
|
+
}
|
package/languages/ru.ts
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
const russian: EruditPhrases = {
|
|
2
|
+
_language_title: 'Русский',
|
|
3
|
+
_language_code: 'ru',
|
|
4
|
+
|
|
5
|
+
site_info_title: 'Erudit',
|
|
6
|
+
site_info_slogan: 'Современный учебник',
|
|
7
|
+
seo_index_title: 'Erudit - CMS для образовательных сайтов',
|
|
8
|
+
seo_index_description:
|
|
9
|
+
'Erudit — CMS для создания и управления идеальными образовательными сайтами, которые поддерживаются сообществом.',
|
|
10
|
+
seo_article_description: (contentTitle) =>
|
|
11
|
+
`Понятное и интересное объяснение темы «${contentTitle}». Показательные примеры, важные свойства, интересные факты, применение в жизни, понятные доказательства. Здесь вы точно разберетесь!`,
|
|
12
|
+
seo_summary_description: (contentTitle) =>
|
|
13
|
+
`Конспект темы «${contentTitle}»: ключевые определения, теоремы, свойства и примеры их использвания. Все самое важное и в кратком виде!`,
|
|
14
|
+
seo_practice_description: (contentTitle) =>
|
|
15
|
+
`Разнообразные задачи с подсказками и ответами по теме «${contentTitle}». Интересные условия, подсказки и подробные решения. Превратите знания в навык!`,
|
|
16
|
+
index: 'Оглавление',
|
|
17
|
+
pages: 'Страницы',
|
|
18
|
+
search: 'Поиск',
|
|
19
|
+
language: 'Язык',
|
|
20
|
+
other: 'Другое',
|
|
21
|
+
ads_replacer:
|
|
22
|
+
'Помогите нам улучшать проект.<br><strong>Включите показ рекламы!</strong>',
|
|
23
|
+
theme: 'Тема',
|
|
24
|
+
theme_system: 'Системная',
|
|
25
|
+
theme_light: 'Светлая',
|
|
26
|
+
theme_dark: 'Темная',
|
|
27
|
+
content: 'Контент',
|
|
28
|
+
generator: 'Генератор',
|
|
29
|
+
main_page: 'Главная страница',
|
|
30
|
+
members: 'Участники',
|
|
31
|
+
add_translation: 'Добавить перевод',
|
|
32
|
+
empty_nav: 'Пустая навигация',
|
|
33
|
+
flag_dev: 'Разработка',
|
|
34
|
+
flag_dev_description:
|
|
35
|
+
'Этот материал в разработке! Он может измениться в будущем и даже содержать ошибки!',
|
|
36
|
+
flag_advanced: 'Профиль',
|
|
37
|
+
flag_advanced_description:
|
|
38
|
+
'Этот материал предназначен для учеников с высоким уровнем понимания предмета. Информация здесь не предназначена для новичокв!',
|
|
39
|
+
flag_secondary: 'Дополнение',
|
|
40
|
+
flag_secondary_description:
|
|
41
|
+
'Это дополнительный материал для тех, кто хочет глубже погрузиться предмет и получить дополнительные знания и контекст.',
|
|
42
|
+
popover_dependencies: 'Зависимости',
|
|
43
|
+
popover_dependencies_description:
|
|
44
|
+
'Царского пути в эту тему нет! Вы сможете разобраться только если знаете следующие темы:',
|
|
45
|
+
to_index: 'К оглавлению',
|
|
46
|
+
about_book: 'Об учебнике',
|
|
47
|
+
close: 'Закрыть',
|
|
48
|
+
back: 'Назад',
|
|
49
|
+
goto: 'Перейти',
|
|
50
|
+
error: 'Ошибка!',
|
|
51
|
+
external_link: 'Внешняя ссылка',
|
|
52
|
+
external_link_warn: 'Вы собираетесь перейти на внешний ресурс!',
|
|
53
|
+
internal_link: 'Внутренняя ссылка',
|
|
54
|
+
internal_link_warn: 'Вы собираетесь перейти на внутреннюю страницу сайта!',
|
|
55
|
+
book: 'Книга',
|
|
56
|
+
group: 'Группа',
|
|
57
|
+
topic: 'Тема',
|
|
58
|
+
article: 'Статья',
|
|
59
|
+
summary: 'Конспект',
|
|
60
|
+
practice: 'Задачи',
|
|
61
|
+
contributor: 'Автор',
|
|
62
|
+
element_id: 'ID элемента',
|
|
63
|
+
preview_missing_title: 'Элемент не найден!',
|
|
64
|
+
preview_missing_explain:
|
|
65
|
+
'Не удалось найти на этой странице элемент с указанным ID!<br>Возможно, ID элемента указан неправильно или элемент был изменен/удален.',
|
|
66
|
+
preview_missing_explain_mismatch: `Не удалось найти на этой странице элемент с указанным ID!<br>Версия страницы, на которую вела ссылка, отличается от текущей версии страницы!<br>Скорее всего, именно это и является причиной ошибки.`,
|
|
67
|
+
preview_hash_mismatch_title: 'Несовпадение версий страницы!',
|
|
68
|
+
preview_hash_mismatch_explain:
|
|
69
|
+
'Версия страницы, которую вы видите сейчас отличается от версии страницы, на которую вела исходная ссылка!<br>Содержимое может отличаться от того, что вы ожидали увидеть.',
|
|
70
|
+
current_page_hash: 'Текущий хеш',
|
|
71
|
+
expected_page_hash: 'Ожидаемый хеш',
|
|
72
|
+
empty_toc: 'Пустая таблица содержимого...',
|
|
73
|
+
contributors: 'Авторы',
|
|
74
|
+
no_contributors: 'Авторов нет...',
|
|
75
|
+
make_contribution: 'Внести свой вклад',
|
|
76
|
+
material_improvement: 'Улучшение материала',
|
|
77
|
+
how_to_improve: 'Как улучшить?',
|
|
78
|
+
edit_page: 'Редактировать страницу',
|
|
79
|
+
report_problem: 'Сообщить о проблеме',
|
|
80
|
+
references: 'Источники',
|
|
81
|
+
reference_source_featured: 'Избранный источник',
|
|
82
|
+
references_description:
|
|
83
|
+
'Список внешних источников, которые использовались при написании этого материала. Для более глубокого погружения в материал рекомендуются ознакомиться с ними подробнее, особенно с избранными источниками, которые отмечены звездочкой:',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export default russian;
|
|
87
|
+
|
|
88
|
+
export function m(
|
|
89
|
+
number: number,
|
|
90
|
+
one: string,
|
|
91
|
+
two: string,
|
|
92
|
+
five: string,
|
|
93
|
+
includeNumber = true,
|
|
94
|
+
) {
|
|
95
|
+
const text = [five, one, two, two, two, five][
|
|
96
|
+
number % 100 > 10 && number % 100 < 20 ? 0 : Math.min(number % 10, 5)
|
|
97
|
+
];
|
|
98
|
+
return includeNumber ? `${number} ${text}` : text;
|
|
99
|
+
}
|