Skip to content

Commit

Permalink
Webapp Preview: Cluster Overview with sparklines
Browse files Browse the repository at this point in the history
  • Loading branch information
koszti authored and wendigo committed Dec 12, 2024
1 parent 3b0ba43 commit da79aed
Show file tree
Hide file tree
Showing 14 changed files with 2,329 additions and 1,472 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ private static void configureTrinoServer(TestingTrinoServer.Builder builder)
{
builder.addProperty("web-ui.preview.enabled", "true");
builder.addProperty("http-server.http.port", "8080");
builder.addProperty("web-ui.authentication.type", "fixed");
builder.addProperty("web-ui.user", "webapp-preview-user");
}
}
18 changes: 0 additions & 18 deletions core/trino-web-ui/src/main/resources/webapp-preview/.eslintrc.cjs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import js from '@eslint/js';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import reactHooksPlugin from 'eslint-plugin-react-hooks';
import reactRefreshPlugin from 'eslint-plugin-react-refresh';

export default [
js.configs.recommended,
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
},
},
plugins: {
'@typescript-eslint': tsPlugin,
},
rules: {
...tsPlugin.configs.recommended.rules,
'@typescript-eslint/no-unused-expressions': [
'error',
{
allowShortCircuit: true,
allowTernary: true,
},
],
},
},
{
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
plugins: {
'react-hooks': reactHooksPlugin,
},
rules: {
...reactHooksPlugin.configs.recommended.rules,
},
},
{
files: ['**/*.{js,jsx,ts,tsx}'], // Match all JS/TS files
plugins: {
'react-refresh': reactRefreshPlugin,
},
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'eol-last': ['warn', 'always'],
'no-multiple-empty-lines': ['warn', { max: 1, maxEOF: 0 }],
},
},
{
ignores: ['dist', '.eslintrc.cjs'],
},
];
Loading

0 comments on commit da79aed

Please sign in to comment.