perkeep/server/camlistored/ui/mobile.html

56 lines
1.9 KiB
HTML
Raw Normal View History

<!--
Copyright 2014 The Camlistore Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=0.75">
<link rel="shortcut icon" sizes="16x16" href="safe1-16.png">
<link rel="shortcut icon" sizes="32x32" href="safe1-32.png">
<link rel="apple-touch-icon" sizes="16x16" href="safe1-16.png">
<link rel="apple-touch-icon" sizes="32x32" href="safe1-32.png">
<script src="closure/goog/base.js"></script>
<script src="./deps.js"></script>
<script src="?camli.mode=config&var=CAMLISTORE_CONFIG"></script>
<script src="react/react-with-addons.min.js"></script>
<script src="react/react-dom.min.js"></script>
<script>
goog.require('goog.Uri');
goog.require('cam.MobileSetupView');
</script>
<link rel="stylesheet" href="index.css" type="text/css">
<link rel="stylesheet" href="mobile_setup.css" type="text/css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
</head>
<body class='mobile-setup-page'>
<script>
var render = function() {
var newURL = new goog.Uri(window.location.href);
var MobileSetupView = React.createFactory(cam.MobileSetupView);
var mobile = MobileSetupView({
baseURL: newURL.resolve(new goog.Uri(CAMLISTORE_CONFIG.uiRoot)),
defaultUsername: CAMLISTORE_CONFIG.username || '',
});
ReactDOM.render(mobile, document.body);
};
render();
</script>
</body>
</html>