mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-10-29 01:46:07 +08:00
Add Meteor app to do corrections
This commit is contained in:
8
.meteor/.finished-upgraders
Normal file
8
.meteor/.finished-upgraders
Normal file
@ -0,0 +1,8 @@
|
||||
# This file contains information which helps Meteor properly upgrade your
|
||||
# app when you run 'meteor update'. You should check it into version control
|
||||
# with your project.
|
||||
|
||||
notices-for-0.9.0
|
||||
notices-for-0.9.1
|
||||
0.9.4-platform-file
|
||||
notices-for-facebook-graph-api-2
|
||||
1
.meteor/.gitignore
vendored
Normal file
1
.meteor/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
local
|
||||
7
.meteor/.id
Normal file
7
.meteor/.id
Normal file
@ -0,0 +1,7 @@
|
||||
# This file contains a token that is unique to your project.
|
||||
# Check it into your repository along with the rest of this directory.
|
||||
# It can be used for purposes such as:
|
||||
# - ensuring you don't accidentally deploy one app on top of another
|
||||
# - providing package authors with aggregated statistics
|
||||
|
||||
afj3021atte5d19acgu3
|
||||
8
.meteor/packages
Normal file
8
.meteor/packages
Normal file
@ -0,0 +1,8 @@
|
||||
# Meteor packages used by this project, one per line.
|
||||
# Check this file (and the other files in this directory) into your repository.
|
||||
#
|
||||
# 'meteor add' and 'meteor remove' will edit this file for you,
|
||||
# but you can also edit it by hand.
|
||||
|
||||
meteor-platform
|
||||
twbs:bootstrap
|
||||
2
.meteor/platforms
Normal file
2
.meteor/platforms
Normal file
@ -0,0 +1,2 @@
|
||||
server
|
||||
browser
|
||||
1
.meteor/release
Normal file
1
.meteor/release
Normal file
@ -0,0 +1 @@
|
||||
METEOR@1.1.0.3
|
||||
47
.meteor/versions
Normal file
47
.meteor/versions
Normal file
@ -0,0 +1,47 @@
|
||||
autoupdate@1.2.1
|
||||
base64@1.0.3
|
||||
binary-heap@1.0.3
|
||||
blaze@2.1.2
|
||||
blaze-tools@1.0.3
|
||||
boilerplate-generator@1.0.3
|
||||
callback-hook@1.0.3
|
||||
check@1.0.5
|
||||
ddp@1.1.0
|
||||
deps@1.0.7
|
||||
ejson@1.0.6
|
||||
fastclick@1.0.3
|
||||
geojson-utils@1.0.3
|
||||
html-tools@1.0.4
|
||||
htmljs@1.0.4
|
||||
http@1.1.0
|
||||
id-map@1.0.3
|
||||
jquery@1.11.3_2
|
||||
json@1.0.3
|
||||
launch-screen@1.0.2
|
||||
livedata@1.0.13
|
||||
logging@1.0.7
|
||||
meteor@1.1.6
|
||||
meteor-platform@1.2.2
|
||||
minifiers@1.1.5
|
||||
minimongo@1.0.8
|
||||
mobile-status-bar@1.0.3
|
||||
mongo@1.1.0
|
||||
observe-sequence@1.0.6
|
||||
ordered-dict@1.0.3
|
||||
random@1.0.3
|
||||
reactive-dict@1.1.0
|
||||
reactive-var@1.0.5
|
||||
reload@1.1.3
|
||||
retry@1.0.3
|
||||
routepolicy@1.0.5
|
||||
session@1.1.0
|
||||
spacebars@1.0.6
|
||||
spacebars-compiler@1.0.6
|
||||
templating@1.1.1
|
||||
tracker@1.0.7
|
||||
twbs:bootstrap@3.3.5
|
||||
ui@1.0.6
|
||||
underscore@1.0.3
|
||||
url@1.0.4
|
||||
webapp@1.2.0
|
||||
webapp-hashing@1.0.3
|
||||
7065
client/bootstrap.css
vendored
Normal file
7065
client/bootstrap.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13
client/client.js
Normal file
13
client/client.js
Normal file
@ -0,0 +1,13 @@
|
||||
Session.setDefault('counter', 0);
|
||||
|
||||
Template.hello.helpers({
|
||||
counter: function () {
|
||||
return Session.get('counter');
|
||||
}
|
||||
});
|
||||
|
||||
Template.hello.events({
|
||||
'click button': function () {
|
||||
Session.set('counter', Session.get('counter') + 1);
|
||||
}
|
||||
});
|
||||
22
client/index.html
Normal file
22
client/index.html
Normal file
@ -0,0 +1,22 @@
|
||||
<head>
|
||||
<title>zh-Hans</title>
|
||||
</head>
|
||||
<body>
|
||||
{{> nav}}
|
||||
{{> hello}}
|
||||
</body>
|
||||
|
||||
<template name="nav">
|
||||
<div class="navbar navbar-default navbar-fixed-top">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<div class="navbar-brand">zh-Hans character decomposition</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template name="hello">
|
||||
<button>Click me!</button>
|
||||
<p>You've pressed the button {{counter}} times.</p>
|
||||
</template>
|
||||
0
client/style.css
Normal file
0
client/style.css
Normal file
24
server/server.js
Normal file
24
server/server.js
Normal file
@ -0,0 +1,24 @@
|
||||
var child_process = Npm.require('child_process');
|
||||
var path = Npm.require('path');
|
||||
|
||||
function get_glyph_data(characters) {
|
||||
var json = '';
|
||||
var font = path.join(process.env.PWD, 'derived', 'ukai.svg');
|
||||
var main = path.join(process.env.PWD, 'scripts', 'main.py');
|
||||
var child = child_process.spawn(main, ['-f', font].concat(characters));
|
||||
child.stdout.on('data', function(data) {
|
||||
json += data;
|
||||
});
|
||||
child.stderr.on('data', function(data) {
|
||||
console.error('' + data);
|
||||
});
|
||||
child.on('close', function(code) {
|
||||
console.log('Subprocess exited with code: ' + code);
|
||||
console.log('Got JSON data:');
|
||||
return JSON.parse(json);
|
||||
});
|
||||
}
|
||||
|
||||
Meteor.startup(function() {
|
||||
get_glyph_data(['4dff', '4e00', '4e01']);
|
||||
});
|
||||
Reference in New Issue
Block a user