1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-12-30 16:21:56 +00:00
now-playing/layouts/admin/admin.html

33 lines
1.3 KiB
HTML
Raw Normal View History

2019-12-03 23:41:09 +00:00
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin</title>
</head>
<body>
<script src="https://unpkg.com/react@^16/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@^16/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/netlify-cms-default-exports@2.2.1/dist/netlify-cms-default-exports.js"></script>
<script src="https://unpkg.com/netlify-cms-app@2.10.0-beta.2/dist/netlify-cms-app.js"></script>
<script src="https://unpkg.com/netlify-cms-backend-fs@0.4.4/dist/index.js"></script>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script>
var appEnv = {{ getenv "HUGO_ENV" }}
main()
async function main() {
const config = await fetch('config.json').then(response => response.json())
config.load_config_file = false
if (!appEnv) {
NetlifyCmsApp.registerBackend('file-system', FileSystemBackendClass)
config.backend = {
name: 'file-system',
api_root: 'http://localhost:4242/api'
}
}
NetlifyCmsApp.init({ config })
}
</script>
</body>
</html>