This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #492 from ice-lab/release-next
Release rc.3
- Loading branch information
Showing
255 changed files
with
9,264 additions
and
2,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
chrome 55 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { defineConfig } from '@ice/app'; | ||
|
||
export default defineConfig({}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "app-config", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"start": "ice start", | ||
"build": "ice build", | ||
"build:splitChunks": "ice build --config splitChunks.config.mts" | ||
}, | ||
"description": "", | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@ice/app": "workspace:*", | ||
"@ice/plugin-auth": "workspace:*", | ||
"@ice/plugin-rax-compat": "workspace:*", | ||
"@ice/runtime": "workspace:*", | ||
"@uni/env": "^1.1.0", | ||
"ahooks": "^3.3.8", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.0.0", | ||
"@types/react-dom": "^18.0.2", | ||
"speed-measure-webpack-plugin": "^1.5.0", | ||
"webpack": "^5.73.0" | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { defineAppConfig } from 'ice'; | ||
|
||
export default defineAppConfig({ | ||
app: { | ||
rootId: 'app', | ||
strict: true, | ||
errorBoundary: true, | ||
}, | ||
router: { | ||
type: 'browser', | ||
basename: '/ice', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Meta, Title, Links, Main, Scripts } from 'ice'; | ||
|
||
function Document() { | ||
return ( | ||
<html> | ||
<head> | ||
<meta charSet="utf-8" /> | ||
<meta name="description" content="ICE 3.0 Demo" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<Meta /> | ||
<Title /> | ||
<Links /> | ||
</head> | ||
<body> | ||
<Main /> | ||
<Scripts /> | ||
</body> | ||
</html> | ||
); | ||
} | ||
|
||
export default Document; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body { | ||
font-size: 14px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default function Error() { | ||
// @ts-ignore | ||
window.test(); | ||
return <>error</>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function Home() { | ||
return <h1>home</h1>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
declare module '*.module.less' { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
|
||
declare module '*.module.css' { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
|
||
declare module '*.module.scss' { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"compileOnSave": false, | ||
"buildOnSave": false, | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"outDir": "build", | ||
"module": "esnext", | ||
"target": "es6", | ||
"jsx": "react-jsx", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"lib": ["es6", "dom"], | ||
"sourceMap": true, | ||
"allowJs": true, | ||
"rootDir": "./", | ||
"forceConsistentCasingInFileNames": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"noImplicitAny": false, | ||
"importHelpers": true, | ||
"strictNullChecks": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"noUnusedLocals": true, | ||
"skipLibCheck": true, | ||
"paths": { | ||
"@/*": ["./src/*"], | ||
"ice": [".ice"] | ||
} | ||
}, | ||
"include": ["src", ".ice", "ice.config.*"], | ||
"exclude": ["node_modules", "build", "public"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import fs from 'fs'; | ||
|
||
export default { | ||
name: 'custom-plugin', | ||
setup({ onGetConfig }) { | ||
onGetConfig((config) => { | ||
config.transformPlugins = [...(config.transformPlugins || []), { | ||
name: 'custom-transform', | ||
transformInclude(id) { | ||
return !!id.match(/app.tsx$/); | ||
}, | ||
loadInclude(id) { | ||
return !!id.match(/app.tsx$/); | ||
}, | ||
load(id) { | ||
return fs.readFileSync(id, 'utf-8'); | ||
}, | ||
transform(code) { | ||
return code; | ||
}, | ||
}]; | ||
}); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
examples/basic-project/src/components/cssWithEscapedSymbols.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
.test { | ||
background: red; | ||
} | ||
|
||
._test { | ||
background: blue; | ||
} | ||
|
||
.className { | ||
background: red; | ||
} | ||
|
||
#someId { | ||
background: green; | ||
} | ||
|
||
.className .subClass { | ||
color: green; | ||
} | ||
|
||
#someId .subClass { | ||
color: blue; | ||
} | ||
|
||
.-a0-34a___f { | ||
color: red; | ||
} | ||
|
||
.m_x_\@ { | ||
margin-left: auto !important; | ||
margin-right: auto !important; | ||
} | ||
|
||
.B\&W\? { | ||
margin-left: auto !important; | ||
margin-right: auto !important; | ||
} | ||
|
||
/* matches elements with class=":`(" */ | ||
.\3A \`\( { | ||
color: aqua; | ||
} | ||
|
||
/* matches elements with class="1a2b3c" */ | ||
.\31 a2b3c { | ||
color: aliceblue; | ||
} | ||
|
||
/* matches the element with id="#fake-id" */ | ||
#\#fake-id { | ||
color: antiquewhite; | ||
} | ||
|
||
/* matches the element with id="-a-b-c-" */ | ||
#-a-b-c- { | ||
color: azure; | ||
} | ||
|
||
/* matches the element with id="©" */ | ||
#© { | ||
color: black; | ||
} | ||
|
||
.♥ { background: lime; } | ||
.© { background: lime; } | ||
.😍 { background: lime; } | ||
.“‘’” { background: lime; } | ||
.☺☃ { background: lime; } | ||
.⌘⌥ { background: lime; } | ||
.𝄞♪♩♫♬ { background: lime; } | ||
.💩 { background: lime; } | ||
.\? { background: lime; } | ||
.\@ { background: lime; } | ||
.\. { background: lime; } | ||
.\3A \) { background: lime; } | ||
.\3A \`\( { background: lime; } | ||
.\31 23 { background: lime; } | ||
.\31 a2b3c { background: lime; } | ||
.\<p\> { background: lime; } | ||
.\<\>\<\<\<\>\>\<\> { background: lime; } | ||
.\+\+\+\+\+\+\+\+\+\+\[\>\+\+\+\+\+\+\+\>\+\+\+\+\+\+\+\+\+\+\>\+\+\+\>\+\<\<\<\<\-\]\>\+\+\.\>\+\.\+\+\+\+\+\+\+\.\.\+\+\+\.\>\+\+\.\<\<\+\+\+\+\+\+\+\+\+\+\+\+\+\+\+\.\>\.\+\+\+\.\-\-\-\-\-\-\.\-\-\-\-\-\-\-\-\.\>\+\.\>\. { background: lime; } | ||
.\# { background: lime; } | ||
.\#\# { background: lime; } | ||
.\#\.\#\.\# { background: lime; } | ||
.\_ { background: lime; } | ||
.\{\} { background: lime; } | ||
.\#fake\-id { background: lime; } | ||
.foo\.bar { background: lime; } | ||
.\3A hover { background: lime; } | ||
.\3A hover\3A focus\3A active { background: lime; } | ||
.\[attr\=value\] { background: lime; } | ||
.f\/o\/o { background: lime; } | ||
.f\\o\\o { background: lime; } | ||
.f\*o\*o { background: lime; } | ||
.f\!o\!o { background: lime; } | ||
.f\'o\'o { background: lime; } | ||
.f\~o\~o { background: lime; } | ||
.f\+o\+o { background: lime; } | ||
|
||
.foo\/bar { | ||
background: hotpink; | ||
} | ||
|
||
.foo\\bar { | ||
background: hotpink; | ||
} | ||
|
||
.foo\/bar\/baz { | ||
background: hotpink; | ||
} | ||
|
||
.foo\\bar\\baz { | ||
background: hotpink; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
h2 { | ||
color: #000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.data { | ||
margin-top: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.data { | ||
margin-top: 10px; | ||
} |
Oops, something went wrong.