@docsector/docsector-reader 0.1.0
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/.eslintrc.cjs +42 -0
- package/LICENSE.md +9 -0
- package/README.md +175 -0
- package/bin/docsector.js +129 -0
- package/docsector.config.js +54 -0
- package/index.html +20 -0
- package/jsconfig.json +16 -0
- package/package.json +99 -0
- package/postcss.config.cjs +5 -0
- package/public/Docsphere/flags/abkhazia.png +0 -0
- package/public/Docsphere/flags/afghanistan.png +0 -0
- package/public/Docsphere/flags/aland-islands.png +0 -0
- package/public/Docsphere/flags/albania.png +0 -0
- package/public/Docsphere/flags/algeria.png +0 -0
- package/public/Docsphere/flags/american-samoa.png +0 -0
- package/public/Docsphere/flags/andorra.png +0 -0
- package/public/Docsphere/flags/angola.png +0 -0
- package/public/Docsphere/flags/anguilla.png +0 -0
- package/public/Docsphere/flags/antigua-and-barbuda.png +0 -0
- package/public/Docsphere/flags/argentina.png +0 -0
- package/public/Docsphere/flags/armenia.png +0 -0
- package/public/Docsphere/flags/aruba.png +0 -0
- package/public/Docsphere/flags/australia.png +0 -0
- package/public/Docsphere/flags/austria.png +0 -0
- package/public/Docsphere/flags/azerbaijan.png +0 -0
- package/public/Docsphere/flags/azores-islands.png +0 -0
- package/public/Docsphere/flags/bahamas.png +0 -0
- package/public/Docsphere/flags/bahrain.png +0 -0
- package/public/Docsphere/flags/balearic-islands.png +0 -0
- package/public/Docsphere/flags/bangladesh.png +0 -0
- package/public/Docsphere/flags/barbados.png +0 -0
- package/public/Docsphere/flags/basque-country.png +0 -0
- package/public/Docsphere/flags/belarus.png +0 -0
- package/public/Docsphere/flags/belgium.png +0 -0
- package/public/Docsphere/flags/belize.png +0 -0
- package/public/Docsphere/flags/benin.png +0 -0
- package/public/Docsphere/flags/bermuda.png +0 -0
- package/public/Docsphere/flags/bhutan-1.png +0 -0
- package/public/Docsphere/flags/bhutan.png +0 -0
- package/public/Docsphere/flags/bolivia.png +0 -0
- package/public/Docsphere/flags/bonaire.png +0 -0
- package/public/Docsphere/flags/bosnia-and-herzegovina.png +0 -0
- package/public/Docsphere/flags/botswana.png +0 -0
- package/public/Docsphere/flags/brazil.png +0 -0
- package/public/Docsphere/flags/british-columbia.png +0 -0
- package/public/Docsphere/flags/british-indian-ocean-territory.png +0 -0
- package/public/Docsphere/flags/british-virgin-islands.png +0 -0
- package/public/Docsphere/flags/brunei.png +0 -0
- package/public/Docsphere/flags/bulgaria.png +0 -0
- package/public/Docsphere/flags/burkina-faso.png +0 -0
- package/public/Docsphere/flags/burundi.png +0 -0
- package/public/Docsphere/flags/cambodia.png +0 -0
- package/public/Docsphere/flags/cameroon.png +0 -0
- package/public/Docsphere/flags/canada.png +0 -0
- package/public/Docsphere/flags/canary-islands.png +0 -0
- package/public/Docsphere/flags/cape-verde.png +0 -0
- package/public/Docsphere/flags/cayman-islands.png +0 -0
- package/public/Docsphere/flags/central-african-republic.png +0 -0
- package/public/Docsphere/flags/ceuta.png +0 -0
- package/public/Docsphere/flags/chad.png +0 -0
- package/public/Docsphere/flags/chile.png +0 -0
- package/public/Docsphere/flags/china.png +0 -0
- package/public/Docsphere/flags/christmas-island.png +0 -0
- package/public/Docsphere/flags/cocos-island.png +0 -0
- package/public/Docsphere/flags/colombia.png +0 -0
- package/public/Docsphere/flags/comoros.png +0 -0
- package/public/Docsphere/flags/cook-islands.png +0 -0
- package/public/Docsphere/flags/corsica.png +0 -0
- package/public/Docsphere/flags/costa-rica.png +0 -0
- package/public/Docsphere/flags/croatia.png +0 -0
- package/public/Docsphere/flags/cuba.png +0 -0
- package/public/Docsphere/flags/curacao.png +0 -0
- package/public/Docsphere/flags/cyprus.png +0 -0
- package/public/Docsphere/flags/czech-republic.png +0 -0
- package/public/Docsphere/flags/democratic-republic-of-congo.png +0 -0
- package/public/Docsphere/flags/denmark.png +0 -0
- package/public/Docsphere/flags/djibouti.png +0 -0
- package/public/Docsphere/flags/dominica.png +0 -0
- package/public/Docsphere/flags/dominican-republic.png +0 -0
- package/public/Docsphere/flags/east-timor.png +0 -0
- package/public/Docsphere/flags/ecuador.png +0 -0
- package/public/Docsphere/flags/egypt.png +0 -0
- package/public/Docsphere/flags/england.png +0 -0
- package/public/Docsphere/flags/equatorial-guinea.png +0 -0
- package/public/Docsphere/flags/eritrea.png +0 -0
- package/public/Docsphere/flags/estonia.png +0 -0
- package/public/Docsphere/flags/ethiopia.png +0 -0
- package/public/Docsphere/flags/european-union.png +0 -0
- package/public/Docsphere/flags/falkland-islands.png +0 -0
- package/public/Docsphere/flags/faroe-islands.png +0 -0
- package/public/Docsphere/flags/fiji.png +0 -0
- package/public/Docsphere/flags/finland.png +0 -0
- package/public/Docsphere/flags/france.png +0 -0
- package/public/Docsphere/flags/french-polynesia.png +0 -0
- package/public/Docsphere/flags/gabon.png +0 -0
- package/public/Docsphere/flags/galapagos-islands.png +0 -0
- package/public/Docsphere/flags/gambia.png +0 -0
- package/public/Docsphere/flags/georgia.png +0 -0
- package/public/Docsphere/flags/germany.png +0 -0
- package/public/Docsphere/flags/ghana.png +0 -0
- package/public/Docsphere/flags/gibraltar.png +0 -0
- package/public/Docsphere/flags/greece.png +0 -0
- package/public/Docsphere/flags/greenland.png +0 -0
- package/public/Docsphere/flags/grenada.png +0 -0
- package/public/Docsphere/flags/guam.png +0 -0
- package/public/Docsphere/flags/guatemala.png +0 -0
- package/public/Docsphere/flags/guernsey.png +0 -0
- package/public/Docsphere/flags/guinea-bissau.png +0 -0
- package/public/Docsphere/flags/guinea.png +0 -0
- package/public/Docsphere/flags/guyana.png +0 -0
- package/public/Docsphere/flags/haiti.png +0 -0
- package/public/Docsphere/flags/hawaii.png +0 -0
- package/public/Docsphere/flags/honduras.png +0 -0
- package/public/Docsphere/flags/hong-kong.png +0 -0
- package/public/Docsphere/flags/hungary.png +0 -0
- package/public/Docsphere/flags/iceland.png +0 -0
- package/public/Docsphere/flags/india.png +0 -0
- package/public/Docsphere/flags/indonesia.png +0 -0
- package/public/Docsphere/flags/iran.png +0 -0
- package/public/Docsphere/flags/iraq.png +0 -0
- package/public/Docsphere/flags/ireland.png +0 -0
- package/public/Docsphere/flags/isle-of-man.png +0 -0
- package/public/Docsphere/flags/israel.png +0 -0
- package/public/Docsphere/flags/italy.png +0 -0
- package/public/Docsphere/flags/ivory-coast.png +0 -0
- package/public/Docsphere/flags/jamaica.png +0 -0
- package/public/Docsphere/flags/japan.png +0 -0
- package/public/Docsphere/flags/jersey.png +0 -0
- package/public/Docsphere/flags/jordan.png +0 -0
- package/public/Docsphere/flags/kazakhstan.png +0 -0
- package/public/Docsphere/flags/kenya.png +0 -0
- package/public/Docsphere/flags/kiribati.png +0 -0
- package/public/Docsphere/flags/kosovo.png +0 -0
- package/public/Docsphere/flags/kuwait.png +0 -0
- package/public/Docsphere/flags/kyrgyzstan.png +0 -0
- package/public/Docsphere/flags/laos.png +0 -0
- package/public/Docsphere/flags/latvia.png +0 -0
- package/public/Docsphere/flags/lebanon.png +0 -0
- package/public/Docsphere/flags/lesotho.png +0 -0
- package/public/Docsphere/flags/liberia.png +0 -0
- package/public/Docsphere/flags/libya.png +0 -0
- package/public/Docsphere/flags/liechtenstein.png +0 -0
- package/public/Docsphere/flags/lithuania.png +0 -0
- package/public/Docsphere/flags/luxembourg.png +0 -0
- package/public/Docsphere/flags/macao.png +0 -0
- package/public/Docsphere/flags/madagascar.png +0 -0
- package/public/Docsphere/flags/madeira.png +0 -0
- package/public/Docsphere/flags/malawi.png +0 -0
- package/public/Docsphere/flags/malaysia.png +0 -0
- package/public/Docsphere/flags/maldives.png +0 -0
- package/public/Docsphere/flags/mali.png +0 -0
- package/public/Docsphere/flags/malta.png +0 -0
- package/public/Docsphere/flags/marshall-island.png +0 -0
- package/public/Docsphere/flags/martinique.png +0 -0
- package/public/Docsphere/flags/mauritania.png +0 -0
- package/public/Docsphere/flags/mauritius.png +0 -0
- package/public/Docsphere/flags/melilla.png +0 -0
- package/public/Docsphere/flags/mexico.png +0 -0
- package/public/Docsphere/flags/micronesia.png +0 -0
- package/public/Docsphere/flags/moldova.png +0 -0
- package/public/Docsphere/flags/monaco.png +0 -0
- package/public/Docsphere/flags/mongolia.png +0 -0
- package/public/Docsphere/flags/montenegro.png +0 -0
- package/public/Docsphere/flags/montserrat.png +0 -0
- package/public/Docsphere/flags/morocco.png +0 -0
- package/public/Docsphere/flags/mozambique.png +0 -0
- package/public/Docsphere/flags/myanmar.png +0 -0
- package/public/Docsphere/flags/namibia.png +0 -0
- package/public/Docsphere/flags/nato.png +0 -0
- package/public/Docsphere/flags/nauru.png +0 -0
- package/public/Docsphere/flags/nepal.png +0 -0
- package/public/Docsphere/flags/netherlands.png +0 -0
- package/public/Docsphere/flags/new-zealand.png +0 -0
- package/public/Docsphere/flags/nicaragua.png +0 -0
- package/public/Docsphere/flags/niger.png +0 -0
- package/public/Docsphere/flags/nigeria.png +0 -0
- package/public/Docsphere/flags/niue.png +0 -0
- package/public/Docsphere/flags/norfolk-island.png +0 -0
- package/public/Docsphere/flags/north-korea.png +0 -0
- package/public/Docsphere/flags/northen-cyprus.png +0 -0
- package/public/Docsphere/flags/northern-marianas-islands.png +0 -0
- package/public/Docsphere/flags/norway.png +0 -0
- package/public/Docsphere/flags/oman.png +0 -0
- package/public/Docsphere/flags/orkney-islands.png +0 -0
- package/public/Docsphere/flags/ossetia.png +0 -0
- package/public/Docsphere/flags/pakistan.png +0 -0
- package/public/Docsphere/flags/palau.png +0 -0
- package/public/Docsphere/flags/palestine.png +0 -0
- package/public/Docsphere/flags/panama.png +0 -0
- package/public/Docsphere/flags/papua-new-guinea.png +0 -0
- package/public/Docsphere/flags/paraguay.png +0 -0
- package/public/Docsphere/flags/peru.png +0 -0
- package/public/Docsphere/flags/philippines.png +0 -0
- package/public/Docsphere/flags/pitcairn-islands.png +0 -0
- package/public/Docsphere/flags/portugal.png +0 -0
- package/public/Docsphere/flags/puerto-rico.png +0 -0
- package/public/Docsphere/flags/qatar.png +0 -0
- package/public/Docsphere/flags/rapa-nui.png +0 -0
- package/public/Docsphere/flags/republic-of-macedonia.png +0 -0
- package/public/Docsphere/flags/republic-of-poland.png +0 -0
- package/public/Docsphere/flags/republic-of-the-congo.png +0 -0
- package/public/Docsphere/flags/romania.png +0 -0
- package/public/Docsphere/flags/russia.png +0 -0
- package/public/Docsphere/flags/rwanda.png +0 -0
- package/public/Docsphere/flags/saba-island.png +0 -0
- package/public/Docsphere/flags/saint-kitts-and-nevis.png +0 -0
- package/public/Docsphere/flags/salvador.png +0 -0
- package/public/Docsphere/flags/samoa.png +0 -0
- package/public/Docsphere/flags/san-marino.png +0 -0
- package/public/Docsphere/flags/sao-tome-and-principe.png +0 -0
- package/public/Docsphere/flags/sardinia.png +0 -0
- package/public/Docsphere/flags/saudi-arabia.png +0 -0
- package/public/Docsphere/flags/scotland.png +0 -0
- package/public/Docsphere/flags/senegal.png +0 -0
- package/public/Docsphere/flags/serbia.png +0 -0
- package/public/Docsphere/flags/seychelles.png +0 -0
- package/public/Docsphere/flags/sierra-leone.png +0 -0
- package/public/Docsphere/flags/singapore.png +0 -0
- package/public/Docsphere/flags/sint-eustatius.png +0 -0
- package/public/Docsphere/flags/sint-maarten.png +0 -0
- package/public/Docsphere/flags/slovakia.png +0 -0
- package/public/Docsphere/flags/slovenia.png +0 -0
- package/public/Docsphere/flags/solomon-islands.png +0 -0
- package/public/Docsphere/flags/somalia.png +0 -0
- package/public/Docsphere/flags/somaliland.png +0 -0
- package/public/Docsphere/flags/south-africa.png +0 -0
- package/public/Docsphere/flags/south-korea.png +0 -0
- package/public/Docsphere/flags/south-sudan.png +0 -0
- package/public/Docsphere/flags/spain.png +0 -0
- package/public/Docsphere/flags/sri-lanka.png +0 -0
- package/public/Docsphere/flags/st-barts.png +0 -0
- package/public/Docsphere/flags/st-lucia.png +0 -0
- package/public/Docsphere/flags/st-vincent-and-the-grenadines.png +0 -0
- package/public/Docsphere/flags/sudan.png +0 -0
- package/public/Docsphere/flags/suriname.png +0 -0
- package/public/Docsphere/flags/swaziland.png +0 -0
- package/public/Docsphere/flags/sweden.png +0 -0
- package/public/Docsphere/flags/switzerland.png +0 -0
- package/public/Docsphere/flags/syria.png +0 -0
- package/public/Docsphere/flags/taiwan.png +0 -0
- package/public/Docsphere/flags/tajikistan.png +0 -0
- package/public/Docsphere/flags/tanzania.png +0 -0
- package/public/Docsphere/flags/thailand.png +0 -0
- package/public/Docsphere/flags/tibet.png +0 -0
- package/public/Docsphere/flags/togo.png +0 -0
- package/public/Docsphere/flags/tokelau.png +0 -0
- package/public/Docsphere/flags/tonga.png +0 -0
- package/public/Docsphere/flags/transnistria.png +0 -0
- package/public/Docsphere/flags/trinidad-and-tobago.png +0 -0
- package/public/Docsphere/flags/tunisia.png +0 -0
- package/public/Docsphere/flags/turkey.png +0 -0
- package/public/Docsphere/flags/turkmenistan.png +0 -0
- package/public/Docsphere/flags/turks-and-caicos.png +0 -0
- package/public/Docsphere/flags/tuvalu.png +0 -0
- package/public/Docsphere/flags/uganda.png +0 -0
- package/public/Docsphere/flags/ukraine.png +0 -0
- package/public/Docsphere/flags/united-arab-emirates.png +0 -0
- package/public/Docsphere/flags/united-kingdom.png +0 -0
- package/public/Docsphere/flags/united-nations.png +0 -0
- package/public/Docsphere/flags/united-states-of-america.png +0 -0
- package/public/Docsphere/flags/uruguay.png +0 -0
- package/public/Docsphere/flags/uzbekistn.png +0 -0
- package/public/Docsphere/flags/vanuatu.png +0 -0
- package/public/Docsphere/flags/vatican-city.png +0 -0
- package/public/Docsphere/flags/venezuela.png +0 -0
- package/public/Docsphere/flags/vietnam.png +0 -0
- package/public/Docsphere/flags/virgin-islands.png +0 -0
- package/public/Docsphere/flags/wales.png +0 -0
- package/public/Docsphere/flags/western-sahara.png +0 -0
- package/public/Docsphere/flags/yemen.png +0 -0
- package/public/Docsphere/flags/zambia.png +0 -0
- package/public/Docsphere/flags/zimbabwe.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/images/flags/brazil.png +0 -0
- package/public/images/flags/united-states-of-america.png +0 -0
- package/public/images/logo.png +0 -0
- package/public/logo.png +0 -0
- package/public/robots.txt +2 -0
- package/public/sad.svg +1 -0
- package/quasar.config.js +117 -0
- package/src/App.vue +235 -0
- package/src/boot/QZoom.js +7 -0
- package/src/boot/axios.js +11 -0
- package/src/boot/i18n.js +15 -0
- package/src/boot/store.js +26 -0
- package/src/components/DH1.vue +42 -0
- package/src/components/DH2.vue +36 -0
- package/src/components/DH3.vue +36 -0
- package/src/components/DH4.vue +26 -0
- package/src/components/DH5.vue +26 -0
- package/src/components/DH6.vue +26 -0
- package/src/components/DMenu.vue +446 -0
- package/src/components/DMenuItem.vue +127 -0
- package/src/components/DPage.vue +222 -0
- package/src/components/DPageAnchor.vue +123 -0
- package/src/components/DPageBlockquote.vue +19 -0
- package/src/components/DPageMeta.vue +203 -0
- package/src/components/DPageSection.vue +243 -0
- package/src/components/DPageSourceCode.vue +376 -0
- package/src/components/DSubpage.vue +33 -0
- package/src/components/QZoom.js +278 -0
- package/src/components/QZoom.styl +43 -0
- package/src/composables/useNavigator.js +113 -0
- package/src/css/app.sass +279 -0
- package/src/css/quasar.variables.scss +24 -0
- package/src/i18n/index.js +126 -0
- package/src/i18n/languages/en-US.hjson +98 -0
- package/src/i18n/languages/pt-BR.hjson +97 -0
- package/src/i18n/tags.hjson +44 -0
- package/src/index.js +99 -0
- package/src/layouts/DefaultLayout.vue +95 -0
- package/src/layouts/SystemLayout.vue +4 -0
- package/src/pages/@/404Page.vue +15 -0
- package/src/pages/@/BootPage.vue +106 -0
- package/src/pages/boot.js +10 -0
- package/src/pages/guide/configuration.overview.en-US.md +107 -0
- package/src/pages/guide/configuration.overview.pt-BR.md +107 -0
- package/src/pages/guide/deployment.overview.en-US.md +49 -0
- package/src/pages/guide/deployment.overview.pt-BR.md +49 -0
- package/src/pages/guide/getting-started.overview.en-US.md +59 -0
- package/src/pages/guide/getting-started.overview.pt-BR.md +59 -0
- package/src/pages/guide/i18n-and-markdown.overview.en-US.md +77 -0
- package/src/pages/guide/i18n-and-markdown.overview.pt-BR.md +77 -0
- package/src/pages/guide/pages-and-routing.overview.en-US.md +85 -0
- package/src/pages/guide/pages-and-routing.overview.pt-BR.md +85 -0
- package/src/pages/guide/plugins.overview.en-US.md +3 -0
- package/src/pages/guide/plugins.overview.pt-BR.md +3 -0
- package/src/pages/guide/theming.overview.en-US.md +55 -0
- package/src/pages/guide/theming.overview.pt-BR.md +55 -0
- package/src/pages/index.js +385 -0
- package/src/pages/manual/components/d-headings.overview.en-US.md +54 -0
- package/src/pages/manual/components/d-headings.overview.pt-BR.md +54 -0
- package/src/pages/manual/components/d-headings.showcase.en-US.md +32 -0
- package/src/pages/manual/components/d-headings.showcase.pt-BR.md +32 -0
- package/src/pages/manual/components/d-menu.overview.en-US.md +59 -0
- package/src/pages/manual/components/d-menu.overview.pt-BR.md +59 -0
- package/src/pages/manual/components/d-page-anchor.overview.en-US.md +49 -0
- package/src/pages/manual/components/d-page-anchor.overview.pt-BR.md +49 -0
- package/src/pages/manual/components/d-page-blockquote.overview.en-US.md +44 -0
- package/src/pages/manual/components/d-page-blockquote.overview.pt-BR.md +44 -0
- package/src/pages/manual/components/d-page-blockquote.showcase.en-US.md +27 -0
- package/src/pages/manual/components/d-page-blockquote.showcase.pt-BR.md +27 -0
- package/src/pages/manual/components/d-page-meta.overview.en-US.md +51 -0
- package/src/pages/manual/components/d-page-meta.overview.pt-BR.md +51 -0
- package/src/pages/manual/components/d-page-section.overview.en-US.md +55 -0
- package/src/pages/manual/components/d-page-section.overview.pt-BR.md +55 -0
- package/src/pages/manual/components/d-page-section.showcase.en-US.md +43 -0
- package/src/pages/manual/components/d-page-section.showcase.pt-BR.md +43 -0
- package/src/pages/manual/components/d-page-source-code.overview.en-US.md +54 -0
- package/src/pages/manual/components/d-page-source-code.overview.pt-BR.md +54 -0
- package/src/pages/manual/components/d-page-source-code.showcase.en-US.md +50 -0
- package/src/pages/manual/components/d-page-source-code.showcase.pt-BR.md +50 -0
- package/src/pages/manual/components/d-page.overview.en-US.md +56 -0
- package/src/pages/manual/components/d-page.overview.pt-BR.md +56 -0
- package/src/pages/manual/components/d-page.showcase.en-US.md +35 -0
- package/src/pages/manual/components/d-page.showcase.pt-BR.md +35 -0
- package/src/pages/manual/components/d-subpage.overview.en-US.md +56 -0
- package/src/pages/manual/components/d-subpage.overview.pt-BR.md +56 -0
- package/src/pages/manual/components/q-zoom.overview.en-US.md +71 -0
- package/src/pages/manual/components/q-zoom.overview.pt-BR.md +71 -0
- package/src/pages/manual/composables/use-navigator.overview.en-US.md +89 -0
- package/src/pages/manual/composables/use-navigator.overview.pt-BR.md +89 -0
- package/src/pages/manual/store/modules.overview.en-US.md +96 -0
- package/src/pages/manual/store/modules.overview.pt-BR.md +96 -0
- package/src/router/index.js +30 -0
- package/src/router/routes.js +93 -0
- package/src/store/App.js +43 -0
- package/src/store/I18n.js +22 -0
- package/src/store/Layout.js +124 -0
- package/src/store/Page.js +103 -0
- package/src/store/Settings.js +18 -0
- package/src/store/index.js +24 -0
package/public/sad.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166.7 168.9" width="166.7" height="168.9" isolation="isolate"><defs><clipPath><rect width="166.7" height="168.9"/></clipPath></defs><g clip-path="url(#_clipPath_PPPiEcORhRSYwopEENnaRFzzeYSXmwtt)"><path d="M65.6 135.2C65.6 137.1 64.1 138.6 62.2 138.6 60.4 138.6 58.9 137.1 58.9 135.2 58.9 130.7 61.9 126.7 66.8 124 71.1 121.6 77 120.1 83.3 120.1 89.7 120.1 95.6 121.6 99.9 124 104.7 126.7 107.8 130.7 107.8 135.2 107.8 137.1 106.3 138.6 104.4 138.6 102.6 138.6 101.1 137.1 101.1 135.2 101.1 133.3 99.4 131.3 96.6 129.8 93.3 127.9 88.6 126.8 83.3 126.8 78.1 126.8 73.4 127.9 70 129.8 67.3 131.3 65.6 133.3 65.6 135.2ZM149.2 153.3C149.2 157.6 147.5 161.5 144.6 164.4 141.8 167.2 137.9 168.9 133.6 168.9 129.3 168.9 125.4 167.2 122.6 164.4 120.9 162.8 119.7 160.9 118.9 158.7 114.1 161 109 162.8 103.7 164.1 97.2 165.8 90.4 166.6 83.3 166.6 60.3 166.6 39.5 157.3 24.4 142.2 9.3 127.1 0 106.3 0 83.3 0 60.3 9.3 39.5 24.4 24.4 39.5 9.3 60.3 0 83.3 0 106.4 0 127.2 9.3 142.3 24.4 157.3 39.5 166.7 60.3 166.7 83.3 166.7 94.5 164.5 105.1 160.5 114.9 156.6 124.2 151.1 132.7 144.4 140 147 145.1 149.2 150.2 149.2 153.3ZM130.7 126.3C131.1 125.5 131.8 125 132.5 124.8L132.6 124.7 132.6 124.7 132.7 124.7 132.7 124.7 132.8 124.7 132.9 124.6 132.9 124.6 132.9 124.6 133 124.6 133 124.6C133 124.6 133.1 124.6 133.1 124.6L133.1 124.6 133.2 124.6 133.2 124.6C133.9 124.5 134.6 124.6 135.2 125 135.8 125.3 136.3 125.8 136.6 126.4L136.6 126.4 136.6 126.4 136.6 126.4 136.6 126.4 136.6 126.4 136.6 126.5 136.6 126.5 136.6 126.5 136.6 126.5 136.6 126.5 136.7 126.5C137 127.2 137.7 128.3 138.4 129.6L138.4 129.6 138.5 129.7 138.5 129.7 138.6 129.8 138.6 129.9 138.6 129.9 138.7 130 138.7 130.1 138.7 130.1 138.7 130.1 138.8 130.2 138.8 130.2 138.8 130.3 138.9 130.3 138.9 130.4 138.9 130.4 138.9 130.4 139 130.5 139 130.5 139 130.6 139.1 130.7 139.1 130.7 139.1 130.7 139.2 130.8 139.2 130.8 139.2 130.9C139.8 131.8 140.4 132.9 141 133.9 146.5 127.6 151.1 120.3 154.3 112.4 158 103.4 160 93.6 160 83.3 160 62.1 151.4 43 137.6 29.1 123.7 15.2 104.5 6.7 83.3 6.7 62.2 6.7 43 15.2 29.1 29.1 15.2 43 6.7 62.1 6.7 83.3 6.7 104.5 15.2 123.6 29.1 137.5 43 151.4 62.2 160 83.3 160 89.8 160 96.1 159.2 102.1 157.7 107.8 156.2 113.1 154.2 118.1 151.7L118.1 151.6 118.2 151.6 118.2 151.3 118.2 151.3 118.3 151 118.3 151 118.4 150.7 118.4 150.6 118.5 150.4 118.5 150.3 118.5 150 118.6 149.9 118.6 149.7 118.7 149.6 118.8 149.3C118.9 148.9 119 148.5 119.1 148.2L119.2 148.1 119.3 147.8 119.3 147.7 119.4 147.4 119.4 147.4C119.5 147.1 119.6 146.9 119.7 146.7L119.7 146.6 119.8 146.3 119.9 146.2 120 145.9 120.1 145.9C120.2 145.6 120.3 145.3 120.4 145.1L120.4 145.1 120.6 144.7 120.6 144.6 120.7 144.3 120.8 144.2 120.9 143.9 120.9 143.8 121 143.8 121.1 143.5 121.1 143.4 121.2 143.2 121.3 143 121.4 143C121.6 142.6 121.7 142.2 122 141.8L122 141.7 122.2 141.4 122.2 141.3 122.4 140.9 122.4 140.9 122.6 140.5 122.6 140.5 122.8 140.1 123 139.8 123 139.7 123 139.7 123.4 138.9 123.5 138.9 123.6 138.6 123.7 138.4 123.8 138.3 123.9 138 124 137.9 124.2 137.6 124.2 137.5 124.4 137.2 124.4 137.2 124.6 136.8 124.6 136.8 124.8 136.4 124.8 136.4 125 136.1 125.1 136 125.2 135.7 125.3 135.6 125.4 135.3 125.5 135.2 125.6 135 125.7 134.8 125.8 134.6 125.9 134.4 126.2 134 126.2 133.9 126.4 133.6 126.4 133.6 126.6 133.3 126.6 133.2 126.8 132.9 126.8 132.9 127 132.5 127 132.5 127.3 132.2 127.4 131.9 127.4 131.8 127.6 131.6 127.7 131.5 127.8 131.3 127.9 131.1 128 131 128.1 130.8 128.1 130.6 128.3 130.4 128.3 130.4 128.5 130.1 128.5 130.1 128.7 129.8 128.7 129.8 128.8 129.5 128.8 129.5 128.9 129.4 128.9 129.3 129 129.3 129 129.2 129 129.1 129 129.1 129.1 129 129.1 129 129.2 128.9 129.2 128.9 129.2 128.8 129.2 128.8 129.3 128.8 129.3 128.8 129.3 128.7 129.3 128.7 129.3 128.7 129.3 128.7 129.4 128.6 129.4 128.6 129.4 128.5 129.4 128.5 129.4 128.4 129.5 128.4 129.5 128.4 129.5 128.4 129.5 128.4 129.5 128.3 129.5 128.3 129.6 128.2 129.6 128.2 129.6 128.2 129.6 128.2 129.6 128.1 129.6 128.1 129.7 128.1 129.7 128.1 129.7 128 129.7 128 129.8 127.9 129.8 127.9 129.8 127.9 129.8 127.9 129.8 127.8 129.8 127.8 129.8 127.8 129.8 127.8 129.9 127.7 129.9 127.7 129.9 127.7 129.9 127.7 129.9 127.6 129.9 127.6 130 127.6 130 127.6 130 127.5 130 127.5 130 127.4 130 127.4 130.1 127.4 130.1 127.4 130.1 127.4 130.1 127.4 130.1 127.3 130.1 127.3 130.1 127.3 130.1 127.3 130.2 127.2 130.2 127.2 130.2 127.2 130.2 127.2 130.2 127.1 130.2 127.1 130.2 127.1 130.2 127.1 130.3 127 130.3 127 130.3 127 130.3 127 130.3 127 130.3 127 130.4 126.9 130.4 126.9 130.4 126.9 130.4 126.9 130.4 126.8 130.4 126.8 130.4 126.8 130.4 126.8 130.4 126.8 130.4 126.8 130.5 126.7 130.5 126.7 130.5 126.7 130.5 126.7 130.5 126.7 130.5 126.7 130.5 126.6 130.5 126.6 130.5 126.6 130.5 126.6 130.6 126.5 130.6 126.5 130.6 126.5 130.6 126.5 130.6 126.5 130.6 126.5 130.6 126.4 130.6 126.4 130.7 126.4 130.7 126.4 130.7 126.4 130.7 126.4 130.7 126.3 130.7 126.3 130.7 126.3 130.7 126.3ZM140 159.6C141.5 158.1 142.6 155.8 142.6 153.3 142.6 151 140.1 146 137.4 141.1L137.4 141.1 137.4 141.1 137.4 141.1C137 140.4 136.7 139.8 136.3 139.1L136.2 139 136.2 138.9 136.1 138.9 136.1 138.8 136 138.5 135.9 138.5C135.2 137.2 134.5 136.1 133.9 135L133.8 134.9 133.8 134.8 133.8 134.8 133.7 134.7 133.6 134.6 133.6 134.5 133.4 134.8 133.3 135.1 133.3 135.1 133.1 135.4 133.1 135.4 132.9 135.7 132.7 136 132.7 136 132.5 136.3 132.5 136.3 132.4 136.6 132.2 136.9 132.2 136.9 132 137.2 131.8 137.5 131.8 137.5 131.6 137.9 131.6 137.9 131.4 138.2 131.4 138.2 131.2 138.5 131 138.9 131 138.9 130.8 139.2 130.8 139.2 130.7 139.5 130.7 139.5 130.5 139.9 130.5 139.9 130.3 140.2 130.1 140.5 130.1 140.5 129.9 140.9 129.9 140.9 129.7 141.2 129.7 141.2 129.6 141.5 129.4 141.9 129.2 142.2 129.2 142.2 129 142.6 129 142.6 128.8 142.9 128.6 143.2 128.6 143.2 128.5 143.6 128.3 143.9 128.3 143.9 128.1 144.3 128.1 144.3 127.9 144.6 127.9 144.6 127.8 144.9 127.6 145.2 127.4 145.6 127.3 145.9 127.3 145.9 127.1 146.2 127 146.5 127 146.5 126.8 146.8 126.8 146.8 126.7 147.2 126.7 147.2 126.5 147.5 126.5 147.5 126.4 147.8 126.4 147.8 126.3 148.1 126.1 148.4 126 148.6 126 148.6 125.9 149 125.9 149 125.7 149.3 125.7 149.5 125.7 149.5 125.6 149.8 125.6 149.8 125.4 150 125.4 150 125.3 150.3 125.3 150.3 125.3 150.6 125.3 150.6 125.2 150.8 125.2 150.8 125.1 151.1 125.1 151.1 125 151.3 125 151.3 125 151.6 125 151.6 124.9 151.8 124.9 151.8 124.8 152 124.8 152 124.8 152.2 124.8 152.2 124.8 152.4 124.8 152.4C124.7 152.5 124.7 152.5 124.7 152.6L124.7 152.6 124.7 152.8 124.7 152.8C124.7 152.9 124.7 152.9 124.7 153L124.7 153 124.6 153.2 124.6 153.2 124.6 153.3 124.6 153.4C124.7 155.9 125.7 158.1 127.3 159.7 128.9 161.3 131.1 162.3 133.6 162.3 136.1 162.3 138.3 161.3 140 159.6ZM135.3 72.7C136.2 74.3 135.6 76.3 133.9 77.2 132.3 78 130.3 77.4 129.4 75.8 128.7 74.3 127.6 72.9 126.3 71.9 125 70.8 123.4 70.1 121.8 69.6L121.8 69.6C120.8 69.4 119.8 69.2 118.9 69.2 117.8 69.2 116.8 69.3 115.8 69.5 114 69.9 112.3 68.8 111.8 67 111.5 65.2 112.6 63.5 114.4 63 115.8 62.7 117.4 62.6 118.9 62.6 120.5 62.6 122 62.8 123.4 63.2L123.6 63.2C126.1 63.9 128.4 65.1 130.4 66.7 132.5 68.3 134.1 70.4 135.3 72.7ZM37.2 75.8C36.4 77.4 34.4 78 32.7 77.2 31.1 76.3 30.5 74.3 31.3 72.7 32.5 70.4 34.2 68.3 36.2 66.7 38.2 65.1 40.6 63.9 43.1 63.2L43.2 63.2C44.7 62.8 46.2 62.6 47.7 62.6 49.3 62.6 50.8 62.7 52.3 63 54.1 63.5 55.2 65.2 54.8 67 54.4 68.8 52.6 69.9 50.9 69.5 49.9 69.3 48.8 69.2 47.8 69.2 46.8 69.2 45.8 69.4 44.9 69.6L44.9 69.6C43.2 70.1 41.7 70.8 40.4 71.9 39.1 72.9 38 74.3 37.2 75.8ZM125.2 92.7C125.2 90.7 124.5 88.9 123.3 87.6 122.2 86.5 120.6 85.7 119 85.7 117.3 85.7 115.8 86.5 114.7 87.6 113.5 88.9 112.8 90.7 112.8 92.7 112.8 94.6 113.5 96.4 114.7 97.7 115.8 98.9 117.3 99.6 119 99.6 120.6 99.6 122.2 98.9 123.3 97.7 124.5 96.4 125.2 94.6 125.2 92.7ZM128.2 83.2C130.4 85.6 131.8 89 131.8 92.7 131.8 96.4 130.4 99.7 128.2 102.2 125.8 104.7 122.6 106.3 119 106.3 115.4 106.3 112.1 104.7 109.8 102.2 107.5 99.7 106.1 96.4 106.1 92.7 106.1 89 107.5 85.6 109.8 83.2 112.1 80.6 115.4 79.1 119 79.1 122.6 79.1 125.8 80.6 128.2 83.2ZM53.9 92.7C53.9 90.7 53.2 88.9 52 87.6 50.9 86.5 49.4 85.7 47.7 85.7 46 85.7 44.5 86.5 43.4 87.6 42.2 88.9 41.5 90.7 41.5 92.7 41.5 94.6 42.2 96.4 43.4 97.7 44.5 98.9 46 99.6 47.7 99.6 49.4 99.6 50.9 98.9 52 97.7 53.2 96.4 53.9 94.6 53.9 92.7ZM56.9 83.2C59.2 85.6 60.5 89 60.5 92.7 60.5 96.4 59.2 99.7 56.9 102.2 54.5 104.7 51.3 106.3 47.7 106.3 44.1 106.3 40.9 104.7 38.5 102.2 36.2 99.7 34.8 96.4 34.8 92.7 34.8 89 36.2 85.6 38.5 83.2 40.9 80.6 44.1 79.1 47.7 79.1 51.3 79.1 54.5 80.6 56.9 83.2Z" fill="rgb(1,22,39)" fill-opacity="0.2"/></g></svg>
|
package/quasar.config.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* eslint-env node */
|
|
2
|
+
|
|
3
|
+
import { configure } from 'quasar/wrappers'
|
|
4
|
+
import { readFileSync } from 'fs'
|
|
5
|
+
import { fileURLToPath } from 'url'
|
|
6
|
+
import { dirname, resolve } from 'path'
|
|
7
|
+
import HJSON from 'hjson'
|
|
8
|
+
|
|
9
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
10
|
+
const __dirname = dirname(__filename)
|
|
11
|
+
|
|
12
|
+
export default configure((/* ctx */) => {
|
|
13
|
+
return {
|
|
14
|
+
boot: [
|
|
15
|
+
'store',
|
|
16
|
+
'QZoom',
|
|
17
|
+
'i18n',
|
|
18
|
+
'axios'
|
|
19
|
+
],
|
|
20
|
+
|
|
21
|
+
css: [
|
|
22
|
+
'app.sass'
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
extras: [
|
|
26
|
+
'fontawesome-v5',
|
|
27
|
+
'roboto-font',
|
|
28
|
+
'material-icons'
|
|
29
|
+
],
|
|
30
|
+
|
|
31
|
+
build: {
|
|
32
|
+
target: {
|
|
33
|
+
browser: ['es2022', 'firefox115', 'chrome115', 'safari14'],
|
|
34
|
+
node: 'node20'
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
vueRouterMode: 'history',
|
|
38
|
+
|
|
39
|
+
vitePlugins: [
|
|
40
|
+
// HJSON loader plugin
|
|
41
|
+
{
|
|
42
|
+
name: 'vite-plugin-hjson',
|
|
43
|
+
transform (code, id) {
|
|
44
|
+
if (id.endsWith('.hjson')) {
|
|
45
|
+
const parsed = HJSON.parse(readFileSync(id, 'utf-8'))
|
|
46
|
+
return {
|
|
47
|
+
code: `export default ${JSON.stringify(parsed, null, 2)};`,
|
|
48
|
+
map: null
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
|
|
55
|
+
extendViteConf (viteConf) {
|
|
56
|
+
viteConf.resolve = viteConf.resolve || {}
|
|
57
|
+
viteConf.resolve.alias = viteConf.resolve.alias || {}
|
|
58
|
+
viteConf.resolve.alias['docsector.config.js'] = resolve(__dirname, 'docsector.config.js')
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
devServer: {
|
|
63
|
+
port: 8181,
|
|
64
|
+
open: false
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
framework: {
|
|
68
|
+
config: {},
|
|
69
|
+
lang: 'en-US',
|
|
70
|
+
plugins: [
|
|
71
|
+
'LocalStorage', 'SessionStorage'
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
animations: ['zoomIn', 'zoomOut'],
|
|
76
|
+
|
|
77
|
+
pwa: {
|
|
78
|
+
workboxMode: 'GenerateSW',
|
|
79
|
+
manifest: {
|
|
80
|
+
name: 'Docsector Documentation System',
|
|
81
|
+
short_name: 'Docsector Docs',
|
|
82
|
+
description: 'Streamline your documentation process with Docsector.',
|
|
83
|
+
display: 'standalone',
|
|
84
|
+
orientation: 'portrait',
|
|
85
|
+
background_color: '#ffffff',
|
|
86
|
+
theme_color: '#655529',
|
|
87
|
+
icons: [
|
|
88
|
+
{
|
|
89
|
+
src: 'icons/icon-128x128.png',
|
|
90
|
+
sizes: '128x128',
|
|
91
|
+
type: 'image/png'
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
src: 'icons/icon-192x192.png',
|
|
95
|
+
sizes: '192x192',
|
|
96
|
+
type: 'image/png'
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
src: 'icons/icon-256x256.png',
|
|
100
|
+
sizes: '256x256',
|
|
101
|
+
type: 'image/png'
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
src: 'icons/icon-384x384.png',
|
|
105
|
+
sizes: '384x384',
|
|
106
|
+
type: 'image/png'
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
src: 'icons/icon-512x512.png',
|
|
110
|
+
sizes: '512x512',
|
|
111
|
+
type: 'image/png'
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
})
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<router-view />
|
|
3
|
+
|
|
4
|
+
<q-dialog id="settings" v-model="toogleDialog" :maximized="$q.platform.is.mobile ? true : false">
|
|
5
|
+
<q-layout
|
|
6
|
+
view="Lhh lpR fff"
|
|
7
|
+
container
|
|
8
|
+
:class="$q.dark.isActive ? 'bg-dark' : 'bg-white'"
|
|
9
|
+
:style="$q.platform.is.mobile ? '' : 'max-height: 450px'"
|
|
10
|
+
>
|
|
11
|
+
<q-header class="d-header" elevated>
|
|
12
|
+
<q-toolbar class="q-pr-none">
|
|
13
|
+
<q-icon name="settings" style="font-size: 1.5rem" />
|
|
14
|
+
<q-toolbar-title>{{ $t('menu.settings') }}</q-toolbar-title>
|
|
15
|
+
<q-btn class="filled" v-close-popup text-color="white" icon="close" />
|
|
16
|
+
</q-toolbar>
|
|
17
|
+
</q-header>
|
|
18
|
+
<q-page-container>
|
|
19
|
+
<q-page>
|
|
20
|
+
<q-list>
|
|
21
|
+
<q-item>
|
|
22
|
+
<q-item-section>
|
|
23
|
+
<q-item-label header>{{ $t('settings.general._') }}</q-item-label>
|
|
24
|
+
</q-item-section>
|
|
25
|
+
</q-item>
|
|
26
|
+
<q-item dense>
|
|
27
|
+
<q-item-section avatar>
|
|
28
|
+
<q-icon name="language" class="q-pl-sm" />
|
|
29
|
+
</q-item-section>
|
|
30
|
+
<q-item-section>
|
|
31
|
+
<q-select
|
|
32
|
+
v-model="settings.general.language.default" :options="settings.general.language.options"
|
|
33
|
+
stack-label dense outlined
|
|
34
|
+
emit-value map-options
|
|
35
|
+
:label="$t('settings.general.language._')"
|
|
36
|
+
options-selected-class="bg-primary text-white"
|
|
37
|
+
behavior="menu"
|
|
38
|
+
@update:model-value="setLanguage"
|
|
39
|
+
>
|
|
40
|
+
<template v-slot:option="scope">
|
|
41
|
+
<q-item v-bind="scope.itemProps">
|
|
42
|
+
<q-item-section avatar>
|
|
43
|
+
<q-img no-spinner :src="scope.opt.image" width="24px" height="24px" />
|
|
44
|
+
</q-item-section>
|
|
45
|
+
<q-item-section>
|
|
46
|
+
<q-item-label>{{ scope.opt.label }}</q-item-label>
|
|
47
|
+
</q-item-section>
|
|
48
|
+
</q-item>
|
|
49
|
+
</template>
|
|
50
|
+
<template v-slot:selected-item="scope">
|
|
51
|
+
<q-item @remove="scope.removeAtIndex(scope.index)" :tabindex="scope.tabindex">
|
|
52
|
+
<q-item-section avatar>
|
|
53
|
+
<q-img no-spinner :src="scope.opt.image" width="24px" height="24px" />
|
|
54
|
+
</q-item-section>
|
|
55
|
+
<q-item-section>
|
|
56
|
+
<q-item-label>{{ scope.opt.label }}</q-item-label>
|
|
57
|
+
</q-item-section>
|
|
58
|
+
</q-item>
|
|
59
|
+
</template>
|
|
60
|
+
</q-select>
|
|
61
|
+
</q-item-section>
|
|
62
|
+
</q-item>
|
|
63
|
+
|
|
64
|
+
<q-separator spaced />
|
|
65
|
+
|
|
66
|
+
<q-item>
|
|
67
|
+
<q-item-section>
|
|
68
|
+
<q-item-label header>{{ $t('settings.appearance._') }}</q-item-label>
|
|
69
|
+
</q-item-section>
|
|
70
|
+
</q-item>
|
|
71
|
+
|
|
72
|
+
<q-item dense>
|
|
73
|
+
<q-item-section avatar>
|
|
74
|
+
<q-icon name="format_color_fill" class="q-pl-sm" />
|
|
75
|
+
</q-item-section>
|
|
76
|
+
<q-item-section>
|
|
77
|
+
<q-select
|
|
78
|
+
v-model="settings.appearance.background.default" :options="settings.appearance.background.options"
|
|
79
|
+
stack-label dense outlined
|
|
80
|
+
emit-value map-options
|
|
81
|
+
:label="$t('settings.appearance.background._')"
|
|
82
|
+
behavior="menu"
|
|
83
|
+
options-selected-class="bg-primary text-white"
|
|
84
|
+
@update:model-value="setBackground"
|
|
85
|
+
>
|
|
86
|
+
<template v-slot:option="scope">
|
|
87
|
+
<q-item v-bind="scope.itemProps">
|
|
88
|
+
<q-item-section avatar>
|
|
89
|
+
<q-icon :name="scope.opt.icon" />
|
|
90
|
+
</q-item-section>
|
|
91
|
+
<q-item-section class="text-weight-bold">
|
|
92
|
+
<q-item-label>{{ scope.opt.label }}</q-item-label>
|
|
93
|
+
</q-item-section>
|
|
94
|
+
</q-item>
|
|
95
|
+
</template>
|
|
96
|
+
<template v-slot:selected-item="scope">
|
|
97
|
+
<q-item @remove="scope.removeAtIndex(scope.index)" :tabindex="scope.tabindex">
|
|
98
|
+
<q-item-section avatar>
|
|
99
|
+
<q-icon :name="scope.opt.icon" />
|
|
100
|
+
</q-item-section>
|
|
101
|
+
<q-item-section>
|
|
102
|
+
<q-item-label>{{ scope.opt.label }}</q-item-label>
|
|
103
|
+
</q-item-section>
|
|
104
|
+
</q-item>
|
|
105
|
+
</template>
|
|
106
|
+
</q-select>
|
|
107
|
+
</q-item-section>
|
|
108
|
+
</q-item>
|
|
109
|
+
</q-list>
|
|
110
|
+
</q-page>
|
|
111
|
+
</q-page-container>
|
|
112
|
+
</q-layout>
|
|
113
|
+
</q-dialog>
|
|
114
|
+
</template>
|
|
115
|
+
|
|
116
|
+
<script setup>
|
|
117
|
+
import { reactive, computed, onMounted } from 'vue'
|
|
118
|
+
import { useQuasar } from 'quasar'
|
|
119
|
+
import { useStore } from 'vuex'
|
|
120
|
+
import { useI18n } from 'vue-i18n'
|
|
121
|
+
import { useRouter } from 'vue-router'
|
|
122
|
+
|
|
123
|
+
import docsectorConfig from 'docsector.config.js'
|
|
124
|
+
|
|
125
|
+
defineOptions({ name: 'App' })
|
|
126
|
+
|
|
127
|
+
const $q = useQuasar()
|
|
128
|
+
const store = useStore()
|
|
129
|
+
const { locale } = useI18n()
|
|
130
|
+
const router = useRouter()
|
|
131
|
+
|
|
132
|
+
const settings = reactive({
|
|
133
|
+
general: {
|
|
134
|
+
language: {
|
|
135
|
+
default: $q.localStorage.getItem('setting.language'),
|
|
136
|
+
options: docsectorConfig.languages || [
|
|
137
|
+
{
|
|
138
|
+
image: '/images/flags/united-states-of-america.png',
|
|
139
|
+
label: 'English (US)',
|
|
140
|
+
value: 'en-US'
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
image: '/images/flags/brazil.png',
|
|
144
|
+
label: 'Português (BR)',
|
|
145
|
+
value: 'pt-BR'
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
appearance: {
|
|
151
|
+
background: {
|
|
152
|
+
default: $q.localStorage.getItem('setting.background'),
|
|
153
|
+
options: [
|
|
154
|
+
{
|
|
155
|
+
icon: 'light_mode',
|
|
156
|
+
label: 'Modo Claro',
|
|
157
|
+
value: false
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
icon: 'dark_mode',
|
|
161
|
+
label: 'Modo Escuro',
|
|
162
|
+
value: true
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
})
|
|
168
|
+
|
|
169
|
+
const toogleDialog = computed({
|
|
170
|
+
get () {
|
|
171
|
+
return store.getters['settings/dialog']
|
|
172
|
+
},
|
|
173
|
+
set (value) {
|
|
174
|
+
store.commit('settings/dialog', value)
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
|
|
178
|
+
// Language
|
|
179
|
+
function setLanguage (language) {
|
|
180
|
+
$q.localStorage.set('setting.language', language)
|
|
181
|
+
|
|
182
|
+
store.commit('page/resetAnchors')
|
|
183
|
+
store.commit('page/resetNodes')
|
|
184
|
+
|
|
185
|
+
locale.value = language
|
|
186
|
+
|
|
187
|
+
router.go()
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Background
|
|
191
|
+
function setBackground (mode) {
|
|
192
|
+
$q.localStorage.set('setting.background', mode)
|
|
193
|
+
$q.dark.set(mode)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
onMounted(() => {
|
|
197
|
+
const defaultLang = docsectorConfig.defaultLanguage || 'en-US'
|
|
198
|
+
|
|
199
|
+
// Language
|
|
200
|
+
let loc = $q.localStorage.getItem('setting.language')
|
|
201
|
+
if (loc === null) {
|
|
202
|
+
loc = defaultLang
|
|
203
|
+
$q.localStorage.set('setting.language', loc)
|
|
204
|
+
settings.general.language.default = loc
|
|
205
|
+
}
|
|
206
|
+
locale.value = loc
|
|
207
|
+
|
|
208
|
+
// Background
|
|
209
|
+
let dark = $q.localStorage.getItem('setting.background')
|
|
210
|
+
if (dark === null) {
|
|
211
|
+
dark = false
|
|
212
|
+
$q.localStorage.set('setting.background', dark)
|
|
213
|
+
settings.appearance.background.default = dark
|
|
214
|
+
}
|
|
215
|
+
$q.dark.set(dark)
|
|
216
|
+
})
|
|
217
|
+
</script>
|
|
218
|
+
|
|
219
|
+
<style lang="sass">
|
|
220
|
+
#settings
|
|
221
|
+
.q-select
|
|
222
|
+
.q-field__append, .q-field--dense .q-field__marginal
|
|
223
|
+
height: 63px !important
|
|
224
|
+
.q-item
|
|
225
|
+
padding: 8px 0
|
|
226
|
+
.q-item__section--side
|
|
227
|
+
padding-right: 12px
|
|
228
|
+
.q-item__section--avatar
|
|
229
|
+
min-width: 24px
|
|
230
|
+
.q-menu
|
|
231
|
+
.q-item__section--side
|
|
232
|
+
padding-right: 12px
|
|
233
|
+
.q-item__section--avatar
|
|
234
|
+
min-width: 24px
|
|
235
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { boot } from 'quasar/wrappers'
|
|
2
|
+
import axios from 'axios'
|
|
3
|
+
|
|
4
|
+
const api = axios.create({ baseURL: 'https://api.example.com' })
|
|
5
|
+
|
|
6
|
+
export default boot(({ app }) => {
|
|
7
|
+
app.config.globalProperties.$axios = axios
|
|
8
|
+
app.config.globalProperties.$api = api
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
export { api }
|
package/src/boot/i18n.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { boot } from 'quasar/wrappers'
|
|
2
|
+
import { createI18n } from 'vue-i18n'
|
|
3
|
+
|
|
4
|
+
import messages from 'src/i18n'
|
|
5
|
+
|
|
6
|
+
export default boot(({ app }) => {
|
|
7
|
+
const i18n = createI18n({
|
|
8
|
+
legacy: false,
|
|
9
|
+
locale: 'en-US',
|
|
10
|
+
messages
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
// Set i18n instance on app
|
|
14
|
+
app.use(i18n)
|
|
15
|
+
})
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { boot } from 'quasar/wrappers'
|
|
2
|
+
import { createStore } from 'vuex'
|
|
3
|
+
|
|
4
|
+
import app from '../store/App'
|
|
5
|
+
import i18n from '../store/I18n'
|
|
6
|
+
import layout from '../store/Layout'
|
|
7
|
+
import page from '../store/Page'
|
|
8
|
+
import settings from '../store/Settings'
|
|
9
|
+
|
|
10
|
+
const store = createStore({
|
|
11
|
+
modules: {
|
|
12
|
+
app,
|
|
13
|
+
i18n,
|
|
14
|
+
page,
|
|
15
|
+
layout,
|
|
16
|
+
settings
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
strict: process.env.DEBUGGING
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
export default boot(({ app: vueApp }) => {
|
|
23
|
+
vueApp.use(store)
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
export { store }
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onMounted, onUpdated } from 'vue'
|
|
3
|
+
import { useStore } from 'vuex'
|
|
4
|
+
import { useI18n } from "vue-i18n";
|
|
5
|
+
|
|
6
|
+
import useNavigator from 'src/composables/useNavigator'
|
|
7
|
+
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
id: {
|
|
10
|
+
type: Number,
|
|
11
|
+
required: true
|
|
12
|
+
}
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const store = useStore()
|
|
16
|
+
const { register, navigate } = useNavigator()
|
|
17
|
+
const { t } = useI18n()
|
|
18
|
+
|
|
19
|
+
const heading = computed(() => {
|
|
20
|
+
const base = store.state.i18n.base
|
|
21
|
+
const absolute = store.state.i18n.absolute
|
|
22
|
+
|
|
23
|
+
let h = ''
|
|
24
|
+
if (base && absolute) {
|
|
25
|
+
h = t(`_.${base}._`)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return h
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
onMounted(() => {
|
|
32
|
+
register(props.id)
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
onUpdated(() => {
|
|
36
|
+
register(props.id)
|
|
37
|
+
})
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
41
|
+
<h1 :id="id" @click="navigate(id)" v-html="heading"></h1>
|
|
42
|
+
</template>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { watch, onMounted, onUpdated } from 'vue'
|
|
3
|
+
|
|
4
|
+
import useNavigator from 'src/composables/useNavigator'
|
|
5
|
+
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
id: {
|
|
8
|
+
type: Number,
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
value: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const { register, index, navigate, selected } = useNavigator()
|
|
18
|
+
|
|
19
|
+
watch(() => props.value, (val) => {
|
|
20
|
+
selected.value = val
|
|
21
|
+
}, { immediate: true })
|
|
22
|
+
|
|
23
|
+
onMounted(() => {
|
|
24
|
+
register(props.id)
|
|
25
|
+
index(props.id)
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
onUpdated(() => {
|
|
29
|
+
register(props.id)
|
|
30
|
+
index(props.id)
|
|
31
|
+
})
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<h2 :id="id" @click="navigate(id)" v-html="value"></h2>
|
|
36
|
+
</template>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { watch, onMounted, onUpdated } from 'vue'
|
|
3
|
+
|
|
4
|
+
import useNavigator from 'src/composables/useNavigator'
|
|
5
|
+
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
id: {
|
|
8
|
+
type: Number,
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
value: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const { register, index, navigate, selected } = useNavigator()
|
|
18
|
+
|
|
19
|
+
watch(() => props.value, (val) => {
|
|
20
|
+
selected.value = val
|
|
21
|
+
}, { immediate: true })
|
|
22
|
+
|
|
23
|
+
onMounted(() => {
|
|
24
|
+
register(props.id)
|
|
25
|
+
index(props.id, true)
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
onUpdated(() => {
|
|
29
|
+
register(props.id)
|
|
30
|
+
index(props.id, true)
|
|
31
|
+
})
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<h3 :id="id" @click="navigate(id)" v-html="value"></h3>
|
|
36
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { watch } from 'vue'
|
|
3
|
+
|
|
4
|
+
import useNavigator from 'src/composables/useNavigator'
|
|
5
|
+
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
id: {
|
|
8
|
+
type: Number,
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
value: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const { navigate, selected } = useNavigator()
|
|
18
|
+
|
|
19
|
+
watch(() => props.value, (val) => {
|
|
20
|
+
selected.value = val
|
|
21
|
+
}, { immediate: true })
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<h4 :id="id" @click="navigate(id)" v-html="value"></h4>
|
|
26
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { watch } from 'vue'
|
|
3
|
+
|
|
4
|
+
import useNavigator from 'src/composables/useNavigator'
|
|
5
|
+
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
id: {
|
|
8
|
+
type: Number,
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
value: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const { navigate, selected } = useNavigator()
|
|
18
|
+
|
|
19
|
+
watch(() => props.value, (val) => {
|
|
20
|
+
selected.value = val
|
|
21
|
+
}, { immediate: true })
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<h5 :id="id" @click="navigate(id)" v-html="value"></h5>
|
|
26
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { watch } from 'vue'
|
|
3
|
+
|
|
4
|
+
import useNavigator from 'src/composables/useNavigator'
|
|
5
|
+
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
id: {
|
|
8
|
+
type: Number,
|
|
9
|
+
required: true
|
|
10
|
+
},
|
|
11
|
+
value: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const { navigate, selected } = useNavigator()
|
|
18
|
+
|
|
19
|
+
watch(() => props.value, (val) => {
|
|
20
|
+
selected.value = val
|
|
21
|
+
}, { immediate: true })
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<h6 :id="id" @click="navigate(id)" v-html="value"></h6>
|
|
26
|
+
</template>
|