Skip to content
Snippets Groups Projects
Commit c841e7cb authored by Eloi Perdereau's avatar Eloi Perdereau
Browse files

échange de place forestry/netlifyCMS lepuget/admin

parent 034930ce
No related branches found
No related tags found
No related merge requests found
<!-- admin/index.html --> <!-- forestryio: ignore; forestryio: admin -->
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CCLuminy CMS</title> <meta name="robots" content="noindex" />
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> <title>Admin</title>
<meta name="description" content=" " />
<meta name="author" content=" " />
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="320" />
<!-- Use maximum-scale and user-scalable at your own risk. It disables pinch/zoom. Think about usability/accessibility before including.-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Google font -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<!-- Fort awesome icon kit -->
<script src="https://use.fortawesome.com/b6f38602.js"></script>
</head> </head>
<body> <body>
<!-- Locale translate script --> <div id="app">
<script>
import CMS from 'netlify-cms-app';
import { fr } from 'netlify-cms-locales';
CMS.registerLocale('fr', fr); </div>
</script> <script id="admin-config-script" type="text/javascript">
<script> var env = {
if (window.netlifyIdentity) { siteId: "ngsw7f5rep036a",
window.netlifyIdentity.on("init", user => { local: false
if (!user) { };
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/"; function uuidv4() {
}); return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
} var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
}); });
} }
var uuid = uuidv4()
var script = document.createElement('script');
script.src = "https://app.forestry.io/admin/forestry.min.js?hash=" + uuid
script.id = "forestry-admin";
document.body.appendChild(script);
var link = document.createElement("link");
link.type = "text/css";
link.rel = "stylesheet";
link.href = "https://app.forestry.io/admin/main.css?hash=" + uuid
document.head.appendChild(link);
</script> </script>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
</body> </body>
</html> </html>
File moved
<!-- forestryio: ignore; forestryio: admin --> <!-- admin/index.html -->
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" /> <title>CCLuminy CMS</title>
<title>Admin</title> <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<meta name="description" content=" " />
<meta name="author" content=" " />
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="320" />
<!-- Use maximum-scale and user-scalable at your own risk. It disables pinch/zoom. Think about usability/accessibility before including.-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Google font -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<!-- Fort awesome icon kit -->
<script src="https://use.fortawesome.com/b6f38602.js"></script>
</head> </head>
<body> <body>
<div id="app"> <!-- Locale translate script -->
<script>
import CMS from 'netlify-cms-app';
import { fr } from 'netlify-cms-locales';
</div> CMS.registerLocale('fr', fr);
<script id="admin-config-script" type="text/javascript"> </script>
var env = { <script>
siteId: "ngsw7f5rep036a", if (window.netlifyIdentity) {
local: false window.netlifyIdentity.on("init", user => {
}; if (!user) {
window.netlifyIdentity.on("login", () => {
function uuidv4() { document.location.href = "/admin/";
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { });
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); }
return v.toString(16);
}); });
} }
var uuid = uuidv4()
var script = document.createElement('script');
script.src = "https://app.forestry.io/admin/forestry.min.js?hash=" + uuid
script.id = "forestry-admin";
document.body.appendChild(script);
var link = document.createElement("link");
link.type = "text/css";
link.rel = "stylesheet";
link.href = "https://app.forestry.io/admin/main.css?hash=" + uuid
document.head.appendChild(link);
</script> </script>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
</body> </body>
</html> </html>
<!DOCTYPE html>
<html>
<head>
<title>A static website</title>
<!-- include the widget -->
<script type="text/javascript" src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
<!-- Add a menu:
Log in / Sign up - when the user is not logged in
Username / Log out - when the user is logged in
-->
<div data-netlify-identity-menu></div>
<!-- Add a simpler button:
Simple button that will open the modal.
-->
<div data-netlify-identity-button>Login with Netlify Identity</div>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment