Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit069e428

Browse files
committed
create viewer and loading
1 parent715ff05 commit069e428

25 files changed

+19043
-0
lines changed

‎.gitignore‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,10 @@ application-dev-localhost.yaml
1717
.vscode/launch.json
1818
server/api-service/lowcoder-server/src/main/resources/application-local-dev.yaml
1919
translations/locales/node_modules/
20+
21+
22+
viewer/.yarn/cache/*.zip
23+
viewer/node_modules/
24+
viewer/packages/lowcoder-plugin-demo/.yarn/install-state.gz
25+
viewer/packages/lowcoder-plugin-demo/yarn.lock
26+
viewer/packages/lowcoder-plugin-demo/.yarn/cache/@types-node-npm-16.18.68-56f72825c0-094ae9ed80.zip

‎viewer/.gitignore‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/packages/*/node_modules
6+
/packages/*/dist
7+
/packages/*/tsdoc-metadata.json
8+
/.pnp
9+
.pnp.js
10+
11+
# testing
12+
/**/coverage
13+
14+
15+
# production
16+
/build
17+
/packages/lowcoder/build
18+
19+
# misc
20+
.DS_Store
21+
.env.local
22+
.env.development.local
23+
.env.test.local
24+
.env.production.local
25+
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
30+
/out
31+
/public/fonts/*
32+
/src/assets/icons/fonts/*
33+
.idea
34+
.storybook-out/
35+
cypress/videos
36+
cypress/screenshots
37+
/cypress.env.json
38+
39+
storybook-static/*
40+
build-storybook.log
41+
42+
TODO
43+
44+
.yarn/*
45+
!.yarn/cache
46+
!.yarn/patches
47+
!.yarn/plugins
48+
!.yarn/releases
49+
!.yarn/sdks
50+
!.yarn/versions
51+
52+
/ossutil_output
53+
package-lock.json
54+
55+
op.mjs
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
diff --git a/lib/rules/only-ascii.js b/lib/rules/only-ascii.js
2+
index 7d76f9d37a99be35bab91d7a437073b112e2e985..b6ccac270f309232471d8e26ad8ec1bb782079f7 100644
3+
--- a/lib/rules/only-ascii.js
4+
+++ b/lib/rules/only-ascii.js
5+
@@ -39,7 +39,7 @@ function create (context) {
6+
7+
// Get tokens which include non-ascii characters
8+
var sourceCode = context.getSourceCode();
9+
- var tokens = sourceCode.getTokens(node);
10+
+ var tokens = sourceCode.tokensAndComments;
11+
12+
tokens.forEach(function (token) {
13+
var value = token.value;
14+
diff --git a/package.json b/package.json
15+
index b6a4e0e402ed2c934cca2124e8ab9d2b43a198a2..d781a469e7a7d502a20e0dab27fc9c8adad4ffd8 100644
16+
--- a/package.json
17+
+++ b/package.json
18+
@@ -16,11 +16,14 @@
19+
"requireindex": "~1.1.0"
20+
},
21+
"devDependencies": {
22+
- "eslint": "~3.9.1",
23+
+ "eslint": "^8.0.0",
24+
"mocha": "^3.1.2"
25+
},
26+
"engines": {
27+
"node": ">=0.10.0"
28+
},
29+
- "license": "ISC"
30+
+ "license": "ISC",
31+
+ "peerDependencies": {
32+
+ "eslint": "8"
33+
+ }
34+
}
35+
diff --git a/tests/lib/rules/only-ascii.js b/tests/lib/rules/only-ascii.js
36+
index 21cca9c932ac41804bb36ccd35787cdf121b4f16..a84c5a5dbf7ddb89637b88059432484b215ae098 100644
37+
--- a/tests/lib/rules/only-ascii.js
38+
+++ b/tests/lib/rules/only-ascii.js
39+
@@ -8,15 +8,19 @@ var ruleTester = new RuleTester();
40+
ruleTester.run('no-japanese', rule, {
41+
42+
valid : [
43+
- { code : 'console.log("hello")', options : [] },
44+
+ { code : 'console.log("hello") // ok', options : [] },
45+
{ code : 'console.log("hello☆")', options : [{ allowedChars : '☆' }] },
46+
{ code : 'console.log("☆")', filename : 'foo', options : [{ excludePaths : ['foo'] }] },
47+
],
48+
49+
- invalid : [{
50+
+ invalid : [
51+
+ {
52+
+ code : 'console.info("hello"); // console.log("ハロー")',
53+
+ errors : [{ message : 'Non-ascii character "ハロー" found' }],
54+
+ },{
55+
code : 'console.log("ハロー")',
56+
errors : [{ message : 'Non-ascii character "ハロー" found' }],
57+
- }, {
58+
+ },{
59+
code : 'console.log("ハロー☆")',
60+
options : [{ allowedChars : '☆' }],
61+
errors : [{ message : 'Non-ascii character "ハロー" found' }],
62+
@@ -25,5 +29,6 @@ ruleTester.run('no-japanese', rule, {
63+
filename : 'foo',
64+
options : [{ excludePaths : ['bar'] }],
65+
errors : [{ message : 'Non-ascii character "☆" found' }],
66+
- }],
67+
+ }
68+
+ ],
69+
});
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff --git a/dist/es/WindowScroller/utils/onScroll.js b/dist/es/WindowScroller/utils/onScroll.js
2+
index d00f0f18c6596e4e57f4f762f91fed4282610c91..c8496e8eabafdf9cf6071986ec446839d7b65556 100644
3+
--- a/dist/es/WindowScroller/utils/onScroll.js
4+
+++ b/dist/es/WindowScroller/utils/onScroll.js
5+
@@ -71,4 +71,3 @@ export function unregisterScrollListener(component, element) {
6+
}
7+
}
8+
}
9+
\ No newline at end of file
10+
-import { bpfrpt_proptype_WindowScroller } from "../WindowScroller.js";
11+
\ No newline at end of file

‎viewer/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs‎

Lines changed: 28 additions & 0 deletions
Large diffs are not rendered by default.

‎viewer/.yarn/releases/yarn-3.6.4.cjs‎

Lines changed: 874 additions & 0 deletions
Large diffs are not rendered by default.

‎viewer/.yarnrc.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
nodeLinker:node-modules
2+
3+
npmRegistryServer:"https://registry.npmjs.org"
4+
5+
plugins:
6+
-path:.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
7+
spec:"@yarnpkg/plugin-workspace-tools"
8+
9+
yarnPath:.yarn/releases/yarn-3.6.4.cjs

‎viewer/jest.config.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
exportdefault{
2+
projects:["<rootDir>/packages/lowcoder","<rootDir>/packages/lowcoder-core"],
3+
};
4+
// we use this for testing.

‎viewer/package.json‎

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"name":"lowcoder-root",
3+
"version":"2.4.5",
4+
"type":"module",
5+
"private":true,
6+
"workspaces": [
7+
"packages/*"
8+
],
9+
"engines": {
10+
"node":"^14.18.0 || >=16.0.0"
11+
},
12+
"scripts": {
13+
"start":"yarn workspace lowcoder start",
14+
"start-win":"LOWCODER_API_SERVICE_URL=http://localhost:3000 yarn start",
15+
"start:ee":"REACT_APP_EDITION=enterprise yarn workspace lowcoder start",
16+
"translate":"node --loader ts-node/esm ./scripts/translate.js",
17+
"build":"yarn node ./scripts/build.js",
18+
"test":"jest && yarn workspace lowcoder-comps test",
19+
"prepare":"yarn workspace lowcoder prepare",
20+
"build:core":"yarn workspace lowcoder-core build",
21+
"test:core":"yarn workspace lowcoder-core test",
22+
"lint":"eslint . --fix"
23+
},
24+
"devDependencies": {
25+
"@babel/preset-env":"^7.20.2",
26+
"@babel/preset-typescript":"^7.18.6",
27+
"@rollup/plugin-typescript":"^8.5.0",
28+
"@testing-library/jest-dom":"^5.16.5",
29+
"@types/file-saver":"^2.0.5",
30+
"@types/jest":"^29.2.2",
31+
"@types/mime":"^2.0.3",
32+
"@types/qrcode.react":"^1.0.2",
33+
"@types/react-grid-layout":"^1.3.0",
34+
"@types/react-helmet":"^6.1.5",
35+
"@types/react-resizable":"^3.0.5",
36+
"@types/react-router-dom":"^5.3.2",
37+
"@types/shelljs":"^0.8.11",
38+
"@types/simplebar":"^5.3.3",
39+
"@types/stylis":"^4.0.2",
40+
"@types/tern":"0.23.4",
41+
"@types/ua-parser-js":"^0.7.36",
42+
"@welldone-software/why-did-you-render":"^6.2.3",
43+
"add":"^2.0.6",
44+
"babel-jest":"^29.3.0",
45+
"babel-preset-react-app":"^10.0.1",
46+
"husky":"^8.0.1",
47+
"jest":"^29.5.0",
48+
"jest-canvas-mock":"^2.5.2",
49+
"jest-environment-jsdom":"^29.5.0",
50+
"lint-staged":"^13.0.1",
51+
"mq-polyfill":"^1.1.8",
52+
"prettier":"^3.1.0",
53+
"rimraf":"^3.0.2",
54+
"shelljs":"^0.8.5",
55+
"svgo":"^3.0.0",
56+
"ts-node":"^10.4.0",
57+
"typescript":"^4.8.4",
58+
"whatwg-fetch":"^3.6.2"
59+
},
60+
"lint-staged": {
61+
"**/*.{mjs,ts,tsx,json,md,html}":"prettier --write --ignore-unknown",
62+
"**/*.svg":"svgo"
63+
},
64+
"packageManager":"yarn@3.6.4",
65+
"resolutions": {
66+
"@types/react":"^18",
67+
"moment":"2.29.2",
68+
"canvas":"https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.2.1.tgz",
69+
"react-virtualized@^9.22.3":"patch:react-virtualized@npm%3A9.22.3#./.yarn/patches/react-virtualized-npm-9.22.3-0fff3cbf64.patch",
70+
"eslint-plugin-only-ascii@^0.0.0":"patch:eslint-plugin-only-ascii@npm%3A0.0.0#./.yarn/patches/eslint-plugin-only-ascii-npm-0.0.0-29e3417685.patch"
71+
},
72+
"dependencies": {
73+
"@lottiefiles/react-lottie-player":"^3.5.3",
74+
"@remixicon/react":"^4.1.1",
75+
"@testing-library/react":"^14.1.2",
76+
"@testing-library/user-event":"^14.5.1",
77+
"@types/styled-components":"^5.1.34",
78+
"antd-mobile":"^5.34.0",
79+
"chalk":"4",
80+
"flag-icons":"^7.2.1",
81+
"number-precision":"^1.6.0",
82+
"react-countup":"^6.5.3",
83+
"react-player":"^2.11.0",
84+
"resize-observer-polyfill":"^1.5.1",
85+
"rollup":"^4.13.0",
86+
"simplebar":"^6.2.5",
87+
"tui-image-editor":"^3.15.3"
88+
}
89+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"target":"es5",
4+
"experimentalDecorators":true,
5+
"lib": ["dom","dom.iterable","esnext"],
6+
"allowJs":true,
7+
"skipLibCheck":true,
8+
"esModuleInterop":true,
9+
"allowSyntheticDefaultImports":true,
10+
"strict":true,
11+
"forceConsistentCasingInFileNames":true,
12+
"noFallthroughCasesInSwitch":true,
13+
"module":"esnext",
14+
"moduleResolution":"Node",
15+
"resolveJsonModule":true,
16+
"isolatedModules":true,
17+
"noEmit":true,
18+
"jsx":"react-jsx",
19+
"baseUrl":"./src"
20+
},
21+
"include": ["src"],
22+
"exclude": ["@types/eslint-scope"]
23+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp