+
{city}
- return list.map(
- ({ name, url, city, rule, evidences, date, comment_url }) => (
-
-
+
+
+
+
+
+
+ );
-
{rule}
-
- {evidences.map(({ href, title }) => (
- -
-
- {title}
-
-
- ))}
-
-
+ render() {
+ const { list } = companyStore;
+
+ return (
+
+ {list.map(item => (
+
+ {this.renderCase(item)}
-
- )
+ ))}
+
);
}
}
diff --git a/src/page/index.tsx b/src/page/index.tsx
index 73b53a1..5e631dd 100644
--- a/src/page/index.tsx
+++ b/src/page/index.tsx
@@ -1,56 +1,33 @@
-import { delegate, createCell } from 'web-cell';
-import { CellRouter } from 'cell-router/source';
+import { FC } from 'web-cell';
+import { createRouter } from 'cell-router';
-import type {} from 'material-cell';
-import '@material/mwc-drawer';
-import '@material/mwc-list';
-import '@material/mwc-top-app-bar-fixed';
-import '@material/mwc-icon-button';
+import '@material/web/list/list';
+import '@material/web/list/list-item';
-import { history } from '../model';
+import { Drawer } from '../component/Drawer';
import { CompanyList } from './CompanyList';
-document.addEventListener(
- 'MDCTopAppBar:nav',
- ({ target }) => ((target as HTMLElement).closest('mwc-drawer').open = true)
-);
-
-document.addEventListener(
- 'click',
- delegate(
- 'mwc-drawer > mwc-list a',
- (_, link) => (link.closest('mwc-drawer').open = false)
- )
-);
+const { Route } = createRouter();
-export function PageBox() {
- return (
-
- Companies
-
-
-
+export const PageBox: FC = () => (
+
+
+
+
+
996
-
-
-
+
+
+
955
-
-
+
+
+
-
-
- Anti 996
-
-
-
-
- );
-}
+
+
+
+
+);
diff --git a/tsconfig.json b/tsconfig.json
index f40604f..3ee3c50 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,13 +1,12 @@
{
"compilerOptions": {
- "target": "ES5",
- "module": "ES2020",
+ "target": "ES6",
+ "module": "ES6",
"moduleResolution": "Node",
- "experimentalDecorators": true,
- "jsx": "react",
- "jsxFactory": "createCell",
- "jsxFragmentFactory": "Fragment",
- "lib": ["ES2020", "DOM"]
+ "useDefineForClassFields": true,
+ "jsx": "react-jsx",
+ "jsxImportSource": "dom-renderer",
+ "lib": ["ES2023", "DOM"]
},
"include": ["src/**/*"]
}
diff --git a/workbox-config.js b/workbox-config.js
index e19586b..9bb4eab 100644
--- a/workbox-config.js
+++ b/workbox-config.js
@@ -2,9 +2,7 @@ module.exports = {
globDirectory: 'dist/',
globPatterns: ['**/*.{html,css,js,json,ico,gif,jpg,jpeg,png,webp}'],
swDest: 'dist/sw.js',
- importScripts: [
- 'https://cdn.jsdelivr.net/npm/workbox-sw@6.1.5/build/workbox-sw.min.js'
- ],
+ importScripts: ['https://unpkg.com/workbox-sw@7.0.0/build/workbox-sw.js'],
clientsClaim: true,
cleanupOutdatedCaches: true
};