diff --git a/.lintstagedrc.js b/.lintstagedrc.js
index 519ed69..135beb6 100644
--- a/.lintstagedrc.js
+++ b/.lintstagedrc.js
@@ -1,18 +1,7 @@
export default {
- "packages/competition/**/*.{js,cjs,ts,json,css,scss,tsx,sass}": () => [
- "pnpm --filter @sast/oj-competition lint",
- "pnpm --filter @sast/oj-competition build",
- "git add ."
- ],
- "packages/docs/**/*.{js,cjs,ts,html,json,css,scss,tsx,sass,md,mdx}": () => [
- "pnpm --filter @sast/oj-docs build",
- "git add ."
- ],
- "packages/ui/**/*.{js,cjs,ts,html,json,css,scss,tsx,sass}": () => [
- "pnpm --filter @sast/oj-ui test",
- "pnpm --filter @sast/oj-ui format",
- "pnpm --filter @sast/oj-ui lint",
- "git add ."
- ],
- // "*.*": () => "pnpm cz"
-}
\ No newline at end of file
+ "packages/competition/**/*.{js,cjs,ts,json,css,scss,tsx,sass}": () => [
+ "pnpm --filter @sast/oj-competition lint",
+ "pnpm --filter @sast/oj-competition build",
+ "git add .",
+ ],
+};
diff --git a/package.json b/package.json
index 395a40d..dd92906 100644
--- a/package.json
+++ b/package.json
@@ -8,14 +8,6 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install",
- "ui:dev": "pnpm --filter @sast/oj-ui dev",
- "ui:start": "pnpm --filter @sast/oj-ui dev:lib",
- "ui:build": "pnpm --filter @sast/oj-ui build:lib",
- "ui:lint": "pnpm --filter @sast/oj-ui lint",
- "ui:format": "pnpm --filter @sast/oj-ui format",
- "ui:test": "pnpm --filter @sast/oj-ui test",
- "ui-uni:dev": "pnpm --filter @sast/oj-ui-universal dev",
- "ui-uni:build": "pnpm --filter @sast/oj-ui-universal build",
"competition:dev": "pnpm --filter @sast/oj-competition dev",
"competition:build": "pnpm --filter @sast/oj-competition build:lib",
"competition:lint": "pnpm --filter @sast/oj-competition lint",
@@ -50,4 +42,4 @@
"typescript": "^5.3.3",
"vite-plugin-stylex": "^0.4.0"
}
-}
\ No newline at end of file
+}
diff --git a/packages/competition/package.json b/packages/competition/package.json
index b782ab7..a6636c7 100644
--- a/packages/competition/package.json
+++ b/packages/competition/package.json
@@ -12,8 +12,7 @@
"ionic:serve": "npm run dev"
},
"dependencies": {
- "@sast/oj-ui": "workspace:^",
- "@sast/oj-ui-universal": "workspace:^",
+ "@ui-aurora/react": "^0.0.1",
"axios": "^1.6.7",
"localforage": "^1.10.0",
"react": "^18.2.0",
diff --git a/packages/competition/src/components/login/loginCard/index.tsx b/packages/competition/src/components/login/loginCard/index.tsx
index a90539c..b54191b 100644
--- a/packages/competition/src/components/login/loginCard/index.tsx
+++ b/packages/competition/src/components/login/loginCard/index.tsx
@@ -1,47 +1,41 @@
-import { Button, Card } from "@sast/oj-ui";
+import { Button, Card } from "@ui-aurora/react";
import Logo from "../../logo";
import styles from "./index.module.scss";
import LoginCardContent from "./loginCardContent";
const LoginCard = () => {
return (
- <>
-
-
-
- LOGIN HERE
-
- >
- }
- mainContent={}
- footer={
- <>
-
-
-
-
-
-
-
-
- >
- }
- >
- >
+
+
+ LOGIN HERE
+
+ }
+ mainContent={}
+ footer={
+
+
+
+
+
+
+
+
+ }
+ >
);
};
diff --git a/packages/competition/src/components/login/loginCard/loginCardContent/icon/error.tsx b/packages/competition/src/components/login/loginCard/loginCardContent/icon/error.tsx
index c84dc0b..61f775c 100644
--- a/packages/competition/src/components/login/loginCard/loginCardContent/icon/error.tsx
+++ b/packages/competition/src/components/login/loginCard/loginCardContent/icon/error.tsx
@@ -1,36 +1,34 @@
import styles from "./icon.module.scss";
const Error = () => {
return (
- <>
-
- >
+
);
};
diff --git a/packages/competition/src/components/login/loginCard/loginCardContent/index.tsx b/packages/competition/src/components/login/loginCard/loginCardContent/index.tsx
index b7980c4..81471bd 100644
--- a/packages/competition/src/components/login/loginCard/loginCardContent/index.tsx
+++ b/packages/competition/src/components/login/loginCard/loginCardContent/index.tsx
@@ -1,4 +1,4 @@
-import { Input, Button, showToast } from "@sast/oj-ui";
+import { Input, Button, showToast } from "@ui-aurora/react";
import styles from "./index.module.scss";
import { useState } from "react";
import Success from "./icon/success";
diff --git a/packages/competition/src/components/logo/index.tsx b/packages/competition/src/components/logo/index.tsx
index 79485f3..02c3680 100644
--- a/packages/competition/src/components/logo/index.tsx
+++ b/packages/competition/src/components/logo/index.tsx
@@ -10,16 +10,14 @@ interface LogoProps {
const Logo = ({ width, height, className, style }: LogoProps) => {
return (
- <>
-
- >
+
);
};
diff --git a/packages/competition/src/pages/error/page.tsx b/packages/competition/src/pages/error/page.tsx
index 8a21aa0..b3352a5 100644
--- a/packages/competition/src/pages/error/page.tsx
+++ b/packages/competition/src/pages/error/page.tsx
@@ -1,6 +1,6 @@
import styles from "./page.module.scss";
import error404 from "../../assets/404.png";
-import { Button } from "@sast/oj-ui";
+import { Button } from "@ui-aurora/react";
import { useNavigate } from "react-router-dom";
const Error = () => {
const navigate = useNavigate();
diff --git a/packages/competition/src/pages/login/page.tsx b/packages/competition/src/pages/login/page.tsx
index 2086c06..9711bd3 100644
--- a/packages/competition/src/pages/login/page.tsx
+++ b/packages/competition/src/pages/login/page.tsx
@@ -1,30 +1,13 @@
import LoginCard from "../../components/login/loginCard";
import styles from "./page.module.scss";
-import { Button } from "@sast/oj-ui-universal";
const Login = () => {
return (
- <>
-
-
-
-
-
-
+
);
};
diff --git a/packages/ui-universal/.gitignore b/packages/ui-universal/.gitignore
deleted file mode 100644
index a547bf3..0000000
--- a/packages/ui-universal/.gitignore
+++ /dev/null
@@ -1,24 +0,0 @@
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-dist
-dist-ssr
-*.local
-
-# Editor directories and files
-.vscode/*
-!.vscode/extensions.json
-.idea
-.DS_Store
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
diff --git a/packages/ui-universal/index.html b/packages/ui-universal/index.html
deleted file mode 100644
index 3eafe47..0000000
--- a/packages/ui-universal/index.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
Vite + Lit + TS
-
-
-
-
-
- Vite + Lit
-
-
-
diff --git a/packages/ui-universal/lib/_variables.scss b/packages/ui-universal/lib/_variables.scss
deleted file mode 100644
index 1882034..0000000
--- a/packages/ui-universal/lib/_variables.scss
+++ /dev/null
@@ -1,82 +0,0 @@
-// box-shadow variables
-$shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
-$shadow:
- 0 1px 3px 0 rgba(0, 0, 0, 0.1),
- 0 1px 2px -1px rgba(0, 0, 0, 0.1);
-$shadow-md:
- 0 4px 6px -1px rgb(0 0 0 / 0.1),
- 0 2px 4px -2px rgb(0 0 0 / 0.1);
-$shadow-lg:
- 0 10px 15px -3px rgb(0 0 0 / 0.1),
- 0 4px 6px -4px rgb(0 0 0 / 0.1);
-$shadow-xl:
- 0 20px 25px -5px rgb(0 0 0 / 0.1),
- 0 8px 10px -6px rgb(0 0 0 / 0.1);
-$shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
-$shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
-
-@mixin shadow {
- &.shadow-regular {
- box-shadow: $shadow;
- }
- &.shadow-small {
- box-shadow: $shadow-sm;
- }
- &.shadow-medium {
- box-shadow: $shadow-md;
- }
- &.shadow-large {
- box-shadow: $shadow-lg;
- }
- &.shadow-extraLarge {
- box-shadow: $shadow-xl;
- }
- &.shadow-inner {
- box-shadow: $shadow-inner;
- }
-}
-
-// border width variables
-$border-0: 0px;
-$border-1: 1px;
-$border-2: 2px;
-
-//animation-duration varibles
-$duration-100: 100ms;
-$duration-200: 200ms;
-$duration-300: 300ms;
-$duration-400: 400ms;
-$duration-800: 800ms;
-
-//border radius variables
-$radius-10: 10px;
-$radius-8: 8px;
-$radius-5: 5px;
-$radius-15: 15px;
-$radius-half: 50%;
-
-//absolute center
-@mixin absolute-center {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
-}
-
-//font-size variables
-$font-size-8: 8px;
-$font-size-10: 10px;
-$font-size-12: 12px;
-$font-size-14: 14px;
-$font-size-16: 16px;
-
-//disabled
-@mixin disabled {
- cursor: not-allowed;
- opacity: 0.4;
-}
-
-//background color
-$background-shadow-color: rgb(var(--black-color-rgb), 0.6);
-
-$cubic-bezier: cubic-bezier(0.215, 0.61, 0.355, 1);
diff --git a/packages/ui-universal/lib/assets/lit.svg b/packages/ui-universal/lib/assets/lit.svg
deleted file mode 100644
index 4a9c1fe..0000000
--- a/packages/ui-universal/lib/assets/lit.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/packages/ui-universal/lib/components/Button/index.scss b/packages/ui-universal/lib/components/Button/index.scss
deleted file mode 100644
index 2132f34..0000000
--- a/packages/ui-universal/lib/components/Button/index.scss
+++ /dev/null
@@ -1,68 +0,0 @@
-:host {
- background-color: var(--primary-color);
- color: var(--white-color);
- padding: 10px;
- border-radius: 5px;
- border: none;
- cursor: pointer;
- font-size: 16px;
- font-weight: 400;
- transition: all 0.15s ease-in-out;
- @include shadow;
- &:hover {
- backdrop-filter: brightness(0.85);
- }
- &:active {
- transform: scale(0.98);
- }
- &.primary {
- background-color: var(--primary-color);
- }
- &.secondary {
- background-color: var(--white-color);
- color: var(--primary-color);
- border: 1px solid var(--primary-color);
- }
- &.border {
- border: solid 1px var(--border-white);
- background-color: var(--white-color);
- color: var(--black-color);
- font-weight: 500;
- }
- &.ghost {
- &:hover:not(.disabled) {
- filter: brightness(1);
- backdrop-filter: brightness(0.97);
- }
- background-color: transparent;
- color: var(--primary-color);
- font-weight: 600;
- }
- &.danger {
- background-color: var(--danger-color);
- }
- &.disabled {
- cursor: not-allowed;
- &:hover {
- backdrop-filter: none;
- }
- &:active {
- transform: none;
- }
- }
- &.disabledShadow {
- filter: grayscale(1);
- }
- &.small {
- padding: 5px;
- font-size: 12px;
- }
- &.medium {
- padding: 10px;
- font-size: 16px;
- }
- &.large {
- padding: 15px;
- font-size: 20px;
- }
-}
diff --git a/packages/ui-universal/lib/components/Button/index.ts b/packages/ui-universal/lib/components/Button/index.ts
deleted file mode 100644
index bcee5e6..0000000
--- a/packages/ui-universal/lib/components/Button/index.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import { CSSResultGroup, LitElement, html } from "lit";
-import { customElement, property } from "lit/decorators.js";
-import { createComponent } from "@lit/react";
-import { classMap } from "lit/directives/class-map.js";
-import React from "react";
-import styles from "./index.scss?inline";
-
-// export interface ButtonProps extends HTMLButtonElement {
-// /**
-// * The color of the button.
-// */
-// color?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'border';
-// /**
-// * The size of the button.
-// */
-// size?: 'small' | 'medium' | 'large';
-// /**
-// * The shadow of the button.
-// */
-// shadow?: 'regular' | 'small' | 'medium' | 'large' | 'extraLarge' | 'inner' | 'none';
-// /**
-// * disabledShadow, when the button is disabled ,the shadow is or not
-// */
-// disabledShadow?: boolean;
-// }
-
-/**
- * An example element.
- *
- * @slot - This element has a slot
- * @csspart button - The button
- */
-@customElement("s-button")
-export class Sbutton extends LitElement {
- static styles = styles as unknown as CSSResultGroup;
- @property({ type: String }) color = "primary";
- @property({ type: String }) size = "medium";
- @property({ type: String }) shadow = "none";
- @property({ type: Boolean }) disabled = false;
- @property({ type: Boolean }) disabledShadow = true;
- @property() _onclick: () => void = () => {};
-
- protected render() {
- return html`
-
- `;
- }
-}
-
-declare global {
- interface HTMLElementTagNameMap {
- "s-button": Sbutton;
- }
-}
-
-export const Button = createComponent({
- tagName: "s-button",
- elementClass: Sbutton,
- react: React,
-});
diff --git a/packages/ui-universal/lib/global.scss b/packages/ui-universal/lib/global.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/packages/ui-universal/lib/index.ts b/packages/ui-universal/lib/index.ts
deleted file mode 100644
index f80f982..0000000
--- a/packages/ui-universal/lib/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./components/Button";
diff --git a/packages/ui-universal/lib/typings/scss.d.ts b/packages/ui-universal/lib/typings/scss.d.ts
deleted file mode 100644
index b122744..0000000
--- a/packages/ui-universal/lib/typings/scss.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-declare module "*.scss?inline" {
- import { CSSResult } from "lit";
- const styles: CSSResult;
- export default styles;
-}
-
-declare module "*.scss" {
- import { CSSResult } from "lit";
- const styles: CSSResult;
- export default styles;
-}
diff --git a/packages/ui-universal/lib/vite-env.d.ts b/packages/ui-universal/lib/vite-env.d.ts
deleted file mode 100644
index 11f02fe..0000000
--- a/packages/ui-universal/lib/vite-env.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-///
diff --git a/packages/ui-universal/package.json b/packages/ui-universal/package.json
deleted file mode 100644
index e509abf..0000000
--- a/packages/ui-universal/package.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "@sast/oj-ui-universal",
- "private": true,
- "version": "0.0.1",
- "type": "module",
- "main": "./dist/index.cjs.js",
- "module": "./dist/index.es.js",
- "types": "./dist/index.d.ts",
- "files": [
- "dist"
- ],
- "exports": {
- ".": {
- "import": {
- "types": "./dist/index.d.ts",
- "default": "./dist/index.es.js"
- },
- "require": {
- "types": "./dist/index.d.ts",
- "default": "./dist/index.cjs.js"
- }
- }
- },
- "scripts": {
- "dev": "tsc && vite build --watch",
- "build": "tsc && vite build",
- "preview": "vite preview"
- },
- "dependencies": {
- "@lit/react": "^1.0.3",
- "lit": "^3.1.2",
- "react": "^18.2.0",
- "vite-plugin-dts": "^3.6.4"
- },
- "devDependencies": {
- "@types/react": "^18.2.43",
- "rollup-plugin-copy": "^3.5.0",
- "rollup-plugin-scss-lit": "^1.1.6",
- "sass": "^1.69.5",
- "typescript": "^5.3.3",
- "vite": "^5.1.6"
- }
-}
\ No newline at end of file
diff --git a/packages/ui-universal/public/vite.svg b/packages/ui-universal/public/vite.svg
deleted file mode 100644
index e7b8dfb..0000000
--- a/packages/ui-universal/public/vite.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/packages/ui-universal/tsconfig.json b/packages/ui-universal/tsconfig.json
deleted file mode 100644
index 9ff9bcd..0000000
--- a/packages/ui-universal/tsconfig.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "extends": ["../../tsconfig.json"],
- "compilerOptions": {
- "target": "ESNext",
- "experimentalDecorators": true,
- "useDefineForClassFields": false,
- "module": "ESNext",
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
- "skipLibCheck": true,
- "types": ["vite/client"],
-
- /* Bundler mode */
- "moduleResolution": "bundler",
- "allowImportingTsExtensions": true,
- "resolveJsonModule": true,
- "isolatedModules": true,
- "noEmit": true,
- // "declarationMap" need to be enabled to let Vite generates source map files.
- "declaration": true,
- "declarationMap": true,
-
- /* Linting */
- "strict": true,
- "noUnusedLocals": true,
- "noUnusedParameters": true,
- "noFallthroughCasesInSwitch": true
- },
- "paths": {
- "@/*": ["./lib/*"]
- },
- "include": ["lib", "lib/typings/index.d.ts"]
-}
diff --git a/packages/ui-universal/vite.config.js b/packages/ui-universal/vite.config.js
deleted file mode 100644
index 46d68cf..0000000
--- a/packages/ui-universal/vite.config.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// vite.config.js
-import path from 'path';
-import dts from 'vite-plugin-dts';
-import { join } from 'path';
-import { litScss } from 'rollup-plugin-scss-lit'
-import copy from 'rollup-plugin-copy'
-
-/** @type {import('vite').UserConfig} */
-export default {
- // config options
- plugins: [
- dts(), // Output .d.ts files
- litScss({ minify: process.env.NODE_ENV === 'production', options: { loadPaths: ["node_modules"] }, }), // Support for lit-element scss
- copy({
- targets: [{ src: "lib/**/*.scss", dest: "dist" }], // build is configured as outDir in tsconfig.json
- flatten: false, // important - preserves folder structure
- hook: "buildStart", // important - needs to run before other plugins
- }),
- ],
- css: {
- preprocessorOptions: {
- scss: {
- additionalData: `@use "./lib/variables" as *;`, // Import global scss variables
- includePaths: [path.resolve(__dirname, 'lib')], // Include paths for scss
- },
- },
- },
- resolve: {
- alias: {
- "@": "/lib",
- },
- },
- build: {
- target: 'ESNEXT',
- cssCodeSplit: true,
- lib: {
- entry: path.resolve(__dirname, join('lib', 'index.ts')),
- formats: ['es', 'cjs', 'umd'],
- name: 'index',
- fileName: format => `index.${format}.js`,
- },
- rollupOptions: {
- external: ['react', 'react-dom'],
- output: {
- globals: {
- react: 'React',
- 'react-dom': 'ReactDOM',
- },
- },
- }
- },
-};
diff --git a/packages/ui/.eslintrc.json b/packages/ui/.eslintrc.json
deleted file mode 100644
index c4a7dfc..0000000
--- a/packages/ui/.eslintrc.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/eslintrc.json",
- "root": true,
- "env": {
- "browser": true,
- "es2021": true
- },
- "extends": [
- "eslint:recommended",
- "plugin:@typescript-eslint/recommended",
- "plugin:react/recommended",
- "plugin:react/jsx-runtime", // disable all rules conflict with React 17 JSX transform
- "plugin:react-hooks/recommended",
- "plugin:jest-dom/recommended",
- "plugin:storybook/recommended",
- "prettier" // disable all rules conflict with Prettier
- ],
- "plugins": ["jest-dom", "@stylexjs"],
- "parser": "@typescript-eslint/parser",
- "ignorePatterns": ["dist"],
- "rules": {
- "@stylexjs/valid-styles": ["error"]
- },
- "settings": {
- "react": {
- "version": "detect"
- }
- },
- "overrides": []
-}
diff --git a/packages/ui/.github/workflows/storybook.yml b/packages/ui/.github/workflows/storybook.yml
deleted file mode 100644
index dfa17ff..0000000
--- a/packages/ui/.github/workflows/storybook.yml
+++ /dev/null
@@ -1,50 +0,0 @@
-# Simple workflow for deploying static content to GitHub Pages
-name: Deploy Storybook to Pages
-
-on:
- # Runs on pushes targeting the default branch
- push:
- branches: ['master']
-
- # Allows you to run this workflow manually from the Actions tab
- workflow_dispatch:
-
-# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
-permissions:
- contents: read
- pages: write
- id-token: write
-
-# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
-# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
-concurrency:
- group: 'pages'
- cancel-in-progress: false
-
-jobs:
- # Single deploy job since we're just deploying
- deploy:
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Install pnpm
- uses: pnpm/action-setup@v2
- with:
- version: 8
- run_install: true
- - name: Build Storybook
- run: pnpm run build
- - name: Setup Pages
- uses: actions/configure-pages@v4
- - name: Upload artifact
- uses: actions/upload-pages-artifact@v2
- with:
- # Upload entire repository
- path: './storybook-static'
- - name: Deploy to GitHub Pages
- id: deployment
- uses: actions/deploy-pages@v3
diff --git a/packages/ui/.prettierrc.json b/packages/ui/.prettierrc.json
deleted file mode 100644
index 0ac6c28..0000000
--- a/packages/ui/.prettierrc.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "printWidth": 100,
- "singleQuote": true,
- "bracketSameLine": false,
- "singleAttributePerLine": true
-}
diff --git a/packages/ui/.storybook/main.ts b/packages/ui/.storybook/main.ts
deleted file mode 100644
index 2898543..0000000
--- a/packages/ui/.storybook/main.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import type { StorybookConfig } from '@storybook/react-vite';
-import { withoutVitePlugins } from '@storybook/builder-vite';
-
-const config: StorybookConfig = {
- stories: ['../lib/**/*.stories.@(js|jsx|mjs|ts|tsx)', '../lib/**/*.mdx'],
- addons: ['@storybook/addon-essentials', '@storybook/addon-actions', '@storybook/addon-docs'],
- framework: {
- name: '@storybook/react-vite',
- options: {},
- },
- docs: {
- autodocs: 'tag',
- },
- viteFinal: async (config) => ({
- ...config,
- plugins: await withoutVitePlugins(config.plugins, ['vite:dts']), // skip dts plugin
- }),
-};
-export default config;
diff --git a/packages/ui/.storybook/preview.ts b/packages/ui/.storybook/preview.ts
deleted file mode 100644
index d971423..0000000
--- a/packages/ui/.storybook/preview.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import type { Preview } from '@storybook/react';
-import '../lib/global.scss';
-
-const preview: Preview = {
- parameters: {
- actions: { argTypesRegex: '^on[A-Z].*' },
- controls: {
- matchers: {
- color: /(background|color)$/i,
- date: /Date$/i,
- },
- },
- },
-};
-
-export default preview;
diff --git a/packages/ui/LICENSE b/packages/ui/LICENSE
deleted file mode 100644
index 0e4dce6..0000000
--- a/packages/ui/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2023 Rayyamhk
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/packages/ui/README.md b/packages/ui/README.md
deleted file mode 100644
index 108a175..0000000
--- a/packages/ui/README.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# SASTOJ 组件库
-
-## Features
-
-## Get Started
-
-1. Clone this repository
-2. Install dependencies using `npm i` (or `pnpm i` if you like)
-
-## Scripts
-
-- `dev`: Starts the local Storybook server, use this to develop and preview your components.
-- `test`: Runs all your tests with vitest.
-- `test:watch`: Runs tests in watch mode.
-- `test:ui`: Runs tests with a UI.
-- `test:coverage`: Runs tests and generates a coverage report.
-- `build`: Builds your Storybook as a static web application.
-- `build:lib`: Builds your component library with Vite.
-- `lint`: Runs ESLint.
-- `format`: Formats your code with Prettier.
-
-## License
diff --git a/packages/ui/coverage/.tmp/coverage-0.json b/packages/ui/coverage/.tmp/coverage-0.json
deleted file mode 100644
index e8f24c2..0000000
--- a/packages/ui/coverage/.tmp/coverage-0.json
+++ /dev/null
@@ -1 +0,0 @@
-{"result":[{"scriptId":"1090","url":"file:///D:/Projects/SAST/sastoj-frontend/packages/ui/lib/test/setup.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":1677,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":1677,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":987,"endOffset":1031,"count":2}],"isBlockCoverage":true}]},{"scriptId":"1685","url":"file:///D:/Projects/SAST/sastoj-frontend/packages/ui/lib/Button/Button.test.tsx","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":4626,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":4626,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1397,"endOffset":1890,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1954,"endOffset":2600,"count":1}],"isBlockCoverage":true}]},{"scriptId":"1778","url":"file:///D:/Projects/SAST/sastoj-frontend/packages/ui/lib/Button/Button.tsx","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":4472,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":4472,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":999,"endOffset":1707,"count":2},{"startOffset":1297,"endOffset":1309,"count":0},{"startOffset":1356,"endOffset":1366,"count":0}],"isBlockCoverage":true},{"functionName":"get","ranges":[{"startOffset":1804,"endOffset":1826,"count":2}],"isBlockCoverage":true}]},{"scriptId":"1780","url":"file:///D:/Projects/SAST/sastoj-frontend/packages/ui/lib/Button/Button.module.scss","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":1381,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":1381,"count":1}],"isBlockCoverage":true},{"functionName":"get","ranges":[{"startOffset":261,"endOffset":331,"count":10}],"isBlockCoverage":true}]}]}
\ No newline at end of file
diff --git a/packages/ui/coverage/Button.tsx.html b/packages/ui/coverage/Button.tsx.html
deleted file mode 100644
index 258d388..0000000
--- a/packages/ui/coverage/Button.tsx.html
+++ /dev/null
@@ -1,223 +0,0 @@
-
-
-
-
-
-
Code coverage report for Button.tsx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 100%
- Statements
- 46/46
-
-
-
-
- 33.33%
- Branches
- 1/3
-
-
-
-
- 100%
- Functions
- 0/0
-
-
-
-
- 100%
- Lines
- 46/46
-
-
-
-
-
- Press n or j to go to the next uncovered block, b, p or k for the previous block.
-
-
-
- Filter:
-
-
-
-
-
-
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47 | 1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-1x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-2x
-1x
-1x
-1x
- | import React from 'react';
-import styles from './Button.module.scss';
-import classnames from 'classnames';
-
-export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
- /**
- * The color of the button.
- */
- color?: 'primary' | 'secondary' | 'tertiary' | 'danger';
-
- /**
- * The size of the button.
- */
- size?: 'small' | 'medium' | 'large';
-
- /**
- * If `true`, the button will be disabled.
- */
- disabled?: boolean;
- /**
- * If `true`, the shadow will be appear
- */
- isShadow?: boolean;
-}
-
-export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
- ({ color = 'primary', size = 'medium', disabled = false, isShadow = false, ...rest }, ref) => {
- const btnClass = classnames(
- styles['base'],
- styles[color],
- styles[size],
- styles[disabled ? 'disabled' : ''],
- styles[isShadow ? 'shadow' : ''],
- );
- return (
- <button
- ref={ref}
- className={btnClass}
- {...rest}
- disabled={disabled}
- />
- );
- },
-);
-
-Button.displayName = 'Button';
- |
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/packages/ui/coverage/base.css b/packages/ui/coverage/base.css
deleted file mode 100644
index f418035..0000000
--- a/packages/ui/coverage/base.css
+++ /dev/null
@@ -1,224 +0,0 @@
-body, html {
- margin:0; padding: 0;
- height: 100%;
-}
-body {
- font-family: Helvetica Neue, Helvetica, Arial;
- font-size: 14px;
- color:#333;
-}
-.small { font-size: 12px; }
-*, *:after, *:before {
- -webkit-box-sizing:border-box;
- -moz-box-sizing:border-box;
- box-sizing:border-box;
- }
-h1 { font-size: 20px; margin: 0;}
-h2 { font-size: 14px; }
-pre {
- font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
- margin: 0;
- padding: 0;
- -moz-tab-size: 2;
- -o-tab-size: 2;
- tab-size: 2;
-}
-a { color:#0074D9; text-decoration:none; }
-a:hover { text-decoration:underline; }
-.strong { font-weight: bold; }
-.space-top1 { padding: 10px 0 0 0; }
-.pad2y { padding: 20px 0; }
-.pad1y { padding: 10px 0; }
-.pad2x { padding: 0 20px; }
-.pad2 { padding: 20px; }
-.pad1 { padding: 10px; }
-.space-left2 { padding-left:55px; }
-.space-right2 { padding-right:20px; }
-.center { text-align:center; }
-.clearfix { display:block; }
-.clearfix:after {
- content:'';
- display:block;
- height:0;
- clear:both;
- visibility:hidden;
- }
-.fl { float: left; }
-@media only screen and (max-width:640px) {
- .col3 { width:100%; max-width:100%; }
- .hide-mobile { display:none!important; }
-}
-
-.quiet {
- color: #7f7f7f;
- color: rgba(0,0,0,0.5);
-}
-.quiet a { opacity: 0.7; }
-
-.fraction {
- font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
- font-size: 10px;
- color: #555;
- background: #E8E8E8;
- padding: 4px 5px;
- border-radius: 3px;
- vertical-align: middle;
-}
-
-div.path a:link, div.path a:visited { color: #333; }
-table.coverage {
- border-collapse: collapse;
- margin: 10px 0 0 0;
- padding: 0;
-}
-
-table.coverage td {
- margin: 0;
- padding: 0;
- vertical-align: top;
-}
-table.coverage td.line-count {
- text-align: right;
- padding: 0 5px 0 20px;
-}
-table.coverage td.line-coverage {
- text-align: right;
- padding-right: 10px;
- min-width:20px;
-}
-
-table.coverage td span.cline-any {
- display: inline-block;
- padding: 0 5px;
- width: 100%;
-}
-.missing-if-branch {
- display: inline-block;
- margin-right: 5px;
- border-radius: 3px;
- position: relative;
- padding: 0 4px;
- background: #333;
- color: yellow;
-}
-
-.skip-if-branch {
- display: none;
- margin-right: 10px;
- position: relative;
- padding: 0 4px;
- background: #ccc;
- color: white;
-}
-.missing-if-branch .typ, .skip-if-branch .typ {
- color: inherit !important;
-}
-.coverage-summary {
- border-collapse: collapse;
- width: 100%;
-}
-.coverage-summary tr { border-bottom: 1px solid #bbb; }
-.keyline-all { border: 1px solid #ddd; }
-.coverage-summary td, .coverage-summary th { padding: 10px; }
-.coverage-summary tbody { border: 1px solid #bbb; }
-.coverage-summary td { border-right: 1px solid #bbb; }
-.coverage-summary td:last-child { border-right: none; }
-.coverage-summary th {
- text-align: left;
- font-weight: normal;
- white-space: nowrap;
-}
-.coverage-summary th.file { border-right: none !important; }
-.coverage-summary th.pct { }
-.coverage-summary th.pic,
-.coverage-summary th.abs,
-.coverage-summary td.pct,
-.coverage-summary td.abs { text-align: right; }
-.coverage-summary td.file { white-space: nowrap; }
-.coverage-summary td.pic { min-width: 120px !important; }
-.coverage-summary tfoot td { }
-
-.coverage-summary .sorter {
- height: 10px;
- width: 7px;
- display: inline-block;
- margin-left: 0.5em;
- background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
-}
-.coverage-summary .sorted .sorter {
- background-position: 0 -20px;
-}
-.coverage-summary .sorted-desc .sorter {
- background-position: 0 -10px;
-}
-.status-line { height: 10px; }
-/* yellow */
-.cbranch-no { background: yellow !important; color: #111; }
-/* dark red */
-.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
-.low .chart { border:1px solid #C21F39 }
-.highlighted,
-.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
- background: #C21F39 !important;
-}
-/* medium red */
-.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
-/* light red */
-.low, .cline-no { background:#FCE1E5 }
-/* light green */
-.high, .cline-yes { background:rgb(230,245,208) }
-/* medium green */
-.cstat-yes { background:rgb(161,215,106) }
-/* dark green */
-.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
-.high .chart { border:1px solid rgb(77,146,33) }
-/* dark yellow (gold) */
-.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
-.medium .chart { border:1px solid #f9cd0b; }
-/* light yellow */
-.medium { background: #fff4c2; }
-
-.cstat-skip { background: #ddd; color: #111; }
-.fstat-skip { background: #ddd; color: #111 !important; }
-.cbranch-skip { background: #ddd !important; color: #111; }
-
-span.cline-neutral { background: #eaeaea; }
-
-.coverage-summary td.empty {
- opacity: .5;
- padding-top: 4px;
- padding-bottom: 4px;
- line-height: 1;
- color: #888;
-}
-
-.cover-fill, .cover-empty {
- display:inline-block;
- height: 12px;
-}
-.chart {
- line-height: 0;
-}
-.cover-empty {
- background: white;
-}
-.cover-full {
- border-right: none !important;
-}
-pre.prettyprint {
- border: none !important;
- padding: 0 !important;
- margin: 0 !important;
-}
-.com { color: #999 !important; }
-.ignore-none { color: #999; font-weight: normal; }
-
-.wrapper {
- min-height: 100%;
- height: auto !important;
- height: 100%;
- margin: 0 auto -48px;
-}
-.footer, .push {
- height: 48px;
-}
diff --git a/packages/ui/coverage/block-navigation.js b/packages/ui/coverage/block-navigation.js
deleted file mode 100644
index cc12130..0000000
--- a/packages/ui/coverage/block-navigation.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/* eslint-disable */
-var jumpToCode = (function init() {
- // Classes of code we would like to highlight in the file view
- var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
-
- // Elements to highlight in the file listing view
- var fileListingElements = ['td.pct.low'];
-
- // We don't want to select elements that are direct descendants of another match
- var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
-
- // Selecter that finds elements on the page to which we can jump
- var selector =
- fileListingElements.join(', ') +
- ', ' +
- notSelector +
- missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
-
- // The NodeList of matching elements
- var missingCoverageElements = document.querySelectorAll(selector);
-
- var currentIndex;
-
- function toggleClass(index) {
- missingCoverageElements
- .item(currentIndex)
- .classList.remove('highlighted');
- missingCoverageElements.item(index).classList.add('highlighted');
- }
-
- function makeCurrent(index) {
- toggleClass(index);
- currentIndex = index;
- missingCoverageElements.item(index).scrollIntoView({
- behavior: 'smooth',
- block: 'center',
- inline: 'center'
- });
- }
-
- function goToPrevious() {
- var nextIndex = 0;
- if (typeof currentIndex !== 'number' || currentIndex === 0) {
- nextIndex = missingCoverageElements.length - 1;
- } else if (missingCoverageElements.length > 1) {
- nextIndex = currentIndex - 1;
- }
-
- makeCurrent(nextIndex);
- }
-
- function goToNext() {
- var nextIndex = 0;
-
- if (
- typeof currentIndex === 'number' &&
- currentIndex < missingCoverageElements.length - 1
- ) {
- nextIndex = currentIndex + 1;
- }
-
- makeCurrent(nextIndex);
- }
-
- return function jump(event) {
- if (
- document.getElementById('fileSearch') === document.activeElement &&
- document.activeElement != null
- ) {
- // if we're currently focused on the search input, we don't want to navigate
- return;
- }
-
- switch (event.which) {
- case 78: // n
- case 74: // j
- goToNext();
- break;
- case 66: // b
- case 75: // k
- case 80: // p
- goToPrevious();
- break;
- }
- };
-})();
-window.addEventListener('keydown', jumpToCode);
diff --git a/packages/ui/coverage/clover.xml b/packages/ui/coverage/clover.xml
deleted file mode 100644
index 5e7af71..0000000
--- a/packages/ui/coverage/clover.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/ui/coverage/coverage-final.json b/packages/ui/coverage/coverage-final.json
deleted file mode 100644
index 46f0dc3..0000000
--- a/packages/ui/coverage/coverage-final.json
+++ /dev/null
@@ -1,2 +0,0 @@
-{"D:\\Projects\\SAST\\sastoj-frontend\\packages\\ui\\lib\\Button\\Button.tsx": {"path":"D:\\Projects\\SAST\\sastoj-frontend\\packages\\ui\\lib\\Button\\Button.tsx","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":42}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":36}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":0}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":84}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":5}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":29}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":5}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":58}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":0}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":5}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":28}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":5}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":38}},"14":{"start":{"line":15,"column":0},"end":{"line":15,"column":0}},"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":5}},"16":{"start":{"line":17,"column":0},"end":{"line":17,"column":44}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":5}},"18":{"start":{"line":19,"column":0},"end":{"line":19,"column":21}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":5}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":41}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":5}},"22":{"start":{"line":23,"column":0},"end":{"line":23,"column":21}},"23":{"start":{"line":24,"column":0},"end":{"line":24,"column":1}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":0}},"25":{"start":{"line":26,"column":0},"end":{"line":26,"column":71}},"26":{"start":{"line":27,"column":0},"end":{"line":27,"column":97}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":32}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":21}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":20}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":19}},"31":{"start":{"line":32,"column":0},"end":{"line":32,"column":41}},"32":{"start":{"line":33,"column":0},"end":{"line":33,"column":39}},"33":{"start":{"line":34,"column":0},"end":{"line":34,"column":6}},"34":{"start":{"line":35,"column":0},"end":{"line":35,"column":12}},"35":{"start":{"line":36,"column":0},"end":{"line":36,"column":13}},"36":{"start":{"line":37,"column":0},"end":{"line":37,"column":17}},"37":{"start":{"line":38,"column":0},"end":{"line":38,"column":28}},"38":{"start":{"line":39,"column":0},"end":{"line":39,"column":17}},"39":{"start":{"line":40,"column":0},"end":{"line":40,"column":27}},"40":{"start":{"line":41,"column":0},"end":{"line":41,"column":8}},"41":{"start":{"line":42,"column":0},"end":{"line":42,"column":6}},"42":{"start":{"line":43,"column":0},"end":{"line":43,"column":4}},"43":{"start":{"line":44,"column":0},"end":{"line":44,"column":2}},"44":{"start":{"line":45,"column":0},"end":{"line":45,"column":0}},"45":{"start":{"line":46,"column":0},"end":{"line":46,"column":30}}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"33":2,"34":2,"35":2,"36":2,"37":2,"38":2,"39":2,"40":2,"41":2,"42":2,"43":1,"44":1,"45":1},"branchMap":{"0":{"type":"branch","line":27,"loc":{"start":{"line":27,"column":2},"end":{"line":43,"column":4}},"locations":[{"start":{"line":27,"column":2},"end":{"line":43,"column":4}}]},"1":{"type":"branch","line":32,"loc":{"start":{"line":32,"column":13},"end":{"line":32,"column":37}},"locations":[{"start":{"line":32,"column":13},"end":{"line":32,"column":37}}]},"2":{"type":"branch","line":33,"loc":{"start":{"line":33,"column":13},"end":{"line":33,"column":35}},"locations":[{"start":{"line":33,"column":13},"end":{"line":33,"column":35}}]}},"b":{"0":[2],"1":[0],"2":[0]},"fnMap":{},"f":{}}
-}
diff --git a/packages/ui/coverage/favicon.png b/packages/ui/coverage/favicon.png
deleted file mode 100644
index c1525b8..0000000
Binary files a/packages/ui/coverage/favicon.png and /dev/null differ
diff --git a/packages/ui/coverage/index.html b/packages/ui/coverage/index.html
deleted file mode 100644
index 7b36466..0000000
--- a/packages/ui/coverage/index.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-
Code coverage report for All files
-
-
-
-
-
-
-
-
-
-
-
-
All files
-
-
-
- 100%
- Statements
- 46/46
-
-
-
-
- 33.33%
- Branches
- 1/3
-
-
-
-
- 100%
- Functions
- 0/0
-
-
-
-
- 100%
- Lines
- 46/46
-
-
-
-
-
- Press n or j to go to the next uncovered block, b, p or k for the previous block.
-
-
-
- Filter:
-
-
-
-
-
-
-
-
-
- File |
- |
- Statements |
- |
- Branches |
- |
- Functions |
- |
- Lines |
- |
-
-
-
- Button.tsx |
-
-
- |
- 100% |
- 46/46 |
- 33.33% |
- 1/3 |
- 100% |
- 0/0 |
- 100% |
- 46/46 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/packages/ui/coverage/prettify.css b/packages/ui/coverage/prettify.css
deleted file mode 100644
index b317a7c..0000000
--- a/packages/ui/coverage/prettify.css
+++ /dev/null
@@ -1 +0,0 @@
-.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
diff --git a/packages/ui/coverage/prettify.js b/packages/ui/coverage/prettify.js
deleted file mode 100644
index b322523..0000000
--- a/packages/ui/coverage/prettify.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/* eslint-disable */
-window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V
122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^