-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 7be44e6 🚀
- Loading branch information
0 parents
commit c4232ff
Showing
897 changed files
with
298,168 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,63 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>amis app 模式</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<link | ||
type="image/x-icon" | ||
rel="shortcut icon" | ||
href="/amis/static/favicon_b3b0647.png" | ||
/> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, maximum-scale=1" | ||
/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <script type="module"> | ||
let theme = localStorage.getItem('amis-theme') || 'cxd'; | ||
if (theme === 'default') { | ||
theme = 'cxd'; | ||
} | ||
|
||
['ang', 'cxd', 'dark', 'antd'].forEach(key => { | ||
const link = document.createElement('link'); | ||
link.setAttribute('rel', 'stylesheet'); | ||
link.setAttribute('title', key); | ||
if (theme !== key) { | ||
link.setAttribute('disabled', 'disabled'); | ||
} | ||
link.setAttribute( | ||
'href', | ||
new URL( | ||
`../../packages/amis-ui/scss/themes/${key}.scss`, | ||
import.meta.url | ||
).href | ||
); | ||
document.head.appendChild(link); | ||
}); | ||
</script> | ||
|
||
<link rel="stylesheet" href="/amis/pkg/style_bb14a0f.css" /> | ||
<link | ||
rel="stylesheet" href="/amis/pkg/npm_34eaf92.css" /> | ||
<style> | ||
.app-wrapper, | ||
.schema-wrapper { | ||
position: relative; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="root" class="app-wrapper"></div> | ||
<script type="module"> | ||
import {bootstrap} from './index.jsx'; | ||
const initialState = {}; | ||
bootstrap(document.getElementById('root'), initialState); | ||
</script> | ||
|
||
<script rel="stylesheet" src="/amis/packages/amis-ui/scss/helper.css_11b972d.js"></script> | ||
</body> | ||
</html> |
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,66 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>amis app 模式</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<link | ||
type="image/x-icon" | ||
rel="shortcut icon" | ||
href="/amis/static/favicon_b3b0647.png" | ||
/> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, maximum-scale=1" | ||
/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> | ||
<link rel="stylesheet" href="/amis/pkg/style_bb14a0f.css" /> | ||
<link rel="stylesheet" href="/amis/pkg/npm_34eaf92.css" /> | ||
<style> | ||
.app-wrapper, | ||
.schema-wrapper { | ||
position: relative; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
<script type="text/javascript">var theme = localStorage.getItem('amis-theme') || 'cxd'; | ||
if (theme === 'default') { | ||
theme = 'cxd'; | ||
} | ||
// 非 IE 模式 | ||
if (window.navigator.userAgent.indexOf('Trident') === -1) { | ||
document.write("<link rel=\"stylesheet\" title=\"ang\" ".concat(theme !== 'ang' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/ang_85c9d8b.css', "\" />")); | ||
document.write("<link rel=\"stylesheet\" title=\"cxd\" ".concat(theme !== 'cxd' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/cxd_9a9e1ab.css', "\" />")); | ||
document.write("<link rel=\"stylesheet\" title=\"dark\" ".concat(theme !== 'dark' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/dark_8ddab35.css', "\" />")); | ||
document.write("<link rel=\"stylesheet\" title=\"antd\" ".concat(theme !== 'antd' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/antd_6bcff6d.css', "\" />")); | ||
} | ||
else { | ||
document.write("<link rel=\"stylesheet\" title=\"ang\" ".concat(theme !== 'ang' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/ang-ie11_f1c2b0d.css', "\" />")); | ||
document.write("<link rel=\"stylesheet\" title=\"cxd\" ".concat(theme !== 'cxd' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/cxd-ie11_583f51c.css', "\" />")); | ||
document.write("<link rel=\"stylesheet\" title=\"dark\" ".concat(theme !== 'dark' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/dark-ie11_3afa2be.css', "\" />")); | ||
document.write("<link rel=\"stylesheet\" title=\"antd\" ".concat(theme !== 'antd' ? 'disabled' : '', " href=\"").concat('/amis/n/amis/lib/themes/antd-ie11_82130fc.css', "\" />")); | ||
} | ||
</script> | ||
|
||
<link rel="stylesheet" href="/amis/n/amis/lib/helper_673849d.css" /> </head> | ||
|
||
<body> | ||
<div id="root" class="app-wrapper"></div> | ||
<script src="/amis/pkg/npm_088323b.js"></script> | ||
<script type="text/javascript" src="/amis/pkg/examples/app/index.html_map_3a03717.js"></script> | ||
<script type="text/javascript" src="/amis/pkg/app_902bff9.js"></script> | ||
<script type="text/javascript" src="/amis/pkg/tinymce_d50ac2e.js"></script> | ||
<script type="text/javascript" src="/amis/pkg/color-picker_ed409c5.js"></script> | ||
<script type="text/javascript" src="/amis/pkg/barcode_92ae0a9.js"></script> | ||
<script type="text/javascript" src="/amis/pkg/markdown_5c129a3.js"></script> | ||
<script type="text/javascript" src="/amis/pkg/rest_06b55fd.js"></script> | ||
<script type="text/javascript"> | ||
/* @require examples/app/index.jsx 标记为同步依赖,提前加载 */ | ||
amis.require(['7d8eb4e'], function (app) { | ||
var initialState = {}; | ||
app.bootstrap(document.getElementById('root'), initialState); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.