Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
/client/playwright-report/
/client/playwright/.cache/
/client/test-results/
/client_v2/blob-report/
/client_v2/playwright-report/
/client_v2/playwright/.cache/
/client_v2/test-results/
/data/
/dist/
/filtering/tests/filtering.TestLotsOfRules*.pprof
Expand Down
49 changes: 49 additions & 0 deletions .twosky.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,55 @@
"sources_dir": "./client/src"
}
},
{
"project_id": "home_v2",
"base_locale": "en",
"localizable_files": [
"client_v2/src/__locales/en.json"
],
"languages": {
"ar": "العربية",
"be": "Беларуская",
"bg": "Български",
"cs": "Český",
"da": "Dansk",
"de": "Deutsch",
"en": "English",
"es": "Español",
"fa": "فارسی",
"fi": "Suomi",
"fr": "Français",
"hr": "Hrvatski",
"hu": "Magyar",
"id": "Indonesian",
"it": "Italiano",
"ja": "日本語",
"ko": "한국어",
"nl": "Nederlands",
"no": "Norsk",
"pl": "Polski",
"pt-br": "Português (BR)",
"pt-pt": "Português (PT)",
"ro": "Română",
"ru": "Русский",
"si-lk": "සිංහල",
"sk": "Slovenčina",
"sl": "Slovenščina",
"sr-cs": "Srpski",
"sv": "Svenska",
"th": "ภาษาไทย",
"tr": "Türkçe",
"uk": "Українська",
"vi": "Tiếng Việt",
"zh-cn": "简体中文",
"zh-hk": "繁體中文(香港)",
"zh-tw": "正體中文(台灣)"
},
"metadata": {
"locales_dir": "./client_v2/src/__locales",
"sources_dir": "./client_v2/src"
}
},
{
"project_id": "hostlists-registry",
"base_locale": "en",
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ GO.MACRO = $${GO:-go}
VERBOSE.MACRO = $${VERBOSE:-0}

CHANNEL = development
# TODO(ik): Update CLIENT_DIR to client_v2 for new frontend migration
CLIENT_DIR = client
DEPLOY_SCRIPT_PATH = not/a/real/path
DIST_DIR = dist
Expand Down
14 changes: 14 additions & 0 deletions client_v2/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
max_line_length = 120

[*.md]
max_line_length = off
trim_trailing_whitespace = false
70 changes: 70 additions & 0 deletions client_v2/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
const path = require('path');

module.exports = {
plugins: ['prettier', 'solid', 'import'],
extends: [
'prettier',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:solid/typescript',
],
parser: '@typescript-eslint/parser',
env: {
node: true,
browser: true,
commonjs: true,
},
settings: {
'import/core-modules': ['Twosky'],
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: [path.resolve(__dirname, 'tsconfig.json')],
},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'import/extensions': 'off',
'class-methods-use-this': 'off',
'no-shadow': 'off',
camelcase: 'off',
'no-console': [
'warn',
{
allow: ['warn', 'error'],
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
'import/prefer-default-export': 'off',
'no-alert': 'off',
'arrow-body-style': 'off',
'max-len': [
'error',
120,
2,
{
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
},
};
1 change: 1 addition & 0 deletions client_v2/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.ts text eol=lf
1 change: 1 addition & 0 deletions client_v2/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../.twosky.json
19 changes: 19 additions & 0 deletions client_v2/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": false,
"tabWidth": 4,
"semi": true,
"arrowParens": "always",
"endOfLine": "lf",
"overrides": [
{
"files": "*.json",
"options": {
"tabWidth": 2
}
}
]
}
Loading
Loading