summaryrefslogtreecommitdiff
path: root/src/web/app/stats/script.js
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-08-12 15:17:03 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-08-12 15:17:03 +0900
commitdd1aa8c7d6ec003fcf187c1fc8e6c56f60723414 (patch)
tree02138842254347d2ee8ceea73e439de040cc9ccb /src/web/app/stats/script.js
parentMerge pull request #687 from syuilo/greenkeeper/reconnecting-websocket-3.1.1 (diff)
downloadmisskey-dd1aa8c7d6ec003fcf187c1fc8e6c56f60723414.tar.gz
misskey-dd1aa8c7d6ec003fcf187c1fc8e6c56f60723414.tar.bz2
misskey-dd1aa8c7d6ec003fcf187c1fc8e6c56f60723414.zip
stats
Diffstat (limited to 'src/web/app/stats/script.js')
-rw-r--r--src/web/app/stats/script.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/web/app/stats/script.js b/src/web/app/stats/script.js
new file mode 100644
index 0000000000..75063501bb
--- /dev/null
+++ b/src/web/app/stats/script.js
@@ -0,0 +1,23 @@
+/**
+ * Stats
+ */
+
+// Style
+import './style.styl';
+
+import * as riot from 'riot';
+require('./tags');
+import init from '../init';
+
+document.title = 'Misskey Statistics';
+
+/**
+ * init
+ */
+init(me => {
+ mount(document.createElement('mk-index'));
+});
+
+function mount(content) {
+ riot.mount(document.getElementById('app').appendChild(content));
+}