mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
* chore(e2e): WIP to add files needed for app-scripts * chore(e2e): WIP one e2e test building but with errors * chore(e2e): move e2e.prod to working with app-scripts move shared functions into util, add support for debug flag when running e2e.prod / demos.prod which gets passed to app-scripts * chore(build): fix app-scripts build for all e2e and demos * chore(e2e): update ionic-angular import path * chore(build): update dev paths to work with prod * chore(e2e): get watch working with e2e prod * docs(scripts): update README for running e2e and demos closes #8411 closes #10023
50 lines
1.3 KiB
HTML
50 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html dir="ltr" lang="en">
|
|
<head>
|
|
<title>Ionic E2E</title>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<link id="ionicLink" href="./build/main.css" rel="stylesheet">
|
|
<link href="../../../../css/e2e.shared.css" rel="stylesheet">
|
|
|
|
<script>
|
|
if (location.href.indexOf('snapshot=true') > -1) {
|
|
document.documentElement.classList.add('snapshot');
|
|
} else {
|
|
document.documentElement.classList.remove('snapshot');
|
|
}
|
|
|
|
if (location.href.indexOf('cordova=true') > -1) {
|
|
window.cordova = {};
|
|
}
|
|
|
|
if (location.href.indexOf('rtl=true') > -1) {
|
|
document.dir = 'rtl';
|
|
} else {
|
|
document.dir = 'ltr';
|
|
}
|
|
|
|
if (location.href.indexOf('theme=dark') > -1) {
|
|
var link = document.getElementById('ionicLink');
|
|
link.setAttribute('href', link.getAttribute('href').replace('.css', '.dark.css'));
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<ion-app></ion-app>
|
|
|
|
<script>
|
|
if (document.dir === 'rtl') {
|
|
document.body.classList.add('rtl');
|
|
} else {
|
|
document.body.classList.remove('rtl');
|
|
}
|
|
</script>
|
|
<script src="../../../../polyfills/polyfills.js"></script>
|
|
<script src="./build/main.js"></script>
|
|
</body>
|
|
</html>
|