forked from sombochea/verdaccio-ui
Compare commits
10 Commits
chore-html
...
master
Author | SHA1 | Date | |
---|---|---|---|
563a6677f6 | |||
c2c94929a7 | |||
484543dabc | |||
3c5fd072f0 | |||
35be83f560 | |||
ee9ef143d2 | |||
b06ae66961 | |||
57f45e7867 | |||
37e3574fb1 | |||
|
7e56c8e7e2 |
@ -3,7 +3,7 @@
|
||||
"files": null,
|
||||
"lines": null
|
||||
},
|
||||
"generated_at": "2019-09-29T18:19:50Z",
|
||||
"generated_at": "2020-05-05T12:14:08Z",
|
||||
"plugins_used": [
|
||||
{
|
||||
"name": "AWSKeyDetector"
|
||||
@ -23,6 +23,7 @@
|
||||
"name": "HexHighEntropyString"
|
||||
},
|
||||
{
|
||||
"keyword_exclude": null,
|
||||
"name": "KeywordDetector"
|
||||
},
|
||||
{
|
||||
@ -36,5 +37,9 @@
|
||||
}
|
||||
],
|
||||
"results": {},
|
||||
"version": "0.12.4"
|
||||
"version": "0.13.0",
|
||||
"word_list": {
|
||||
"file": null,
|
||||
"hash": null
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ import translationFR from './translations/fr-FR.json';
|
||||
import translationCN from './translations/zh-CN.json';
|
||||
import translationJP from './translations/ja-JP.json';
|
||||
import translationUA from './translations/uk-UA.json';
|
||||
import translationKM from './translations/km-KH.json';
|
||||
|
||||
const languages = {
|
||||
'en-US': {
|
||||
@ -35,6 +36,9 @@ const languages = {
|
||||
'uk-UA': {
|
||||
translation: translationUA,
|
||||
},
|
||||
'km-KH': {
|
||||
translation: translationKM,
|
||||
},
|
||||
};
|
||||
|
||||
type Language = keyof typeof languages;
|
||||
@ -48,7 +52,7 @@ i18n
|
||||
// in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US'
|
||||
lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language,
|
||||
fallbackLng: 'en-US',
|
||||
whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE', 'fr-FR', 'zh-CN', 'ja-JP', 'uk-UA'],
|
||||
whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE', 'fr-FR', 'zh-CN', 'ja-JP', 'uk-UA', 'km-KH'],
|
||||
load: 'currentOnly',
|
||||
resources: languages,
|
||||
debug: false,
|
||||
|
@ -144,7 +144,8 @@
|
||||
"german": "Deutsch",
|
||||
"chinese": "Chinesisch",
|
||||
"french": "Französisch",
|
||||
"ukraine": "Ukrainisch"
|
||||
"ukraine": "Ukrainisch",
|
||||
"khmer": "Khmer"
|
||||
},
|
||||
"help-to-translate": "Hilfe beim Übersetzen",
|
||||
"change-language": "Sprache ändern"
|
||||
|
@ -144,7 +144,8 @@
|
||||
"german": "German",
|
||||
"chinese": "Chinese",
|
||||
"french": "French",
|
||||
"ukraine": "Ukraine"
|
||||
"ukraine": "Ukraine",
|
||||
"khmer": "Khmer"
|
||||
},
|
||||
"help-to-translate": "Help to translate",
|
||||
"change-language": "Change language"
|
||||
|
@ -144,7 +144,8 @@
|
||||
"german": "Alemán",
|
||||
"chinese": "Chino",
|
||||
"french": "Francés",
|
||||
"ukraine": "Ucraniano"
|
||||
"ukraine": "Ucraniano",
|
||||
"khmer": "Khmer"
|
||||
},
|
||||
"help-to-translate": "Ayuda a traducir",
|
||||
"change-language": "Cambiar idioma"
|
||||
|
@ -144,7 +144,8 @@
|
||||
"german": "Allemand",
|
||||
"chinese": "Chinois",
|
||||
"french": "Français",
|
||||
"ukraine": "Ukrainien"
|
||||
"ukraine": "Ukrainien",
|
||||
"khmer": "Khmer"
|
||||
},
|
||||
"help-to-translate": "Aide à la traduction",
|
||||
"change-language": "Changer la langue"
|
||||
|
@ -144,7 +144,8 @@
|
||||
"german": "ドイツ語",
|
||||
"chinese": "中国語",
|
||||
"french": "フランス語",
|
||||
"ukraine": "ウクライナ"
|
||||
"ukraine": "ウクライナ",
|
||||
"khmer": "Khmer"
|
||||
},
|
||||
"help-to-translate": "翻訳を助ける",
|
||||
"change-language": "言語を変更"
|
||||
|
152
i18n/translations/km-KH.json
Normal file
152
i18n/translations/km-KH.json
Normal file
@ -0,0 +1,152 @@
|
||||
{
|
||||
"copy-to-clipboard": "ចម្លងទៅក្ដារតម្បៀតខ្ទាស់",
|
||||
"author-anonymous": "គ្មានអត្តសញ្ញាណ",
|
||||
"action-bar-action": {
|
||||
"visit-home-page": "ទស្សនាគេហទំព័រ",
|
||||
"open-an-issue": "បើកកិច្ចការ",
|
||||
"download-tarball": "ទាញយកកញ្ចប់ឯកសារ"
|
||||
},
|
||||
"dialog": {
|
||||
"registry-info": {
|
||||
"title": "ព័ត៌មានការចុះឈ្មោះ"
|
||||
}
|
||||
},
|
||||
"header": {
|
||||
"documentation": "ឯកសារ",
|
||||
"registry-info": "ព័ត៌មានការចុះឈ្មោះ",
|
||||
"greetings": "សួស្តី"
|
||||
},
|
||||
"search": {
|
||||
"packages": "ស្វែងរកកញ្ចប់"
|
||||
},
|
||||
"auto-complete": {
|
||||
"loading": "កំពុងផ្ទុក...",
|
||||
"no-results-found": "រកមិនឃើញលទ្ធផល"
|
||||
},
|
||||
"tab": {
|
||||
"uplinks": "ភ្ជាប់តំណទៅ",
|
||||
"versions": "កំណែ",
|
||||
"dependencies": "អាស្រ័យលើ",
|
||||
"readme": "អានខ្ញុំជាមុនសិន"
|
||||
},
|
||||
"uplinks": {
|
||||
"title": "ភ្ជាប់តំណទៅ",
|
||||
"no-items": "{{name}} គ្មានភ្ជាប់តំណទៅ។"
|
||||
},
|
||||
"versions": {
|
||||
"current-tags": "ស្លាកបច្ចុប្បន្ន",
|
||||
"version-history": "ប្រវត្តិសាស្រ្តជំនាន់",
|
||||
"not-available": "Not available"
|
||||
},
|
||||
"package": {
|
||||
"published-on": "បោះពុម្ភផ្សាយ {{time}}។",
|
||||
"version": "v{{version}}",
|
||||
"visit-home-page": "ទស្សនាគេហទំព័រ",
|
||||
"homepage": "គេហទំព័រ",
|
||||
"open-an-issue": "បើកកិច្ចការ",
|
||||
"bugs": "កំហុស",
|
||||
"download": "ទាញយក {{what}}",
|
||||
"the-tar-file": "ឯកសាជា tar",
|
||||
"tarball": "ឯកសារ Tarball"
|
||||
},
|
||||
"dependencies": {
|
||||
"has-no-dependencies": "{{package}} មិនមានភាពអាស្រ័យ។",
|
||||
"dependency-block": "{{package}}@{{version}}"
|
||||
},
|
||||
"form": {
|
||||
"username": "ឈ្មោះអ្នកប្រើប្រាស់",
|
||||
"password": "ពាក្យសម្ងាត់"
|
||||
},
|
||||
"form-placeholder": {
|
||||
"username": "ឈ្មោះអ្នកប្រើរបស់អ្នក",
|
||||
"password": "ពាក្យសម្ងាត់ខ្លាំងរបស់អ្នក"
|
||||
},
|
||||
"form-validation": {
|
||||
"required-field": "ចន្លោះនេះត្រូវតែំពេញ",
|
||||
"required-min-length": "ប្រអប់នេះទាមទារប្រវែងអប្បបរមា {{length}}",
|
||||
"unable-to-sign-in": "មិនអាចចូលបានទេ",
|
||||
"username-or-password-cant-be-empty": "ឈ្មោះអ្នកប្រើឬពាក្យសម្ងាត់មិនអាចទទេ!"
|
||||
},
|
||||
"help": {
|
||||
"title": "មិនទាន់មានការបោះពុម្ពផ្សាយកញ្ចប់នៅឡើយទេ។",
|
||||
"sub-title": "ដើម្បីផ្សព្វផ្សាយកញ្ចប់ដំបូងរបស់អ្នកគ្រាន់តែ៖",
|
||||
"first-step": "1. ចូល",
|
||||
"first-step-command-line": "npm adduser --registry {{registryUrl}}",
|
||||
"second-step": "2. ផ្សព្វផ្សាយ",
|
||||
"second-step-command-line": "npm publish --registry {{registryUrl}}",
|
||||
"third-step": "ផ្ទុកទំព័រនេះឡើងវិញ។"
|
||||
},
|
||||
"sidebar": {
|
||||
"detail": {
|
||||
"latest-version": "ចុងក្រោយ v{{version}}",
|
||||
"version": "v{{version}}"
|
||||
},
|
||||
"installation": {
|
||||
"title": "ការដំឡើង",
|
||||
"install-using-yarn": "ដំឡើងដោយប្រើ yarn",
|
||||
"install-using-yarn-command": "yarn add {{packageName}}",
|
||||
"install-using-npm": "ដំឡើងដោយប្រើ npm",
|
||||
"install-using-npm-command": "npm install {{packageName}}",
|
||||
"install-using-pnpm": "ដំឡើងដោយប្រើ pnpm",
|
||||
"install-using-pnpm-command": "pnpm install {{packageName}}"
|
||||
},
|
||||
"repository": {
|
||||
"title": "ឃ្លាំង"
|
||||
},
|
||||
"author": {
|
||||
"title": "អ្នកនិពន្ធ"
|
||||
},
|
||||
"distribution": {
|
||||
"title": "ការចែកចាយចុងក្រោយ",
|
||||
"license": "អាជ្ញាប័ណ្ណ",
|
||||
"size": "ទំហំ",
|
||||
"file-count": "រាប់ឯកសារ"
|
||||
},
|
||||
"maintainers": {
|
||||
"title": "អ្នកថែរក្សា"
|
||||
},
|
||||
"contributors": {
|
||||
"title": "អ្នកចូលរួមអភិវឌ្ឍ"
|
||||
},
|
||||
"engines": {
|
||||
"npm-version": "NPM កំណែ",
|
||||
"node-js": "NODE JS"
|
||||
}
|
||||
},
|
||||
"footer": {
|
||||
"powered-by": "ឧបត្ថម្ភដោយ",
|
||||
"made-with-love-on": "ផលិតជាមួយ <0>♥</0> លើ"
|
||||
},
|
||||
"button": {
|
||||
"close": "បិទ",
|
||||
"cancel": "បោះបង់",
|
||||
"login": "ចូល",
|
||||
"logout": "ចាកចេញ",
|
||||
"go-to-the-home-page": "ទៅទំព័រដើម",
|
||||
"learn-more": "ស្វែងយល់បន្ថែម",
|
||||
"fund-this-package": "<0>Fund</0> កញ្ចប់នេះ"
|
||||
},
|
||||
"error": {
|
||||
"unspecific": "មានអ្វីមួយមិនប្រក្រតី។",
|
||||
"404": {
|
||||
"page-not-found": "៤០៤ - រកមិនឃើញទំព័រ",
|
||||
"sorry-we-could-not-find-it": "សូមទោសយើងមិនអាចរកវាឃើញទេ..."
|
||||
},
|
||||
"app-context-not-correct-used": "បរិបទកម្មវិធីមិនត្រូវបានប្រើត្រឹមត្រូវទេ",
|
||||
"theme-context-not-correct-used": "បរិបទទម្រង់មិនត្រូវបានប្រើត្រឹមត្រូវទេ",
|
||||
"package-meta-is-required-at-detail-context": "packageMeta ត្រូវបានទាមទារនៅ DetailContext"
|
||||
},
|
||||
"lng": {
|
||||
"english": "អង់គ្លេស",
|
||||
"japanese": "ជប៉ុន",
|
||||
"portuguese": "ព័រទុយហ្កាល់",
|
||||
"spanish": "អេស្ប៉ាញ",
|
||||
"german": "អាឡឺម៉ង់",
|
||||
"chinese": "ចិន",
|
||||
"french": "បារាំង",
|
||||
"ukraine": "អ៊ុយក្រែន",
|
||||
"khmer": "ខ្មែរ"
|
||||
},
|
||||
"help-to-translate": "ជួយបកប្រែ",
|
||||
"change-language": "ប្ដូរភាសា"
|
||||
}
|
@ -144,7 +144,8 @@
|
||||
"german": "Alemão",
|
||||
"chinese": "Chinês",
|
||||
"french": "Francês",
|
||||
"ukraine": "Ucraniano"
|
||||
"ukraine": "Ucraniano",
|
||||
"khmer": "Khmer"
|
||||
},
|
||||
"help-to-translate": "Ajude a traduzir",
|
||||
"change-language": "Mudar idioma"
|
||||
|
@ -144,7 +144,8 @@
|
||||
"german": "Німецька",
|
||||
"chinese": "Китайська",
|
||||
"french": "Французька",
|
||||
"ukraine": "Українська"
|
||||
"ukraine": "Українська",
|
||||
"khmer": "Khmer"
|
||||
},
|
||||
"help-to-translate": "Допоможіть перекласти",
|
||||
"change-language": "Змінити мову"
|
||||
|
@ -143,7 +143,8 @@
|
||||
"german": "德语",
|
||||
"chinese": "中文",
|
||||
"french": "法语",
|
||||
"ukraine": "烏克蘭"
|
||||
"ukraine": "烏克蘭",
|
||||
"khmer": "Khmer"
|
||||
},
|
||||
"help-to-translate": "幫助翻译",
|
||||
"change-language": "改变语言"
|
||||
|
@ -19,8 +19,6 @@
|
||||
"@commitlint/config-conventional": "8.3.4",
|
||||
"@emotion/core": "10.0.22",
|
||||
"@emotion/styled": "10.0.23",
|
||||
"@htmllinter/basic-standard": "0.0.2",
|
||||
"@htmllinter/core": "0.0.1",
|
||||
"@material-ui/core": "4.8.0",
|
||||
"@material-ui/icons": "4.5.1",
|
||||
"@octokit/rest": "16.35.2",
|
||||
@ -179,7 +177,6 @@
|
||||
"test:size": "bundlesize",
|
||||
"lint": "npm run lint:js && npm run lint:css && npm run lint:lockfile",
|
||||
"lint:js": "npm run type-check && eslint . --ext .js,.ts,.tsx",
|
||||
"lint:html": "htmllinter src/template/index.html",
|
||||
"lint:css": "stylelint \"src/**/styles.ts\"",
|
||||
"lint:lockfile": "lockfile-lint --path yarn.lock --type yarn --validate-https --allowed-hosts verdaccio npm yarn",
|
||||
"coverage:publish": "codecov",
|
||||
|
@ -15,6 +15,7 @@ import usa from './img/usa.svg';
|
||||
import france from './img/france.svg';
|
||||
import japan from './img/japan.svg';
|
||||
import ukraine from './img/ukraine.svg';
|
||||
import khmer from './img/khmer.svg';
|
||||
import earth from './img/earth.svg';
|
||||
import verdaccio from './img/verdaccio.svg';
|
||||
import filebinary from './img/filebinary.svg';
|
||||
@ -36,6 +37,7 @@ export interface IconsMap {
|
||||
india: string;
|
||||
japan: string;
|
||||
ukraine: string;
|
||||
khmer: string;
|
||||
earth: string;
|
||||
verdaccio: string;
|
||||
license: string;
|
||||
@ -66,6 +68,7 @@ export const Icons: IconsMap = {
|
||||
france,
|
||||
japan,
|
||||
ukraine,
|
||||
khmer,
|
||||
};
|
||||
|
||||
export interface Props {
|
||||
|
1
src/components/Icon/img/khmer.svg
Normal file
1
src/components/Icon/img/khmer.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="khmer"><g fill="#032ea1"><path d="M0 304.8v64.8a48.3 48.3 0 0048 48.8h400c26.4 0 48-21.6 48-48.8v-64.8H0zM448 77.6H48c-26.4 0-48 21.6-48 48.8v64.8h496v-64.8a48.3 48.3 0 00-48-48.8z"/></g><path fill="#e00025" d="M0 189.6h496v116H0z"/><g fill="#042a7f"><path d="M448 418.4c26.4 0 48-21.6 48-48.8v-64.8H315.2L448 418.4zM448 77.6H48l132.8 113.6H496v-64.8a48.3 48.3 0 00-48-48.8z"/></g><path fill="#b50030" d="M316 306.4h180V189.6H180z"/><path fill="#002566" d="M448 77.6H48l370.4 113.6H496v-64.8a48.3 48.3 0 00-48-48.8z"/><path fill="#8c002b" d="M496 214.4v-24.8h-81.6z"/><path fill="#002566" d="M496 369.6a48.3 48.3 0 01-48 48.8H48c-26.4 0-48-21.6-48-48.8"/><g fill="#fff"><path d="M249.6 200s0-2.4-1.6-2.4-1.6 2.4-1.6 2.4h3.2zM321.6 290.4v-7.2h-24 20v-6.4h-4V272h-16H312v-4h-3.2c-.8-.8-2.4-1.6-2.4-3.2v-12c.8-1.6 1.6-3.2 2.4-3.2v-11.2c-1.6 0-2.4 1.6-2.4 1.6v-4.8h-1.6v9.6-6.4h-2.4 2.4v-1.6h-2.4v-5.6c-.8 0-.8 2.4-2.4 2.4-.8 0-.8-.8 0-1.6s.8-1.6 0-4c-.8 1.6-1.6 1.6-1.6.8.8-1.6 1.6-1.6.8-4 0 2.4-1.6 2.4-1.6.8 0-1.6.8-1.6 0-4-.8 2.4-1.6 2.4-1.6.8 0-2.4 0-4-2.4-4.8 0 0 0-1.6-.8-1.6s-.8 1.6-.8 1.6c-2.4.8-2.4 3.2-2.4 4.8s-.8 1.6-1.6-.8c-.8 1.6 0 2.4 0 4s-.8 1.6-1.6-.8c-.8 2.4 0 2.4.8 4 0 .8-.8.8-1.6-.8-.8 1.6 0 3.2 0 4 .8.8.8 1.6 0 1.6-1.6 0-1.6-2.4-2.4-2.4v9.6H280v-.8h-1.6v.8H264V232c-1.6.8-1.6 1.6-1.6 1.6v7.2-5.6h-1.6s-.8 0-.8-1.6.8-2.4 1.6-2.4V228s-3.2 0-3.2 4v-3.2c-.8 0-.8.8-.8 4h-2.4 1.6v-3.2c0-1.6 1.6-1.6 1.6-3.2V224c-.8 2.4-1.6 1.6-1.6.8s.8-1.6 2.4-4c.8-.8 0-2.4-.8-3.2 0 1.6-.8 2.4-1.6 2.4s-.8 0-.8-1.6c0-.8.8-1.6.8-3.2.8-1.6 0-2.4-.8-3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1.6-1.6 1.6-3.2V224c-.8 2.4-1.6 1.6-1.6.8s.8-1.6 2.4-4c.8-.8 0-2.4-.8-3.2 0 1.6-.8 2.4-1.6 2.4s-.8 0-.8-1.6c0-.8.8-1.6.8-3.2.8-1.6 0-2.4-.8-3.2 0 1.6 0 2.4-.8 2.4-1.6-.8 0-3.2 0-3.2 0-.8-.8-2.4-.8-2.4-.8 1.6-.8 1.6-1.6 1.6s-.8-1.6 0-2.4c.8-.8.8-1.6 0-1.6-.8 1.6-1.6.8-1.6 0l.8-2.4h-10.4l.8 2.4c0 .8-.8.8-1.6 0-.8.8-.8 1.6 0 1.6.8.8.8 1.6 0 2.4-.8 0-.8 0-1.6-1.6 0 0-.8 1.6-.8 2.4 0 .8 1.6 3.2 0 3.2-.8 0-.8-.8-.8-2.4-.8.8-.8 1.6-.8 3.2 0 .8.8 1.6.8 3.2 0 .8-.8 1.6-.8 1.6-.8 0-.8-.8-1.6-2.4-.8.8-.8 3.2-.8 3.2 1.6 2.4 2.4 3.2 2.4 4s-.8 1.6-1.6-.8c-.8.8 0 2.4 0 2.4 0 1.6 1.6 1.6 1.6 3.2v3.2h-.8c0-3.2 0-4-.8-4v3.2c0-3.2-3.2-3.2-3.2-3.2v3.2c.8 0 1.6.8 1.6 2.4s-.8 1.6-.8 1.6h-1.6l42.4 36.8H288h-12l31.2 26.4h19.2V292h-4v-8.8h-.8zm-19.2-36v.8-.8zm-3.2.8h4-4zm-12 .8h-4 4zM248 197.6c-1.6 0-1.6 2.4-1.6 2.4h2.4c.8 0 .8-2.4-.8-2.4z"/><path d="M243.2 203.2v2.4h9.6v-2.4zM252 203.2v-1.6h-8v1.6zM250.4 201.6V200h-4.8v1.6z"/></g></svg>
|
After Width: | Height: | Size: 4.6 KiB |
@ -64,6 +64,11 @@ const getTranslatedCurrentLanguageDetails = (
|
||||
translation: t('lng.ukraine'),
|
||||
icon: 'ukraine',
|
||||
};
|
||||
case 'km-KH':
|
||||
return {
|
||||
translation: t('lng.khmer'),
|
||||
icon: 'khmer',
|
||||
};
|
||||
default:
|
||||
return {
|
||||
translation: t('lng.english'),
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { SyntheticEvent } from 'react';
|
||||
|
||||
import { copyToClipBoardUtility } from './cli-utils';
|
||||
import { copyToClipBoardUtility, getCLISetConfigRegistry } from './cli-utils';
|
||||
|
||||
describe('copyToClipBoardUtility', () => {
|
||||
let originalGetSelection;
|
||||
@ -47,3 +47,18 @@ describe('copyToClipBoardUtility', () => {
|
||||
expect(spys.removeChild).toHaveBeenCalledWith(expectedDiv);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getCLISetRegistry', () => {
|
||||
const command = 'npm set';
|
||||
const scope = '@testscope';
|
||||
const blankScope = '';
|
||||
const url = 'https://test.local';
|
||||
|
||||
test('should return ":" separated string when scope is set', () => {
|
||||
expect(getCLISetConfigRegistry(command, scope, url)).toEqual(`${command} ${scope}:registry ${url}`);
|
||||
});
|
||||
|
||||
test('should not output scope when scope is not set', () => {
|
||||
expect(getCLISetConfigRegistry(command, blankScope, url)).toEqual(`${command} registry ${url}`);
|
||||
});
|
||||
});
|
||||
|
@ -21,7 +21,8 @@ export const copyToClipBoardUtility = (str: string): ((e: SyntheticEvent<HTMLEle
|
||||
};
|
||||
|
||||
export function getCLISetConfigRegistry(command: string, scope: string, registryUrl: string): string {
|
||||
return `${command} ${scope}registry ${registryUrl}`;
|
||||
// if there is a scope defined there needs to be a ":" separator between the scope and the registry
|
||||
return `${command} ${scope}${scope !== '' ? ':' : ''}registry ${registryUrl}`;
|
||||
}
|
||||
|
||||
export function getCLISetRegistry(command: string, registryUrl: string): string {
|
||||
|
54
yarn.lock
54
yarn.lock
@ -1731,23 +1731,6 @@
|
||||
dependencies:
|
||||
"@hapi/hoek" "^8.3.0"
|
||||
|
||||
"@htmllinter/basic-standard@0.0.2":
|
||||
version "0.0.2"
|
||||
resolved "https://registry.verdaccio.org/@htmllinter%2fbasic-standard/-/basic-standard-0.0.2.tgz#55ed8653793b5c8cf5ae9f021372438d534d8d0a"
|
||||
integrity sha512-g2wtMFQ6frAatS7g/PKjH7R2lnAJUJR9y9hXVUZlVQiNRINI2uDRGrLm0ejrAUI4za1cgT6VXnAyccn2OxufYw==
|
||||
dependencies:
|
||||
"@htmllinter/core" "^0.1.1"
|
||||
|
||||
"@htmllinter/core@0.0.1", "@htmllinter/core@^0.1.1":
|
||||
version "0.0.1"
|
||||
resolved "https://registry.verdaccio.org/@htmllinter%2fcore/-/core-0.0.1.tgz#b519e3260b66576758357d8b4f8f447053a15184"
|
||||
integrity sha512-i5n+LNhkudUi+QqYncA/mIGODY0dsCs8pzqXroNCZD4uOBRJH2dhSxVcmTYD6UJOw1u9koD0VK3nc1L/PjSliA==
|
||||
dependencies:
|
||||
chalk "^3.0.0"
|
||||
cli-table3 "^0.5.1"
|
||||
glob "^7.1.6"
|
||||
posthtml "^0.12.0"
|
||||
|
||||
"@istanbuljs/load-nyc-config@^1.0.0":
|
||||
version "1.0.0"
|
||||
resolved "https://registry.verdaccio.org/@istanbuljs%2fload-nyc-config/-/load-nyc-config-1.0.0.tgz#10602de5570baea82f8afbfa2630b24e7a8cfe5b"
|
||||
@ -4398,16 +4381,6 @@ cli-spinners@^2.2.0:
|
||||
resolved "https://registry.verdaccio.org/cli-spinners/-/cli-spinners-2.2.0.tgz#e8b988d9206c692302d8ee834e7a85c0144d8f77"
|
||||
integrity sha512-tgU3fKwzYjiLEQgPMD9Jt+JjHVL9kW93FiIMX/l7rivvOD4/LL0Mf7gda3+4U2KJBloybwgj5KEoQgGRioMiKQ==
|
||||
|
||||
cli-table3@^0.5.1:
|
||||
version "0.5.1"
|
||||
resolved "https://registry.verdaccio.org/cli-table3/-/cli-table3-0.5.1.tgz#0252372d94dfc40dbd8df06005f48f31f656f202"
|
||||
integrity sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==
|
||||
dependencies:
|
||||
object-assign "^4.1.0"
|
||||
string-width "^2.1.1"
|
||||
optionalDependencies:
|
||||
colors "^1.1.2"
|
||||
|
||||
cli-truncate@^0.2.1:
|
||||
version "0.2.1"
|
||||
resolved "https://registry.verdaccio.org/cli-truncate/-/cli-truncate-0.2.1.tgz#9f15cfbb0705005369216c626ac7d05ab90dd574"
|
||||
@ -4588,11 +4561,6 @@ color@^3.0.0:
|
||||
color-convert "^1.9.1"
|
||||
color-string "^1.5.2"
|
||||
|
||||
colors@^1.1.2:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.verdaccio.org/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
|
||||
integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==
|
||||
|
||||
combined-stream@^1.0.6, combined-stream@~1.0.5, combined-stream@~1.0.6:
|
||||
version "1.0.8"
|
||||
resolved "https://registry.verdaccio.org/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
|
||||
@ -7877,7 +7845,7 @@ html-webpack-plugin@3.2.0:
|
||||
toposort "^1.0.0"
|
||||
util.promisify "1.0.0"
|
||||
|
||||
htmlparser2@^3.10.0, htmlparser2@^3.3.0, htmlparser2@^3.9.1, htmlparser2@^3.9.2:
|
||||
htmlparser2@^3.10.0, htmlparser2@^3.3.0, htmlparser2@^3.9.1:
|
||||
version "3.10.1"
|
||||
resolved "https://registry.verdaccio.org/htmlparser2/-/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f"
|
||||
integrity sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==
|
||||
@ -12221,26 +12189,6 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.2
|
||||
source-map "^0.6.1"
|
||||
supports-color "^6.1.0"
|
||||
|
||||
posthtml-parser@^0.4.1:
|
||||
version "0.4.2"
|
||||
resolved "https://registry.verdaccio.org/posthtml-parser/-/posthtml-parser-0.4.2.tgz#a132bbdf0cd4bc199d34f322f5c1599385d7c6c1"
|
||||
integrity sha512-BUIorsYJTvS9UhXxPTzupIztOMVNPa/HtAm9KHni9z6qEfiJ1bpOBL5DfUOL9XAc3XkLIEzBzpph+Zbm4AdRAg==
|
||||
dependencies:
|
||||
htmlparser2 "^3.9.2"
|
||||
|
||||
posthtml-render@^1.1.5:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.verdaccio.org/posthtml-render/-/posthtml-render-1.2.0.tgz#3df0c800a8bbb95af583a94748520469477addf4"
|
||||
integrity sha512-dQB+hoAKDtnI94RZm/wxBUH9My8OJcXd0uhWmGh2c7tVtQ85A+OS3yCN3LNbFtPz3bViwBJXAeoi+CBGMXM0DA==
|
||||
|
||||
posthtml@^0.12.0:
|
||||
version "0.12.0"
|
||||
resolved "https://registry.verdaccio.org/posthtml/-/posthtml-0.12.0.tgz#6e2a2fcd774eaed1a419a95c5cc3a92b676a40a6"
|
||||
integrity sha512-aNUEP/SfKUXAt+ghG51LC5MmafChBZeslVe/SSdfKIgLGUVRE68mrMF4V8XbH07ZifM91tCSuxY3eHIFLlecQw==
|
||||
dependencies:
|
||||
posthtml-parser "^0.4.1"
|
||||
posthtml-render "^1.1.5"
|
||||
|
||||
prebuild-install@^5.3.0:
|
||||
version "5.3.2"
|
||||
resolved "https://registry.verdaccio.org/prebuild-install/-/prebuild-install-5.3.2.tgz#6392e9541ac0b879ef0f22b3d65037417eb2035e"
|
||||
|
Loading…
Reference in New Issue
Block a user