Compare commits
394 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b56d39356 | ||
|
|
8d1d6d63ad | ||
|
|
a713105878 | ||
|
|
c527a62ce6 | ||
|
|
16c76b2598 | ||
|
|
ad134330c4 | ||
|
|
05438daf48 | ||
|
|
afebf68cae | ||
|
|
ab4bdf355c | ||
|
|
0f4abd6ace | ||
|
|
2901c978dc | ||
|
|
21e9dbc381 | ||
|
|
b2ceafa89e | ||
|
|
d8633a8411 | ||
|
|
f4bf09eaab | ||
|
|
f0c40aae34 | ||
|
|
90ed8ed198 | ||
|
|
9af6a529dd | ||
|
|
269dfbdc1d | ||
|
|
d01cd24b0d | ||
|
|
93ac3b217f | ||
|
|
a38d6cf839 | ||
|
|
bd656b46ef | ||
|
|
20cce4dcda | ||
|
|
d286dda07f | ||
|
|
45b6dabcd2 | ||
|
|
d476c58a9c | ||
|
|
e837bb68fb | ||
|
|
e2adc7bdc4 | ||
|
|
22716517c5 | ||
|
|
8b82965c12 | ||
|
|
65cf975a35 | ||
|
|
1c78fea48f | ||
|
|
08f49c8339 | ||
|
|
bed81d26b2 | ||
|
|
38b13fca27 | ||
|
|
0869230b13 | ||
|
|
80d4b6b431 | ||
|
|
fb7e9136d4 | ||
|
|
059ff367ff | ||
|
|
d322e062ad | ||
|
|
f807f4222f | ||
|
|
1d4b046723 | ||
|
|
b9fc114e02 | ||
|
|
50047411c3 | ||
|
|
610ded2f83 | ||
|
|
2a644e787a | ||
|
|
90b339e5c3 | ||
|
|
a213ad12d0 | ||
|
|
a4b8b942a1 | ||
|
|
df7ef0fbdb | ||
|
|
f42dc481df | ||
|
|
623be748c0 | ||
|
|
35c84ee0f0 | ||
|
|
4d84f271be | ||
|
|
5458c548fb | ||
|
|
a9be057fe8 | ||
|
|
564c228d41 | ||
|
|
3f6875abb6 | ||
|
|
a2aa829b45 | ||
|
|
08b6ec9e31 | ||
|
|
ee99d33275 | ||
|
|
7b9e8dbc7d | ||
|
|
44f45e7e93 | ||
|
|
a49f7ec594 | ||
|
|
9ee12e4167 | ||
|
|
33ad7d909a | ||
|
|
e5e29dc6cb | ||
|
|
34dd40bcbf | ||
|
|
0e8e9f5cbc | ||
|
|
d39cbb3ef5 | ||
|
|
5470b241f6 | ||
|
|
6507c22355 | ||
|
|
96c2f4b3b6 | ||
|
|
b0c521246e | ||
|
|
5c0616ad47 | ||
|
|
523f37ccc1 | ||
|
|
5e2768bbf6 | ||
|
|
61b3e7d47d | ||
|
|
ed6fc32d76 | ||
|
|
4c74675edd | ||
|
|
d43ee25e71 | ||
|
|
46f00e0bc7 | ||
|
|
d3cea71e50 | ||
|
|
0516a6f54d | ||
|
|
eb8373f8b4 | ||
|
|
202bbbd357 | ||
|
|
b9e404c4da | ||
|
|
e16ce83c03 | ||
|
|
83c266d083 | ||
|
|
349b8f436c | ||
|
|
e9a0a01e14 | ||
|
|
457b8920f2 | ||
|
|
31b63e9a87 | ||
|
|
8dc3725b47 | ||
|
|
e2096ba9f4 | ||
|
|
231fcbb3bc | ||
|
|
75c22de166 | ||
|
|
d196127392 | ||
|
|
fb4dc906aa | ||
|
|
9937ba8039 | ||
|
|
d92722f1c2 | ||
|
|
69096d7816 | ||
|
|
2846827959 | ||
|
|
67bd56e692 | ||
|
|
95f5e8e5ae | ||
|
|
eb52a7548c | ||
|
|
b479b61926 | ||
|
|
726a08b05b | ||
|
|
fc2f76c31c | ||
|
|
839e1a5cbd | ||
|
|
12beeffae0 | ||
|
|
83ad7d9f6c | ||
|
|
6e65d67f14 | ||
|
|
a127e2f5a5 | ||
|
|
9154b7f38c | ||
|
|
c2d8cad249 | ||
|
|
e9ffe5baec | ||
|
|
fffa325e83 | ||
|
|
ed14ed2bb7 | ||
|
|
7c9e020b88 | ||
|
|
d711d1519b | ||
|
|
3361f7e435 | ||
|
|
3a79f99f77 | ||
|
|
ff25b55c1f | ||
|
|
ae6f6b0da1 | ||
|
|
6dc714371d | ||
|
|
5762b133e5 | ||
|
|
50741657a5 | ||
|
|
ff9a38f23f | ||
|
|
3b11b31e7c | ||
|
|
44e5dfb4d4 | ||
|
|
30ea10830c | ||
|
|
eb0f611d78 | ||
|
|
96ef192738 | ||
|
|
1970616443 | ||
|
|
aac4c9a872 | ||
|
|
aebfb62ac4 | ||
|
|
9748043466 | ||
|
|
b6f98e741b | ||
|
|
b513cca4b5 | ||
|
|
65f53a3fa4 | ||
|
|
bf217e7fdd | ||
|
|
09e646ee95 | ||
|
|
ab18228131 | ||
|
|
164e9f5c8a | ||
|
|
faa8759851 | ||
|
|
c2a84606a1 | ||
|
|
42d51b7612 | ||
|
|
38dc4319c0 | ||
|
|
fda966be02 | ||
|
|
bf47a81dc1 | ||
|
|
eef4e06f29 | ||
|
|
2d2c2b75e3 | ||
|
|
0066e7fd40 | ||
|
|
d596723b7b | ||
|
|
c7269423ed | ||
|
|
ee60e4d043 | ||
|
|
c98a73c6a8 | ||
|
|
0116523c63 | ||
|
|
c1afa7c385 | ||
|
|
6630ff8fee | ||
|
|
14f303c581 | ||
|
|
0728af14dd | ||
|
|
1edacf3eba | ||
|
|
3d6d210563 | ||
|
|
df09da4b0a | ||
|
|
b02de43b50 | ||
|
|
1b3ca2f697 | ||
|
|
886614527f | ||
|
|
5f05bf0dc5 | ||
|
|
59710ce2cf | ||
|
|
b533191bc9 | ||
|
|
4fa1115e8f | ||
|
|
be5a069b23 | ||
|
|
80da41c866 | ||
|
|
d278a7c1fd | ||
|
|
69de209aba | ||
|
|
15616d112f | ||
|
|
95adca5cde | ||
|
|
82c5460936 | ||
|
|
b850695715 | ||
|
|
d5af972272 | ||
|
|
8946f9b97c | ||
|
|
348339520d | ||
|
|
f0bdcd5557 | ||
|
|
b1ee0e44f3 | ||
|
|
c96e6afbd7 | ||
|
|
77334341ea | ||
|
|
5f22743778 | ||
|
|
03986cb88a | ||
|
|
c796adf40d | ||
|
|
2890ff5537 | ||
|
|
a6ba61a2bf | ||
|
|
db5e080992 | ||
|
|
63d7f98e2c | ||
|
|
7997ff6ae9 | ||
|
|
b3126cf6b6 | ||
|
|
ab1ea53ce3 | ||
|
|
82a87cb653 | ||
|
|
d2fc526039 | ||
|
|
88587c6487 | ||
|
|
4578dbf906 | ||
|
|
cd48ef6f86 | ||
|
|
0f0e67ec9c | ||
|
|
bbb2a223af | ||
|
|
5278e52e2f | ||
|
|
e6290abef7 | ||
|
|
346fee1208 | ||
|
|
1b9f5f870e | ||
|
|
26b624d1dd | ||
|
|
7cbd9732b7 | ||
|
|
44152116b4 | ||
|
|
3ad35992fc | ||
|
|
e963eb24a0 | ||
|
|
827e2b403c | ||
|
|
0fd4712021 | ||
|
|
ae0af05e78 | ||
|
|
dd00f283e6 | ||
|
|
eddf968629 | ||
|
|
7fdd83ba84 | ||
|
|
1bb4f6850e | ||
|
|
f47b931380 | ||
|
|
d9f686f0d6 | ||
|
|
73cef20073 | ||
|
|
fd68565d8e | ||
|
|
a45d165d33 | ||
|
|
904f828d83 | ||
|
|
f00420c92f | ||
|
|
457705014c | ||
|
|
6faf3765e0 | ||
|
|
4abdce2b70 | ||
|
|
3b44f5fe27 | ||
|
|
7332dc69ed | ||
|
|
381387c04f | ||
|
|
e0db9fdfb0 | ||
|
|
a8d66b22af | ||
|
|
bdc1e622f9 | ||
|
|
ad8130ae9b | ||
|
|
394a3bb9f1 | ||
|
|
54907b462c | ||
|
|
1350de1910 | ||
|
|
89d3fd69e1 | ||
|
|
7325081ec9 | ||
|
|
680872a302 | ||
|
|
a3c65d6c69 | ||
|
|
a189265326 | ||
|
|
b447e913ff | ||
|
|
b5a249fb4b | ||
|
|
ae081c147e | ||
|
|
3ce0d0bdd8 | ||
|
|
a71abd9fe3 | ||
|
|
f1d804e3a1 | ||
|
|
aa7479d111 | ||
|
|
7c23fb3884 | ||
|
|
b707015d9c | ||
|
|
10d5611dcd | ||
|
|
9009a2a434 | ||
|
|
8b98a98faf | ||
|
|
44de3e4bbc | ||
|
|
ba2e9a12b0 | ||
|
|
57304f55c1 | ||
|
|
1eea358c35 | ||
|
|
f671b7c34f | ||
|
|
211028d80d | ||
|
|
c79359ea2f | ||
|
|
93f92da1df | ||
|
|
25020293ec | ||
|
|
4e7f1d3e8b | ||
|
|
e6ba0a14e8 | ||
|
|
b285a433b2 | ||
|
|
f19c786f64 | ||
|
|
806e545361 | ||
|
|
ae62781d53 | ||
|
|
3abfcf7c95 | ||
|
|
dc8b829d8a | ||
|
|
353396398b | ||
|
|
bf99b34596 | ||
|
|
f3af0f3a99 | ||
|
|
0fd4a8395e | ||
|
|
cb664003a5 | ||
|
|
4686f17d18 | ||
|
|
45c96dc136 | ||
|
|
389fdc8dfa | ||
|
|
b94e6126cd | ||
|
|
bee4f7e6bc | ||
|
|
345b7f5ffe | ||
|
|
f1b40eb38c | ||
|
|
f459c26bd7 | ||
|
|
825b678fb0 | ||
|
|
ce3818f99a | ||
|
|
94e2b60cd1 | ||
|
|
3bbef71a5e | ||
|
|
ca280673d1 | ||
|
|
ff477c035a | ||
|
|
1c0b76a8c2 | ||
|
|
bef741332d | ||
|
|
f54620ee24 | ||
|
|
7d28e69b1c | ||
|
|
abfe1b4a68 | ||
|
|
59e400d7b8 | ||
|
|
4b3bb3bcde | ||
|
|
a4a562bd40 | ||
|
|
a1506d4f37 | ||
|
|
8b0f58cb69 | ||
|
|
1a14674352 | ||
|
|
a2c32dd908 | ||
|
|
eb7383b31e | ||
|
|
2106ec0e93 | ||
|
|
5649dc9079 | ||
|
|
0d09607d30 | ||
|
|
d7415ea44a | ||
|
|
31579213b1 | ||
|
|
c1ae75e2b0 | ||
|
|
2498c0e0b1 | ||
|
|
3b02536cf7 | ||
|
|
cc2d91cc51 | ||
|
|
3f8cf106a1 | ||
|
|
c80e0a51bf | ||
|
|
9d3e009013 | ||
|
|
6fb2247dd7 | ||
|
|
2f9473b3d7 | ||
|
|
604ef89067 | ||
|
|
456c63fe55 | ||
|
|
df77d7680c | ||
|
|
ae0b9a8a09 | ||
|
|
b552f2c8f1 | ||
|
|
e3d8dfa457 | ||
|
|
9b1767dade | ||
|
|
6d1adb28f3 | ||
|
|
ff119789ac | ||
|
|
4540082232 | ||
|
|
bfed9f3c61 | ||
|
|
b37e4644b6 | ||
|
|
2f3ee50ec8 | ||
|
|
f77443156d | ||
|
|
2ea5c64256 | ||
|
|
0d3e156346 | ||
|
|
8fd0297091 | ||
|
|
ba9c80ff05 | ||
|
|
ff133c2f3d | ||
|
|
2e29676313 | ||
|
|
300f5921e8 | ||
|
|
7ba5f1ef68 | ||
|
|
7140dcce95 | ||
|
|
1367418fb2 | ||
|
|
4fb1ad11ca | ||
|
|
3cdb576140 | ||
|
|
ba9051783a | ||
|
|
a253c488a5 | ||
|
|
318f6f2fcb | ||
|
|
fde6ddf985 | ||
|
|
3bb88a5c03 | ||
|
|
534a843df1 | ||
|
|
fb35918839 | ||
|
|
850a4931c3 | ||
|
|
b5e1c86a93 | ||
|
|
e876732ce0 | ||
|
|
2b822176e4 | ||
|
|
03eb66a4d0 | ||
|
|
b449bb3724 | ||
|
|
0d1fa7904e | ||
|
|
dbd1060cb3 | ||
|
|
5b7a4edab4 | ||
|
|
827fb3c97a | ||
|
|
a5015b243b | ||
|
|
e5ef190f3c | ||
|
|
1057277355 | ||
|
|
12896a6325 | ||
|
|
63ebbbf932 | ||
|
|
3fe369d59d | ||
|
|
27c9f53649 | ||
|
|
440d126579 | ||
|
|
4a5992dab7 | ||
|
|
0d7093e29f | ||
|
|
56b1ddd684 | ||
|
|
40d026c7cd | ||
|
|
cc1018c62c | ||
|
|
6e9990831d | ||
|
|
7772880eff | ||
|
|
9e79698906 | ||
|
|
9f083588cf | ||
|
|
f6da78f456 | ||
|
|
741e8247a9 | ||
|
|
8198fb0391 | ||
|
|
458fca69f6 | ||
|
|
d150cdf2a5 | ||
|
|
b7d3b94c6c | ||
|
|
5a8d662ba0 | ||
|
|
f76aa28d66 | ||
|
|
fb9654a526 | ||
|
|
a35fc74542 | ||
|
|
f5639ad74e | ||
|
|
3ad698058b |
1
.gitignore
vendored
@@ -5,5 +5,6 @@ build
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
*.log
|
*.log
|
||||||
app/js/db.js
|
app/js/db.js
|
||||||
|
app/db.json
|
||||||
nginx.pid
|
nginx.pid
|
||||||
template_cache.js
|
template_cache.js
|
||||||
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "data"]
|
||||||
|
path = data
|
||||||
|
url = https://github.com/cmmcleod/coriolis-data.git
|
||||||
20
.htaccess
@@ -1,20 +0,0 @@
|
|||||||
RewriteEngine on
|
|
||||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
|
||||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
|
||||||
RewriteCond %{REQUEST_FILENAME} -d
|
|
||||||
RewriteRule ^.*$ - [NC,L]
|
|
||||||
|
|
||||||
RewriteRule ^(.*) /index.html [NC,L]
|
|
||||||
|
|
||||||
<IfModule mod_expires.c>
|
|
||||||
# Activate mod_expires for this directory
|
|
||||||
ExpiresActive on
|
|
||||||
|
|
||||||
ExpiresDefault "access"
|
|
||||||
ExpiresByType text/html "access"
|
|
||||||
ExpiresByType application/json "access"
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
<IfModule mod_headers.c>
|
|
||||||
Header add Access-Control-Allow-Origin "*"
|
|
||||||
</IfModule>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
app/js/db.js
|
|
||||||
19
.travis.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
language: node_js
|
||||||
|
notifications:
|
||||||
|
email: false
|
||||||
|
sudo: false
|
||||||
|
node_js:
|
||||||
|
- "0.12"
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- node_modules
|
||||||
|
- bower_components
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npm install -g gulp
|
||||||
|
- npm install -g bower
|
||||||
|
- bower install
|
||||||
|
script:
|
||||||
|
- gulp lint
|
||||||
|
- gulp build-prod
|
||||||
|
- gulp test
|
||||||
17
README.md
@@ -1,14 +1,16 @@
|
|||||||
[](https://waffle.io/cmmcleod/coriolis) [](http://waffle.io/cmmcleod/coriolis)
|
[](https://travis-ci.org/cmmcleod/coriolis) [](https://waffle.io/cmmcleod/coriolis) [](http://waffle.io/cmmcleod/coriolis)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
The Coriolis project was inspired by [E:D Shipyard](http://www.edshipyard.com/) and, of course, [Elite Dangerous](http://www.elitedangerous.com). The ultimate goal of Coriolis is to provide rich features to support in-game play and planning while engaging the E:D community to support its development.
|
The Coriolis project was inspired by [E:D Shipyard](http://www.edshipyard.com/) and, of course, [Elite Dangerous](http://www.elitedangerous.com). The ultimate goal of Coriolis is to provide rich features to support in-game play and planning while engaging the E:D community to support its development.
|
||||||
|
|
||||||
Coriolis was created for non-commercial purposes. It is not endorsed by nor reflects the views or opinions of Frontier Developments.
|
Coriolis was created using assets and imagery from Elite: Dangerous, with the permission of Frontier Developments plc, for non-commercial purposes. It is not endorsed by nor reflects the views or opinions of Frontier Developments and no employee of Frontier Developments was involved in the making of it.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Please [submit issues](https://github.com/cmmcleod/coriolis/issues), or better yet [pull requests](http://www.elitedangerous.com) for any corrections or additions to the database or the code.
|
Please [submit issues](https://github.com/cmmcleod/coriolis/issues), or better yet [pull requests](https://github.com/cmmcleod/coriolis/pulls) for any corrections or additions to the database or the code.
|
||||||
|
|
||||||
### Feature Requests, Suggestions & Bugs
|
### Feature Requests, Suggestions & Bugs
|
||||||
|
|
||||||
@@ -21,17 +23,20 @@ See the [Developer's Guide](https://github.com/cmmcleod/coriolis/wiki/Developer'
|
|||||||
|
|
||||||
### Ship and Component Database
|
### Ship and Component Database
|
||||||
|
|
||||||
See [Data wiki](https://github.com/cmmcleod/coriolis/wiki/Database) for details on structure, etc.
|
See the [Data wiki](https://github.com/cmmcleod/coriolis-data/wiki) for details on structure, etc.
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The MIT License
|
All Data and [associated JSON](https://github.com/cmmcleod/coriolis-data) files are intellectual property and copyright of Frontier Developments plc ('Frontier', 'Frontier Developments') and are subject to their
|
||||||
|
[terms and conditions](https://www.frontierstore.net/terms-and-conditions/).
|
||||||
|
|
||||||
|
The code (Javascript, CSS, HTML, and SVG files only) specificially for Coriolis.io is released under the MIT License.
|
||||||
|
|
||||||
Copyright (c) 2015 Coriolis.io, Colin McLeod
|
Copyright (c) 2015 Coriolis.io, Colin McLeod
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software (Javascript, CSS, HTML, and SVG files only), and associated documentation files (the "Software"), to deal
|
||||||
in the Software without restriction, including without limitation the rights
|
in the Software without restriction, including without limitation the rights
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
|||||||
@@ -1,913 +0,0 @@
|
|||||||
<?xml version="1.0" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
|
||||||
<metadata></metadata>
|
|
||||||
<defs>
|
|
||||||
<font id="euro_capsregular" horiz-adv-x="1024" >
|
|
||||||
<font-face units-per-em="2048" ascent="1536" descent="-512" />
|
|
||||||
<missing-glyph horiz-adv-x="616" />
|
|
||||||
<glyph horiz-adv-x="0" />
|
|
||||||
<glyph unicode="
" horiz-adv-x="616" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="616" />
|
|
||||||
<glyph unicode="	" horiz-adv-x="616" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="616" />
|
|
||||||
<glyph unicode="!" horiz-adv-x="533" d="M171 1365h192l-23 -969h-149zM175 0v212h185v-212h-185z" />
|
|
||||||
<glyph unicode=""" horiz-adv-x="662" d="M104 1365h138l-20 -546h-99zM419 1365h138l-19 -546h-99z" />
|
|
||||||
<glyph unicode="#" horiz-adv-x="1049" d="M68 355l17 110h187l37 235h-186l17 110h187l55 351h119l-55 -351h230l56 351h119l-55 -351h185l-18 -110h-185l-37 -235h187l-18 -110h-186l-57 -355h-119l56 355h-230l-57 -355h-118l56 355h-187zM391 465h231l37 235h-231z" />
|
|
||||||
<glyph unicode="$" horiz-adv-x="1186" d="M93 374v14h156v-20q1 -77 5 -114q6 -57 38.5 -85t97.5 -32q111 -3 143 -4v401q-188 1 -263 26q-97 32 -133 113q-31 68 -31 190q0 166 68 236q72 76 257 86q39 2 102 3v108h125v-108q26 -1 35 -1q160 -1 217 -21q94 -33 132 -118q26 -58 26 -161q0 -20 -1 -51h-153l-1 22 q-2 89 -6 107q-10 39 -30 53q-39 27 -144 30q-27 1 -75 1v-376q191 -2 278 -34q103 -37 137 -143q21 -64 21 -162q0 -126 -40 -199q-51 -94 -182 -121q-42 -8 -214 -14v-131h-125v131h-47q-109 -1 -159 6t-95 29q-63 31 -94 83t-40 140q-4 44 -5 116zM258 873 q0 -140 59 -172q45 -24 160 -27q19 -1 56 -1v377q-79 -1 -123 -3q-95 -4 -124 -46q-28 -38 -28 -128zM658 132h27q147 0 204 42q54 41 54 171q0 81 -24 124q-24 45 -107 56q-42 6 -154 7v-400z" />
|
|
||||||
<glyph unicode="%" horiz-adv-x="1813" d="M68 832q0 175 12 224q18 74 87 106q61 28 134 31q54 3 132 3q142 0 199 -15q106 -29 135 -111q16 -46 16 -237q0 -176 -12 -224q-18 -74 -87 -106q-60 -28 -134 -31q-52 -3 -124 -3q-150 0 -207 15q-106 29 -135 111q-16 46 -16 237zM201 833q2 -129 4 -147q7 -77 66 -89 q42 -9 155 -9q112 0 154 9q59 12 66 89q2 18 4 146q-2 129 -4 147q-8 77 -66 89q-42 9 -157 9q-110 0 -152 -9q-59 -12 -66 -89q-2 -18 -4 -146zM514 0l649 1188h136l-654 -1188h-131zM1030 354q0 175 12 224q18 75 87 106q61 28 134 31q54 3 132 3q141 0 199 -15 q106 -29 135 -111q16 -46 16 -237q0 -175 -12 -223q-18 -74 -87 -106q-60 -28 -134 -31q-52 -3 -124 -3q-150 0 -207 15q-106 29 -135 111q-16 46 -16 236zM1163 355q2 -129 4 -146q7 -77 66 -89q42 -9 155 -9q112 0 154 9q59 12 66 89q2 18 4 146q-2 128 -4 146 q-8 77 -66 89q-42 9 -157 9q-110 0 -152 -9q-59 -12 -66 -89q-2 -18 -4 -146z" />
|
|
||||||
<glyph unicode="&" horiz-adv-x="1308" d="M102 371q0 196 85 257q50 36 160 51q-37 33 -56 63q-28 47 -28 128q0 172 78 232q79 60 286 60q104 0 165 -15t101 -51q71 -64 71 -218q0 -31 -2 -88h-156q-1 45 -1 58q-1 115 -25 141q-29 31 -155 31q-141 0 -176 -31q-26 -24 -26 -93q0 -66 23 -99q16 -22 66 -63 l405 -338q1 31 1 46q0 26 -4 92h158q3 -78 3 -103q0 -87 -12 -156l204 -168l-90 -114l-165 137q-32 -63 -91 -97q-68 -37 -143 -43q-69 -6 -180 -6q-211 0 -285 18q-148 35 -190 174q-21 69 -21 195zM262 365q0 -169 52 -209q34 -26 118 -28q82 -1 168 -1q142 0 192 14 q76 21 97 87l-431 355q-107 -15 -142 -33q-29 -15 -41.5 -58t-12.5 -127z" />
|
|
||||||
<glyph unicode="'" horiz-adv-x="347" d="M104 1365h138l-20 -546h-99z" />
|
|
||||||
<glyph unicode="(" horiz-adv-x="673" d="M151 573q0 516 8 594q12 119 46.5 189.5t99.5 110.5q76 47 205 47q19 0 54 -1v-148q-112 -1 -160 -31q-50 -35 -63 -152q-10 -87 -9 -411v-395q2 -420 20 -476q21 -80 86 -103q44 -15 126 -15v-148q-41 -2 -61 -2q-235 0 -310 185q-34 84 -40 250q-2 51 -2 506z" />
|
|
||||||
<glyph unicode=")" horiz-adv-x="673" d="M109 -218q113 0 160 31q50 35 63 152q10 83 9 411v395q-2 419 -20 476q-21 80 -86 103q-44 15 -126 15v148q35 1 54 1q125 0 201.5 -44.5t115.5 -140.5q34 -84 40 -250q2 -51 2 -506q0 -516 -8 -594q-12 -119 -46.5 -189.5t-99.5 -110.5q-77 -47 -198 -47q-20 0 -61 2 v148z" />
|
|
||||||
<glyph unicode="*" horiz-adv-x="998" d="M82 1032l40 115l320 -115v333h115v-333l318 115l41 -115l-321 -119l191 -273l-92 -68l-193 282l-209 -282l-91 68l200 273z" />
|
|
||||||
<glyph unicode="+" horiz-adv-x="1079" d="M66 509v129h403v408h140v-408h403v-129h-403v-409h-140v409h-403z" />
|
|
||||||
<glyph unicode="," horiz-adv-x="454" d="M123 -140q53 3 75 19q28 21 28 76q0 15 -2 45h-78v212h185v-228q0 -111 -26 -152q-38 -62 -133 -62q-18 0 -49 2v88z" />
|
|
||||||
<glyph unicode="-" horiz-adv-x="513" d="M20 493v152h473v-152h-473z" />
|
|
||||||
<glyph unicode="." horiz-adv-x="431" d="M123 0v212h185v-212h-185z" />
|
|
||||||
<glyph unicode="/" horiz-adv-x="1212" d="M14 -195l1054 1560h131l-1054 -1560h-131z" />
|
|
||||||
<glyph unicode="0" horiz-adv-x="1152" d="M107 590q0 253 6 317q16 158 104 225q74 56 192 63q69 4 178 4q189 0 264 -25q135 -46 172 -181q19 -66 20 -185q1 -92 1 -215q0 -249 -6 -313q-16 -158 -104 -224q-73 -56 -192 -64q-67 -4 -166 -4q-201 0 -276 25q-135 46 -172 181q-18 66 -20 184q-1 91 -1 212z M259 594q0 -195 6 -272q6 -82 27.5 -122t68.5 -54q60 -18 215 -18t215 18q67 20 87 106q15 64 15 346q0 187 -6 267q-7 98 -37 136q-34 46 -130 53q-67 5 -150 5q-148 0 -209 -18q-67 -20 -87 -106q-15 -63 -15 -341z" />
|
|
||||||
<glyph unicode="1" horiz-adv-x="1150" d="M296 837l351 351h207v-1188h-157v1010l-287 -287z" />
|
|
||||||
<glyph unicode="2" horiz-adv-x="1074" d="M101 0v231q0 95 17 150.5t57 93.5q57 51 164 73q58 12 188 26q154 16 192 29q66 22 82 77q15 50 15 158q0 136 -39 176q-44 46 -216 46q-150 0 -217 -18q-33 -9 -50 -25.5t-27 -50.5q-9 -30 -9 -133v-68h-155v68q0 226 95 298q89 68 361 68q243 0 330 -85q56 -54 69 -152 q9 -63 9 -143q0 -137 -27 -205q-41 -101 -153 -140q-71 -25 -234 -42q-129 -13 -165 -21q-52 -11 -77 -28t-36 -51q-16 -47 -17 -142v-53h706v-137h-863z" />
|
|
||||||
<glyph unicode="3" horiz-adv-x="1112" d="M97 337v68h154v-68q0 -135 38 -175q24 -24 100 -30q52 -4 199 -4q175 0 215 46q31 36 31 182q0 102 -37 141q-29 31 -79 37q-34 4 -80 4h-205v140h205q115 0 149 47q25 34 25 125q0 98 -19 148q-10 27 -32.5 39t-71.5 18q-43 4 -154 4t-159.5 -7t-71.5 -27 q-36 -30 -36 -153v-68h-151v68q0 196 89 265q64 49 173 57q70 5 163 5q173 0 243 -19q128 -34 164 -137q20 -57 20 -151q0 -163 -49 -222q-32 -39 -96 -59q65 -16 99 -46q68 -59 68 -227q0 -197 -77 -270q-55 -52 -143 -66q-94 -14 -218 -14q-204 0 -288 28 q-110 37 -148 140q-20 54 -20 181z" />
|
|
||||||
<glyph unicode="4" horiz-adv-x="1114" d="M62 268v173l586 747h221v-782h174v-138h-174v-268h-157v268h-650zM212 406h500v647z" />
|
|
||||||
<glyph unicode="5" horiz-adv-x="1116" d="M122 291v68h151v-41q0 -112 33 -144q42 -40 149 -44q40 -2 85 -2q203 0 261 43q32 24 39 116q3 39 3 164q0 139 -47 185q-48 46 -226 46q-149 0 -201 -16q-61 -18 -76 -67q-2 -7 -6 -27h-143v616h808v-138h-656v-302q39 38 85 51q78 22 212 22q231 0 322 -88 q69 -68 81 -189q4 -48 4 -114q0 -144 -16.5 -221t-58.5 -127q-42 -49 -128.5 -71.5t-236.5 -22.5q-180 0 -261 26q-115 38 -154 133q-23 54 -23 144z" />
|
|
||||||
<glyph unicode="6" horiz-adv-x="1122" d="M117 621q5 256 5 270q3 98 30 155.5t87 95.5q89 57 303 57q197 0 279 -26q159 -50 159 -251v-55h-155v55q0 78 -28 102q-40 35 -185 35q-176 0 -235 -15q-59 -16 -77 -59q-18 -44 -18 -124v-200q39 41 81 55q74 25 240 25q182 0 258 -33q92 -39 125 -135q25 -74 25 -191 q0 -220 -75 -306q-59 -67 -165 -79q-79 -9 -190 -9q-137 0 -206.5 11.5t-119.5 43.5q-94 58 -119 154q-15 54 -17 212zM274 407q0 -191 45 -233q48 -46 255 -46q203 0 244 37q42 38 42 192q0 167 -37 203q-41 41 -262 41q-189 0 -246 -44q-41 -31 -41 -150z" />
|
|
||||||
<glyph unicode="7" horiz-adv-x="1069" d="M90 1050v138h873v-184l-567 -1004h-188l609 1050h-727z" />
|
|
||||||
<glyph unicode="8" horiz-adv-x="1112" d="M109 342q0 147 39 200q36 49 120 75q-61 20 -84 42q-60 60 -60 228q0 180 73 242q63 54 177 63q84 7 185 7q191 0 262 -20q116 -32 150 -141q18 -59 18 -155q0 -141 -42 -203q-24 -35 -103 -64q60 -17 88 -41q48 -41 60 -103q10 -55 10 -123q0 -119 -17 -183t-60 -102 q-44 -40 -128 -58t-226 -18q-205 0 -297 27q-103 31 -141 127q-24 60 -24 200zM260 351q0 -122 15 -155q22 -46 87 -58q53 -10 206 -10q198 0 244 43q39 35 39 182q0 108 -37 146q-26 28 -93 37q-49 7 -181 7q-137 0 -190 -15q-63 -19 -80 -70q-10 -28 -10 -107zM276 885 q0 -105 14 -136q21 -44 78 -56q55 -12 231 -12q163 0 204 40q35 34 35 156q0 123 -38 152q-38 30 -243 30q-121 0 -174 -7t-75 -26q-32 -27 -32 -141z" />
|
|
||||||
<glyph unicode="9" horiz-adv-x="1118" d="M106 282v41h150v-41q0 -99 39 -126q36 -24 112 -26q75 -2 142 -2q152 0 214 22q54 19 67 97q8 43 8 146v135q-27 -32 -53 -43q-80 -35 -286 -35q-201 0 -287 61q-71 50 -88 143q-12 65 -12 148q0 164 30 238q50 120 208 147q70 12 204 12q192 0 275 -34q132 -53 156 -204 q15 -95 15 -433q0 -185 -9 -266q-12 -101 -48 -157.5t-107 -85.5q-78 -31 -283 -31q-192 0 -263 18q-140 36 -172 145q-12 41 -12 131zM263 830q0 -159 40 -200q40 -40 213 -40q164 0 226 15q54 13 74 42q23 33 23 137q0 130 -12 168q-21 70 -84 90q-55 17 -217 17 q-182 0 -222 -38q-41 -39 -41 -191z" />
|
|
||||||
<glyph unicode=":" horiz-adv-x="431" d="M123 0v212h185v-212h-185zM123 880v212h185v-212h-185z" />
|
|
||||||
<glyph unicode=";" horiz-adv-x="454" d="M123 -140q53 3 75 19q28 21 28 76q0 15 -2 45h-78v212h185v-228q0 -111 -26 -152q-38 -62 -133 -62q-18 0 -49 2v88zM135 880v212h185v-212h-185z" />
|
|
||||||
<glyph unicode="<" d="M68 504v140l887 420v-163l-713 -328l713 -328v-162z" />
|
|
||||||
<glyph unicode="=" horiz-adv-x="1079" d="M66 338v129h946v-129h-946zM66 680v129h946v-129h-946z" />
|
|
||||||
<glyph unicode=">" d="M69 83v162l713 328l-713 328v163l887 -420v-140z" />
|
|
||||||
<glyph unicode="?" horiz-adv-x="976" d="M123 1022v37q0 103 12 152q25 102 118 141q72 31 226 31q156 0 228 -26q110 -39 135 -141q11 -46 11 -184q0 -151 -17 -195q-20 -52 -55 -78q-36 -26 -200 -87q-43 -17 -53 -35q-10 -15 -10 -65v-176h-157v192q0 128 65 172q36 23 173 70q71 25 90 65q13 25 13 102 q0 135 -9 165q-19 61 -86 72q-34 6 -127 6q-95 0 -129 -11q-60 -18 -72 -92q-3 -21 -3 -86v-29h-153zM348 0v212h185v-212h-185z" />
|
|
||||||
<glyph unicode="@" horiz-adv-x="1499" d="M102 674q0 306 45 450q41 129 136 176q133 66 505 66q270 0 385 -36q117 -37 161 -121q63 -120 63 -377q0 -279 -39 -414q-26 -90 -92 -115q-32 -13 -78 -13q-167 0 -193 128h-3q-25 -61 -77 -92q-69 -42 -206 -42q-184 0 -249 107q-51 85 -51 289q0 153 21 237 q29 109 122 148q63 26 164 26q113 0 182 -32q44 -20 70 -77h4v109h115v-544q4 -91 7 -108q12 -59 90 -59q54 0 74 35q18 33 29 138.5t11 240.5q0 221 -30 320q-36 115 -181 136q-106 15 -309 15q-263 0 -370 -22q-113 -23 -148 -96q-58 -119 -58 -438q0 -259 30 -391 q32 -134 135 -175q76 -31 172 -37q132 -9 285 -9q208 0 285 25q33 11 61 53l79 -56q-42 -73 -119 -95q-88 -26 -322 -26q-196 0 -310 16q-158 22 -241 81q-95 68 -128 231q-27 137 -27 348zM531 693q0 -206 51 -267q37 -45 157 -45q113 0 159 29q61 38 67 150q6 94 6 196 q0 144 -55 195q-48 44 -172 44q-74 0 -122 -16q-66 -23 -82 -129q-9 -60 -9 -157z" />
|
|
||||||
<glyph unicode="A" horiz-adv-x="1138" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM332 376h474l-239 625z" />
|
|
||||||
<glyph unicode="B" horiz-adv-x="1170" d="M143 0v1170h550q102 0 142 -5q120 -15 173 -103q40 -68 40 -209q0 -143 -59 -201q-28 -28 -105 -38q79 -5 118 -34q81 -63 81 -242q0 -224 -117 -293q-75 -45 -219 -45h-604zM302 142h288q147 1 175 3q122 6 145 68q14 40 14 110q0 84 -15 128q-19 60 -105 72 q-25 4 -156 4h-346v-385zM302 669h354q128 0 174 24q39 22 52 71q7 30 7 90q0 81 -15 113q-22 49 -89 58q-24 3 -95 3h-388v-359z" />
|
|
||||||
<glyph unicode="C" horiz-adv-x="1151" d="M94 569q0 273 13 358q21 136 143 204q76 43 203 51q62 4 225 4q154 0 215 -20q138 -45 166 -200q10 -57 10 -144q0 -10 -1 -32h-157q-1 39 -1 51q-2 142 -48 175q-40 29 -185 29q-192 0 -276 -11q-52 -7 -80.5 -29.5t-43.5 -68.5q-16 -50 -16 -166q0 -412 22 -514 q13 -66 48 -93q40 -31 130 -35q55 -2 118 -2q145 0 212.5 9.5t92.5 33.5q35 34 35 153q0 39 -2 90h159v-58v-12q0 -136 -22 -195q-46 -127 -205 -153q-60 -10 -301 -10q-108 0 -154 4.5t-91 20.5q-176 59 -199 311q-10 116 -10 249z" />
|
|
||||||
<glyph unicode="D" horiz-adv-x="1243" d="M143 0v1170h573q111 0 190 -20q121 -29 185 -149q59 -111 59 -363q0 -207 -9 -288q-25 -227 -171 -303q-55 -28 -169 -43q-30 -4 -52 -4h-606zM302 142h387q185 0 240 66q46 55 57 185q5 59 5 169q0 198 -10 278q-18 134 -117 169q-54 19 -149 19h-413v-886z" />
|
|
||||||
<glyph unicode="E" horiz-adv-x="1036" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794z" />
|
|
||||||
<glyph unicode="F" horiz-adv-x="960" d="M143 0v1170h761v-142h-602v-365h587v-139h-587v-524h-159z" />
|
|
||||||
<glyph unicode="G" horiz-adv-x="1192" d="M94 600v48q0 157 12.5 239.5t45.5 146.5q59 115 208 142q59 10 219 10q180 0 242 -4.5t108 -19.5q152 -53 165 -229q3 -31 3 -124h-158q-1 131 -21 174q-21 45 -112 55q-65 7 -241 7q-144 0 -207 -18q-71 -20 -91 -118q-11 -51 -14 -321q1 -212 3 -249q4 -90 28.5 -135.5 t77.5 -59.5q67 -19 292 -19q117 0 174.5 11.5t79.5 39.5q33 42 33 220q0 20 -1 59h-363v142h518q5 -58 5 -128q0 -128 -3 -185q-12 -208 -159 -269q-76 -31 -343 -31q-178 0 -260 18.5t-139 70.5q-88 81 -98 241q-3 51 -3 124v38t-1 124z" />
|
|
||||||
<glyph unicode="H" horiz-adv-x="1271" d="M143 0v1170h159v-502h668v502h159v-1170h-159v529h-668v-529h-159z" />
|
|
||||||
<glyph unicode="I" horiz-adv-x="445" d="M143 0v1170h159v-1170h-159z" />
|
|
||||||
<glyph unicode="J" horiz-adv-x="967" d="M57 296q0 79 4 150h156q-1 -52 -1 -69q0 -144 11 -181q15 -48 71 -61q36 -9 151 -9q121 0 158 23q48 31 55 124q4 46 4 99v798h159v-819q0 -102 -11 -157t-39 -96q-48 -68 -130 -93q-68 -21 -190 -21q-176 0 -259 34q-98 40 -125 135q-14 48 -14 143z" />
|
|
||||||
<glyph unicode="K" horiz-adv-x="1159" d="M143 0v1170h159v-498h106l482 498h210l-551 -567l615 -603h-220l-536 527h-106v-527h-159z" />
|
|
||||||
<glyph unicode="L" horiz-adv-x="958" d="M143 0v1170h159v-1019h618v-151h-777z" />
|
|
||||||
<glyph unicode="M" horiz-adv-x="1598" d="M143 0v1170h248l407 -999l406 999h251v-1170h-159v1023l-421 -1023h-150l-423 1023v-1023h-159z" />
|
|
||||||
<glyph unicode="N" horiz-adv-x="1321" d="M143 0v1170h234l643 -1023v1023h159v-1170h-235l-642 1023v-1023h-159z" />
|
|
||||||
<glyph unicode="O" horiz-adv-x="1220" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181z" />
|
|
||||||
<glyph unicode="P" horiz-adv-x="1121" d="M143 0v1170h524q112 0 159 -5.5t87 -23.5q146 -66 146 -336q0 -148 -40 -224q-52 -97 -160 -123q-38 -9 -212 -11h-345v-447h-159zM302 589h320q147 0 198 18q54 20 71 84q9 32 9 96q0 121 -15 169q-17 52 -78 65q-26 6 -144 7h-361v-439z" />
|
|
||||||
<glyph unicode="Q" horiz-adv-x="1220" d="M94 642q0 159 8 220q28 220 176 285q65 29 170 35q69 4 162 4q143 0 212.5 -8t120.5 -31q148 -65 176 -285q8 -61 8 -229q0 -278 -10 -346q-3 -24 -9 -50l117 -78l-70 -114l-102 67q-51 -70 -146 -102q-63 -22 -183 -25q-60 -1 -119 -1q-153 0 -219 8.5t-122 35.5 q-114 56 -149 204q-17 70 -19 173q-2 57 -2 237zM253 585q0 -213 4 -253q8 -82 28.5 -123.5t63.5 -59.5q38 -17 107 -20q55 -3 138 -3q130 0 205 5q88 7 127 65l-342 223l77 114l303 -201q4 64 4 253q0 217 -4 253q-8 82 -29 124t-62 60q-39 16 -112 19q-58 3 -151 3 q-125 0 -177.5 -4.5t-84.5 -18.5q-60 -26 -81 -113q-14 -61 -14 -142v-181z" />
|
|
||||||
<glyph unicode="R" horiz-adv-x="1193" d="M143 0v1170h590q156 0 237 -53q71 -46 97 -140q15 -56 15 -147q0 -150 -39 -218q-41 -74 -150 -84q172 -11 173 -222v-306h-159v276q0 108 -49 148q-48 35 -142 35h-10h-404v-459h-159zM302 601h388q119 0 172 32q61 37 61 151q0 155 -28 195q-35 49 -161 49h-432v-427z " />
|
|
||||||
<glyph unicode="S" horiz-adv-x="1097" d="M87 383h159v-44q1 -86 13 -126.5t43 -61.5q29 -20 92 -22q69 -3 164 -3q130 0 184 10t78 39q30 35 30 176q0 68 -15 101q-20 47 -99 57q-39 5 -197 11q-157 7 -198 12q-131 19 -193 100q-53 68 -53 210q0 204 91 274q70 54 181 64q79 6 183 6q199 0 273 -25 q151 -50 164 -240q1 -21 1 -91h-159q0 83 -7 117q-13 66 -82 85q-44 12 -157 12q-159 0 -205 -8q-86 -14 -110 -77q-14 -38 -14 -100q0 -79 19 -121q22 -47 109 -58q32 -4 189 -10q174 -7 237 -19q126 -26 172 -123q29 -62 29 -192q0 -189 -62 -259q-64 -72 -183 -84 q-91 -9 -246 -9q-188 0 -252 20q-150 48 -172 231q-5 39 -7 148z" />
|
|
||||||
<glyph unicode="T" horiz-adv-x="1007" d="M38 1019v151h930v-151h-384v-1019h-159v1019h-387z" />
|
|
||||||
<glyph unicode="U" horiz-adv-x="1251" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218z" />
|
|
||||||
<glyph unicode="V" horiz-adv-x="1096" d="M14 1170h170l367 -1000l361 1000h171l-429 -1170h-207z" />
|
|
||||||
<glyph unicode="W" horiz-adv-x="1801" d="M14 1170h165l308 -1014l304 1014h213l302 -1014l315 1014h167l-377 -1170h-218l-296 1014l-301 -1014h-215z" />
|
|
||||||
<glyph unicode="X" horiz-adv-x="1101" d="M1 0l433 605l-401 565h194l331 -469l326 469h189l-390 -565l418 -605h-190l-353 506l-361 -506h-196z" />
|
|
||||||
<glyph unicode="Y" horiz-adv-x="1068" d="M1 1170h187l345 -516l344 516h190l-459 -683v-487h-159v487z" />
|
|
||||||
<glyph unicode="Z" horiz-adv-x="1076" d="M63 0v135l733 893h-713v142h916v-132l-736 -896h751v-142h-951z" />
|
|
||||||
<glyph unicode="[" horiz-adv-x="673" d="M165 -352v1850h399v-133h-225v-1583h225v-134h-399z" />
|
|
||||||
<glyph unicode="\" horiz-adv-x="1212" d="M14 1365h131l1054 -1560h-132z" />
|
|
||||||
<glyph unicode="]" horiz-adv-x="673" d="M109 -219h225v1584h-225v134h399v-1851h-399v133z" />
|
|
||||||
<glyph unicode="^" d="M64 765l356 604h185l356 -604h-154l-296 492l-294 -492h-153z" />
|
|
||||||
<glyph unicode="_" d="M0 -145h1024v-107h-1024v107z" />
|
|
||||||
<glyph unicode="`" d="M254 1518l82 112l310 -234l-56 -85z" />
|
|
||||||
<glyph unicode="a" horiz-adv-x="1138" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM332 376h474l-239 625z" />
|
|
||||||
<glyph unicode="b" horiz-adv-x="1170" d="M143 0v1170h550q102 0 142 -5q120 -15 173 -103q40 -68 40 -209q0 -143 -59 -201q-28 -28 -105 -38q79 -5 118 -34q81 -63 81 -242q0 -224 -117 -293q-75 -45 -219 -45h-604zM302 142h288q147 1 175 3q122 6 145 68q14 40 14 110q0 84 -15 128q-19 60 -105 72 q-25 4 -156 4h-346v-385zM302 669h354q128 0 174 24q39 22 52 71q7 30 7 90q0 81 -15 113q-22 49 -89 58q-24 3 -95 3h-388v-359z" />
|
|
||||||
<glyph unicode="c" horiz-adv-x="1151" d="M94 569q0 273 13 358q21 136 143 204q76 43 203 51q62 4 225 4q154 0 215 -20q138 -45 166 -200q10 -57 10 -144q0 -10 -1 -32h-157q-1 39 -1 51q-2 142 -48 175q-40 29 -185 29q-192 0 -276 -11q-52 -7 -80.5 -29.5t-43.5 -68.5q-16 -50 -16 -166q0 -412 22 -514 q13 -66 48 -93q40 -31 130 -35q55 -2 118 -2q145 0 212.5 9.5t92.5 33.5q35 34 35 153q0 39 -2 90h159v-58v-12q0 -136 -22 -195q-46 -127 -205 -153q-60 -10 -301 -10q-108 0 -154 4.5t-91 20.5q-176 59 -199 311q-10 116 -10 249z" />
|
|
||||||
<glyph unicode="d" horiz-adv-x="1243" d="M143 0v1170h573q111 0 190 -20q121 -29 185 -149q59 -111 59 -363q0 -207 -9 -288q-25 -227 -171 -303q-55 -28 -169 -43q-30 -4 -52 -4h-606zM302 142h387q185 0 240 66q46 55 57 185q5 59 5 169q0 198 -10 278q-18 134 -117 169q-54 19 -149 19h-413v-886z" />
|
|
||||||
<glyph unicode="e" horiz-adv-x="1036" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794z" />
|
|
||||||
<glyph unicode="f" horiz-adv-x="960" d="M143 0v1170h761v-142h-602v-365h587v-139h-587v-524h-159z" />
|
|
||||||
<glyph unicode="g" horiz-adv-x="1192" d="M94 600v48q0 157 12.5 239.5t45.5 146.5q59 115 208 142q59 10 219 10q180 0 242 -4.5t108 -19.5q152 -53 165 -229q3 -31 3 -124h-158q-1 131 -21 174q-21 45 -112 55q-65 7 -241 7q-144 0 -207 -18q-71 -20 -91 -118q-11 -51 -14 -321q1 -212 3 -249q4 -90 28.5 -135.5 t77.5 -59.5q67 -19 292 -19q117 0 174.5 11.5t79.5 39.5q33 42 33 220q0 20 -1 59h-363v142h518q5 -58 5 -128q0 -128 -3 -185q-12 -208 -159 -269q-76 -31 -343 -31q-178 0 -260 18.5t-139 70.5q-88 81 -98 241q-3 51 -3 124v38t-1 124z" />
|
|
||||||
<glyph unicode="h" horiz-adv-x="1271" d="M143 0v1170h159v-502h668v502h159v-1170h-159v529h-668v-529h-159z" />
|
|
||||||
<glyph unicode="i" horiz-adv-x="445" d="M143 0v1170h159v-1170h-159z" />
|
|
||||||
<glyph unicode="j" horiz-adv-x="967" d="M57 296q0 79 4 150h156q-1 -52 -1 -69q0 -144 11 -181q15 -48 71 -61q36 -9 151 -9q121 0 158 23q48 31 55 124q4 46 4 99v798h159v-819q0 -102 -11 -157t-39 -96q-48 -68 -130 -93q-68 -21 -190 -21q-176 0 -259 34q-98 40 -125 135q-14 48 -14 143z" />
|
|
||||||
<glyph unicode="k" horiz-adv-x="1159" d="M143 0v1170h159v-498h106l482 498h210l-551 -567l615 -603h-220l-536 527h-106v-527h-159z" />
|
|
||||||
<glyph unicode="l" horiz-adv-x="958" d="M143 0v1170h159v-1019h618v-151h-777z" />
|
|
||||||
<glyph unicode="m" horiz-adv-x="1598" d="M143 0v1170h248l407 -999l406 999h251v-1170h-159v1023l-421 -1023h-150l-423 1023v-1023h-159z" />
|
|
||||||
<glyph unicode="n" horiz-adv-x="1321" d="M143 0v1170h234l643 -1023v1023h159v-1170h-235l-642 1023v-1023h-159z" />
|
|
||||||
<glyph unicode="o" horiz-adv-x="1220" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181z" />
|
|
||||||
<glyph unicode="p" horiz-adv-x="1121" d="M143 0v1170h524q112 0 159 -5.5t87 -23.5q146 -66 146 -336q0 -148 -40 -224q-52 -97 -160 -123q-38 -9 -212 -11h-345v-447h-159zM302 589h320q147 0 198 18q54 20 71 84q9 32 9 96q0 121 -15 169q-17 52 -78 65q-26 6 -144 7h-361v-439z" />
|
|
||||||
<glyph unicode="q" horiz-adv-x="1220" d="M94 642q0 159 8 220q28 220 176 285q65 29 170 35q69 4 162 4q143 0 212.5 -8t120.5 -31q148 -65 176 -285q8 -61 8 -229q0 -278 -10 -346q-3 -24 -9 -50l117 -78l-70 -114l-102 67q-51 -70 -146 -102q-63 -22 -183 -25q-60 -1 -119 -1q-153 0 -219 8.5t-122 35.5 q-114 56 -149 204q-17 70 -19 173q-2 57 -2 237zM253 585q0 -213 4 -253q8 -82 28.5 -123.5t63.5 -59.5q38 -17 107 -20q55 -3 138 -3q130 0 205 5q88 7 127 65l-342 223l77 114l303 -201q4 64 4 253q0 217 -4 253q-8 82 -29 124t-62 60q-39 16 -112 19q-58 3 -151 3 q-125 0 -177.5 -4.5t-84.5 -18.5q-60 -26 -81 -113q-14 -61 -14 -142v-181z" />
|
|
||||||
<glyph unicode="r" horiz-adv-x="1193" d="M143 0v1170h590q156 0 237 -53q71 -46 97 -140q15 -56 15 -147q0 -150 -39 -218q-41 -74 -150 -84q172 -11 173 -222v-306h-159v276q0 108 -49 148q-48 35 -142 35h-10h-404v-459h-159zM302 601h388q119 0 172 32q61 37 61 151q0 155 -28 195q-35 49 -161 49h-432v-427z " />
|
|
||||||
<glyph unicode="s" horiz-adv-x="1097" d="M87 383h159v-44q1 -86 13 -126.5t43 -61.5q29 -20 92 -22q69 -3 164 -3q130 0 184 10t78 39q30 35 30 176q0 68 -15 101q-20 47 -99 57q-39 5 -197 11q-157 7 -198 12q-131 19 -193 100q-53 68 -53 210q0 204 91 274q70 54 181 64q79 6 183 6q199 0 273 -25 q151 -50 164 -240q1 -21 1 -91h-159q0 83 -7 117q-13 66 -82 85q-44 12 -157 12q-159 0 -205 -8q-86 -14 -110 -77q-14 -38 -14 -100q0 -79 19 -121q22 -47 109 -58q32 -4 189 -10q174 -7 237 -19q126 -26 172 -123q29 -62 29 -192q0 -189 -62 -259q-64 -72 -183 -84 q-91 -9 -246 -9q-188 0 -252 20q-150 48 -172 231q-5 39 -7 148z" />
|
|
||||||
<glyph unicode="t" horiz-adv-x="1007" d="M38 1019v151h930v-151h-384v-1019h-159v1019h-387z" />
|
|
||||||
<glyph unicode="u" horiz-adv-x="1251" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218z" />
|
|
||||||
<glyph unicode="v" horiz-adv-x="1096" d="M14 1170h170l367 -1000l361 1000h171l-429 -1170h-207z" />
|
|
||||||
<glyph unicode="w" horiz-adv-x="1801" d="M14 1170h165l308 -1014l304 1014h213l302 -1014l315 1014h167l-377 -1170h-218l-296 1014l-301 -1014h-215z" />
|
|
||||||
<glyph unicode="x" horiz-adv-x="1101" d="M1 0l433 605l-401 565h194l331 -469l326 469h189l-390 -565l418 -605h-190l-353 506l-361 -506h-196z" />
|
|
||||||
<glyph unicode="y" horiz-adv-x="1068" d="M1 1170h187l345 -516l344 516h190l-459 -683v-487h-159v487z" />
|
|
||||||
<glyph unicode="z" horiz-adv-x="1076" d="M63 0v135l733 893h-713v142h916v-132l-736 -896h751v-142h-951z" />
|
|
||||||
<glyph unicode="{" horiz-adv-x="673" d="M46 508v130q61 16 94 56q41 53 40 158v297q0 173 47 250q34 58 119 84q50 15 103 15h102v-127q-45 0 -87 -9t-64 -24q-18 -12 -34 -36.5t-21 -46.5q-3 -14 -6.5 -52t-3.5 -57v-301q0 -124 -39 -187q-33 -51 -103 -85q76 -36 110 -98q32 -63 32 -174v-301q0 -102 24 -144 q46 -81 178 -81h14v-127h-102q-81 0 -143 31q-66 32 -92 93q-34 82 -34 225v297q1 106 -40 158q-32 39 -94 56z" />
|
|
||||||
<glyph unicode="|" horiz-adv-x="594" d="M216 -341v1706h163v-1706h-163z" />
|
|
||||||
<glyph unicode="}" horiz-adv-x="659" d="M109 -225q45 0 86.5 9t63.5 24q19 12 35 36.5t21 46.5q3 14 6.5 52t3.5 57v301q0 124 39 187q33 51 103 85q-76 36 -110 98q-32 63 -32 174v301q0 102 -24 144q-46 81 -178 81h-14v127h103q80 0 142 -31q66 -32 92 -93q34 -82 34 -225v-297q-1 -105 40 -158 q32 -39 94 -56v-130q-61 -16 -94 -56q-41 -54 -40 -158v-297q0 -173 -47 -250q-34 -58 -119 -84q-50 -15 -102 -15h-103v127z" />
|
|
||||||
<glyph unicode="~" horiz-adv-x="1365" d="M193 1256q37 77 81 131q81 99 195 99q79 0 235 -79q89 -44 119 -55q43 -14 77 -14q67 0 119 56q33 36 68 97l87 -69q-111 -232 -277 -232q-51 0 -123 30q-38 16 -111 52q-137 67 -200 67q-68 0 -119 -59q-30 -34 -64 -93z" />
|
|
||||||
<glyph unicode="¡" horiz-adv-x="533" d="M171 -195l23 969h149l20 -969h-192zM174 958v212h185v-212h-185z" />
|
|
||||||
<glyph unicode="¢" horiz-adv-x="990" d="M116 565q0 187 40 268q70 140 269 144v113h127v-113q101 -2 171 -38q114 -58 114 -219q0 -10 -1 -43h-145q-1 87 -8 111q-22 61 -131 65v-609q70 3 107 23q29 17 38 49q9 27 10 76q0 19 1 58h146q-1 -21 -1 -45q-2 -113 -31 -167q-69 -119 -270 -119v-125h-127v125 q-116 3 -185 45q-80 49 -107 174q-17 79 -17 227zM267 583q0 -266 61 -313q27 -20 97 -24v609q-71 -6 -103 -31q-55 -44 -55 -241z" />
|
|
||||||
<glyph unicode="£" horiz-adv-x="1074" d="M49 453v138h144v163q0 9 -1 48q-1 27 -1 50q0 181 71 260q52 58 143 73q81 14 179 14q167 0 239 -27q118 -45 149 -160q11 -42 11 -131v-68h-152v68q0 101 -30 134q-39 44 -198 44q-136 0 -187 -20q-43 -16 -55 -63q-8 -30 -11 -165v-220h330v-138h-330v-40v-47 q1 -35 1 -46q0 -98 -30 -145q-11 -19 -36 -39h721v-136h-928v124q65 14 90 56q20 38 23 117q2 41 2 74v82h-144z" />
|
|
||||||
<glyph unicode="¤" horiz-adv-x="1338" d="M100 1057l80 80l193 -193q143 106 296 106q154 0 293 -105l194 191l79 -79l-192 -192q105 -141 105 -293q0 -149 -103 -289l193 -193l-79 -80l-193 193q-135 -105 -294 -105q-149 0 -296 105l-192 -193l-79 79l190 193q-104 137 -104 292q0 150 104 290zM321 574 q0 -145 102 -248q102 -102 246 -102t247 103q101 101 101 245q0 149 -101 249q-105 103 -251 103q-140 0 -243 -104q-101 -102 -101 -246z" />
|
|
||||||
<glyph unicode="¥" horiz-adv-x="1048" d="M25 1188h184l314 -531l312 531h188l-226 -367h147v-137h-231l-89 -143h320v-138h-347v-403h-157v403h-336v138h310l-87 143h-223v137h142z" />
|
|
||||||
<glyph unicode="¦" horiz-adv-x="594" d="M216 314h163v-655h-163v655zM216 680v685h163v-685h-163z" />
|
|
||||||
<glyph unicode="§" horiz-adv-x="1164" d="M96 551q0 145 62 200q36 32 108 48q-64 40 -84 97q-20 55 -20 145q0 197 65 263q73 75 336 75q274 0 353 -44q87 -49 104 -172q6 -43 6 -146h-147q0 40 -1 54q0 88 -32 120q-37 37 -142 45q-59 4 -123 4q-152 0 -201 -19q-40 -15 -55 -57q-11 -33 -11 -100q0 -99 28 -128 q21 -22 62 -35q29 -10 80 -25l306 -90q116 -34 151 -50q89 -38 114 -120q14 -43 14 -109q0 -118 -35 -184q-22 -43 -59 -65q-17 -10 -52 -23q74 -35 98 -73q38 -63 38 -197q0 -246 -123 -312q-62 -33 -178 -41q-63 -5 -161 -5q-255 0 -336 38q-115 52 -138 195q-7 42 -6 146 h151q1 -90 6 -119q14 -82 118 -99q70 -12 169 -12q180 0 240 11q104 19 104 190q0 95 -35 127q-29 27 -136 55l-420 111q-87 24 -122 44q-96 59 -96 257zM244 552q0 -77 32 -112q22 -23 56 -35q22 -7 63 -19l308 -86q61 -17 99 -17q77 0 106 68q19 46 19 141q0 67 -49 100 q-32 23 -118 48l-295 87q-67 20 -98 20q-71 0 -100 -54q-23 -42 -23 -141z" />
|
|
||||||
<glyph unicode="¨" d="M213 1366v155h184v-155h-184zM628 1366v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="©" horiz-adv-x="1526" d="M68 681q0 197 102 366q101 165 279 256q148 76 324 76q186 0 353 -103q168 -103 256 -277q76 -150 76 -317q0 -138 -53 -266t-150 -226q-98 -98 -226 -151t-265 -53q-138 0 -266 53t-225 150q-98 98 -151.5 226.5t-53.5 265.5zM183 683q0 -245 171 -417 q170 -172 410 -172q239 0 409 172q170 173 170 415q0 119 -45 229t-125 190q-174 171 -416 171q-110 0 -216 -45t-187 -126q-82 -82 -126.5 -191t-44.5 -226zM437 685q0 184 8 231q15 90 97 134q50 27 140 33q44 3 138 3q123 0 175 -28q69 -36 79 -127q3 -29 6 -100h-116 q-1 21 -1 28q-1 87 -32 108q-27 18 -120 18q-103 0 -158 -6q-65 -8 -84 -63q-11 -31 -11 -99q0 -270 14 -337q10 -43 33 -61q32 -25 155 -25q161 0 190 27q24 22 24 97q0 7 -1 51h117q-1 -27 -1 -36q1 -86 -11 -127t-45 -67q-46 -38 -125 -43q-59 -4 -157 -4q-119 0 -171 16 q-121 38 -136 204q-7 79 -7 173z" />
|
|
||||||
<glyph unicode="ª" horiz-adv-x="764" d="M82 697q0 137 67 186q59 43 205 43q150 0 203 -43v42q0 84 -16 123q-20 46 -143 46q-110 0 -140 -23q-23 -17 -23 -64q0 -6 1 -34h-126q0 11 1 31q1 106 52 146q59 47 226 47q129 0 188 -27q88 -39 100 -149q5 -44 5 -75v-454h-125v45q-35 -30 -69 -41q-48 -14 -142 -14 q-149 0 -210 55q-54 48 -54 160zM212 709q0 -73 27 -94q32 -23 131 -23q127 0 169 35q23 20 23 74q0 66 -26 89q-36 30 -151 30q-122 0 -153 -27q-20 -17 -20 -84z" />
|
|
||||||
<glyph unicode="«" horiz-adv-x="981" d="M109 576l223 472l120 -73l-188 -399l209 -404l-113 -76zM493 576l223 472l120 -73l-188 -399l210 -404l-114 -76z" />
|
|
||||||
<glyph unicode="¬" d="M68 425v143h887v-568h-158v425h-729z" />
|
|
||||||
<glyph unicode="­" horiz-adv-x="513" d="M14 493l3 152h483v-152h-486z" />
|
|
||||||
<glyph unicode="®" horiz-adv-x="1526" d="M68 681q0 197 102 366q101 165 279 256q148 76 324 76q186 0 353 -103q168 -103 256 -277q76 -150 76 -317q0 -138 -53 -266t-150 -226q-98 -98 -226 -151t-265 -53q-138 0 -266 53t-225 150q-98 98 -151.5 226.5t-53.5 265.5zM183 683q0 -245 171 -417 q170 -172 410 -172q239 0 409 172q170 173 170 415q0 119 -45 229t-125 190q-174 171 -416 171q-110 0 -216 -45t-187 -126q-82 -82 -126.5 -191t-44.5 -226zM452 300v779h384q107 0 162 -34q76 -48 76 -192q0 -96 -26 -144q-21 -38 -81 -57q96 -31 96 -150v-202h-116v182 q0 75 -35 103q-37 26 -108 24h-236v-309h-116zM568 710h224q84 0 122 22q44 26 44 102q0 81 -20 109q-25 35 -115 35h-255v-268z" />
|
|
||||||
<glyph unicode="¯" d="M0 1511v107h1024v-107h-1024z" />
|
|
||||||
<glyph unicode="°" horiz-adv-x="767" d="M102 1100q0 119 92 202q80 72 194 72q122 0 206 -93q71 -78 71 -183q0 -121 -92 -204q-80 -72 -190 -72q-119 0 -202 85q-79 80 -79 193zM201 1098q0 -72 51 -124q54 -55 131 -55q82 0 137 60q46 51 46 120q0 77 -59 131q-52 47 -126 47q-79 0 -134 -60q-46 -50 -46 -119 z" />
|
|
||||||
<glyph unicode="±" horiz-adv-x="1079" d="M60 10v143h960v-143h-960zM60 640v143h404v354h151v-354h405v-143h-405v-350h-151v350h-404z" />
|
|
||||||
<glyph unicode="²" horiz-adv-x="853" d="M80 341v172q0 69 13.5 110t45.5 68q45 37 126 53q23 4 138 17q153 16 178 37q29 23 29 136q0 90 -25 114q-31 29 -147 29q-184 0 -207 -34q-16 -25 -16 -90q0 -21 2 -81h-136v14q2 80 4 109q14 142 120 176q78 25 225 25q185 0 252 -62q61 -56 61 -212q0 -98 -21 -148 q-32 -74 -120 -103q-56 -19 -176 -30q-127 -11 -167 -28q-30 -14 -38 -63q-4 -16 -4 -84v-7h523v-118h-660z" />
|
|
||||||
<glyph unicode="³" horiz-adv-x="853" d="M76 630v14h135v-14v-53q0 -79 25 -103q15 -16 68 -19q37 -3 144 -3q129 0 154 28q20 23 20 120q0 88 -54 106q-24 9 -186 9l-43 -1h-14v120q39 -1 49 -1q175 0 202 17q30 18 30 95q0 62 -12 94q-12 30 -70 35q-8 0 -124 3q-94 -2 -124 -8q-36 -10 -46 -41q-6 -15 -6 -78 v-26v-24h-134l1 14q0 87 5 125q12 77 66 112q55 36 132 41q53 4 121 4q131 0 184 -13q100 -26 128 -102q16 -42 16 -109q0 -118 -39 -162q-16 -19 -42 -33q42 -18 60 -42q37 -48 37 -148q0 -142 -61 -196q-43 -38 -111 -48q-71 -10 -162 -10q-153 0 -217 20 q-105 33 -126 134q-6 28 -6 143z" />
|
|
||||||
<glyph unicode="´" d="M379 1396l309 234l83 -112l-337 -207z" />
|
|
||||||
<glyph unicode="µ" horiz-adv-x="1223" d="M115 -273l14 630v677h159v-677q0 -124 21 -161q26 -46 105 -61q47 -9 181 -9q198 0 258 20q56 19 73 90q9 40 9 121v677h159v-677q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -270 -18q-130 0 -190 5t-103 19q-41 14 -80 40l11 -321h-138z" />
|
|
||||||
<glyph unicode="¶" horiz-adv-x="1256" d="M102 882q0 223 66 333q65 108 191 136q61 14 258 14h482v-1560h-156v1414h-187v-1414h-156v612h-68q-225 0 -331 109q-52 54 -75.5 139t-23.5 217z" />
|
|
||||||
<glyph unicode="·" horiz-adv-x="431" d="M123 468v212h185v-212h-185z" />
|
|
||||||
<glyph unicode="¸" d="M345 -258h51q80 1 119 42.5t40 129.5v47h123v-62q-1 -174 -72 -239t-193 -70h-68v152z" />
|
|
||||||
<glyph unicode="¹" horiz-adv-x="853" d="M214 932l256 256h168v-847h-137v707l-202 -202z" />
|
|
||||||
<glyph unicode="º" horiz-adv-x="783" d="M82 834q0 169 26 236q39 98 154 119q44 8 135 8q164 0 225 -51q55 -45 68 -136q11 -75 11 -171q0 -162 -27 -230q-38 -98 -153 -119q-44 -8 -129 -8q-171 0 -231 50q-55 47 -68 137q-11 73 -11 165zM212 847q0 -137 13 -183q12 -43 38 -56q33 -16 129 -16q112 0 140 24 q39 33 39 218q0 135 -13 181q-11 43 -38 56q-33 16 -131 16q-110 0 -138 -24q-39 -33 -39 -216z" />
|
|
||||||
<glyph unicode="»" horiz-adv-x="981" d="M123 172l209 404l-187 399l120 73l222 -472l-251 -480zM507 172l209 404l-187 399l120 73l223 -472l-251 -480z" />
|
|
||||||
<glyph unicode="¼" horiz-adv-x="1946" d="M96 932l256 256h168v-847h-137v707l-202 -202zM543 0l649 1188h135l-653 -1188h-131zM1102 186v134l440 527h179v-544h129v-117h-129v-186h-137v186h-482zM1246 303h338v410z" />
|
|
||||||
<glyph unicode="½" horiz-adv-x="1946" d="M98 932l256 256h168v-847h-137v707l-202 -202zM484 0l649 1188h135l-653 -1188h-131zM1186 0v172q0 69 13.5 110t45.5 68q45 37 126 53q23 4 138 17q153 16 178 37q29 23 29 136q0 90 -25 114q-31 29 -147 29q-184 0 -207 -34q-16 -25 -16 -90q0 -17 1 -51q0 -19 1 -30 h-136v14q2 80 4 109q14 142 120 176q79 25 225 25q184 0 252 -62q61 -56 61 -212q0 -98 -21 -148q-32 -74 -120 -103q-57 -19 -176 -29q-127 -12 -167 -29q-30 -14 -38 -63q-4 -16 -4 -84v-7h523v-118h-660z" />
|
|
||||||
<glyph unicode="¾" horiz-adv-x="1946" d="M71 630v14h135v-14v-53q0 -79 25 -103q15 -16 68 -19q37 -3 144 -3q129 0 154 28q20 23 20 120q0 88 -54 106q-24 9 -186 9l-43 -1h-14v120q39 -1 49 -1q175 0 202 17q30 18 30 95q0 62 -12 94q-12 30 -70 35q-8 0 -124 3q-94 -2 -124 -8q-36 -10 -46 -41q-6 -15 -6 -78 v-26v-24h-134l1 14q0 87 5 125q12 77 66 112q55 36 132 41q53 4 121 4q131 0 184 -13q100 -26 128 -102q16 -42 16 -109q0 -118 -39 -162q-16 -19 -42 -33q42 -18 60 -42q37 -48 37 -148q0 -142 -61 -196q-43 -38 -111 -48q-71 -10 -162 -10q-153 0 -217 20 q-105 33 -126 134q-6 28 -6 143zM578 0l649 1188h135l-653 -1188h-131zM1137 186v134l440 527h179v-544h129v-117h-129v-186h-137v186h-482zM1281 303h338v410z" />
|
|
||||||
<glyph unicode="¿" horiz-adv-x="976" d="M123 155q0 151 17 195q20 52 55 78q36 27 200 88q43 16 53 34q10 16 10 66v176h157v-192q0 -128 -65 -173q-35 -22 -173 -70q-71 -24 -90 -64q-13 -26 -13 -103q0 -135 9 -165q19 -61 86 -72q33 -6 127 -6q95 0 129 11q60 18 72 92q3 21 3 86v29h153v-37q0 -103 -12 -152 q-25 -102 -118 -141q-72 -31 -225 -31q-157 0 -229 26q-110 39 -135 141q-11 46 -11 184zM443 976v212h185v-212h-185z" />
|
|
||||||
<glyph unicode="À" horiz-adv-x="1442" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM332 376h474l-239 625zM454 1605l34 135l375 -101l-20 -100z" />
|
|
||||||
<glyph unicode="Á" horiz-adv-x="1442" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM332 376h474l-239 625zM578 1639l375 101l34 -135l-390 -66z" />
|
|
||||||
<glyph unicode="Â" horiz-adv-x="1442" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM332 376h474l-239 625zM358 1580l367 208l358 -208l-49 -88l-309 142l-324 -142z" />
|
|
||||||
<glyph unicode="Ã" horiz-adv-x="1442" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM332 376h474l-239 625zM367 1589q34 61 59 90q56 65 139 65q47 0 155 -46q104 -45 142 -45q63 0 122 92l89 -57q-97 -157 -214 -157q-52 0 -159 47q-95 42 -139 42q-38 0 -62 -26q-15 -17 -37 -58z" />
|
|
||||||
<glyph unicode="Ä" horiz-adv-x="1442" d="M20 -195l571 1560h248l582 -1560h-184l-121 331h-790l-119 -331h-187zM376 276h688l-346 946zM421 1563v155h184v-155h-184zM836 1563v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="Å" horiz-adv-x="1442" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM332 376h474l-239 625zM541 1655q0 78 59 132q51 46 124 46q76 0 130 -59q46 -51 46 -120q0 -80 -59 -133q-52 -46 -120 -46q-80 0 -134 59q-46 51 -46 121zM619 1654q0 -45 34 -75q28 -26 68 -26 q45 0 75 33q26 29 26 69q0 44 -34 74q-28 26 -69 26q-43 0 -74 -33q-26 -29 -26 -68z" />
|
|
||||||
<glyph unicode="Æ" horiz-adv-x="1729" d="M19 0l651 1170h960v-142h-612v-357h586v-139h-586v-390h612v-142h-771v239h-522l-130 -239h-188zM414 381h445v647h-94z" />
|
|
||||||
<glyph unicode="Ç" horiz-adv-x="1151" d="M94 569q0 273 13 358q21 136 143 204q76 43 203 51q62 4 225 4q154 0 215 -20q138 -45 166 -200q10 -57 10 -144q0 -10 -1 -32h-157q-1 39 -1 51q-2 142 -48 175q-40 29 -185 29q-192 0 -276 -11q-52 -7 -80.5 -29.5t-43.5 -68.5q-16 -50 -16 -166q0 -412 22 -514 q13 -66 48 -93q40 -31 130 -35q55 -2 118 -2q145 0 212.5 9.5t92.5 33.5q35 34 35 153q0 39 -2 90h159v-58q1 -145 -22 -207q-46 -127 -205 -153q-60 -10 -301 -10q-108 0 -154 4.5t-91 20.5q-176 59 -199 311q-10 116 -10 249zM409 -258h51q80 1 119 42.5t40 129.5v47h123 v-62q-1 -174 -72 -239t-193 -70h-68v152z" />
|
|
||||||
<glyph unicode="È" horiz-adv-x="1268" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794zM387 1605l34 135l375 -101l-20 -100z" />
|
|
||||||
<glyph unicode="É" horiz-adv-x="1268" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794zM512 1639l375 101l34 -135l-390 -66z" />
|
|
||||||
<glyph unicode="Ê" horiz-adv-x="1268" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794zM291 1580l367 208l358 -208l-49 -88l-309 142l-324 -142z" />
|
|
||||||
<glyph unicode="Ë" horiz-adv-x="1268" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794zM355 1563v155h184v-155h-184zM770 1563v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="Ì" horiz-adv-x="489" d="M-19 1605l34 135l375 -101l-20 -100zM143 0v1170h159v-1170h-159z" />
|
|
||||||
<glyph unicode="Í" horiz-adv-x="489" d="M157 -195v1560h175v-1560h-175z" />
|
|
||||||
<glyph unicode="Î" horiz-adv-x="445" d="M-77 1377l300 240l300 -240l-64 -80l-236 173l-235 -173zM143 0v1170h159v-1170h-159z" />
|
|
||||||
<glyph unicode="Ï" horiz-adv-x="489" d="M33 1563v155h176v-155h-176zM143 0v1170h159v-1170h-159zM284 1563v155h176v-155h-176z" />
|
|
||||||
<glyph unicode="Ð" horiz-adv-x="1265" d="M49 531v117h116v522h573q110 0 190 -20q121 -29 185 -149q59 -111 59 -362q0 -207 -9 -289q-25 -227 -171 -303q-55 -28 -169 -43q-31 -4 -53 -4h-605v531h-116zM324 142h386q186 0 241 66q46 55 57 186q5 57 5 166q0 199 -10 280q-18 134 -117 169q-54 19 -149 19h-413 v-380h300v-117h-300v-389z" />
|
|
||||||
<glyph unicode="Ñ" horiz-adv-x="1647" d="M143 0v1170h234l643 -1023v1023h159v-1170h-235l-642 1023v-1023h-159zM471 1589q34 61 59 90q56 65 139 65q47 0 155 -46q104 -45 142 -45q63 0 122 92l89 -57q-97 -157 -214 -157q-52 0 -159 47q-95 42 -139 42q-38 0 -62 -26q-15 -17 -37 -58z" />
|
|
||||||
<glyph unicode="Ò" horiz-adv-x="1534" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM500 1605l34 135l375 -101l-20 -100z" />
|
|
||||||
<glyph unicode="Ó" horiz-adv-x="1534" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM625 1639l375 101l34 -135l-390 -66z" />
|
|
||||||
<glyph unicode="Ô" horiz-adv-x="1534" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM404 1580l367 208l358 -208l-49 -88l-309 142l-324 -142z" />
|
|
||||||
<glyph unicode="Õ" horiz-adv-x="1534" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM414 1589q34 61 59 90q56 65 139 65q47 0 155 -46q104 -45 142 -45q63 0 122 92l89 -57q-97 -157 -214 -157q-52 0 -159 47q-95 42 -139 42q-38 0 -62 -26q-15 -17 -37 -58z" />
|
|
||||||
<glyph unicode="Ö" horiz-adv-x="1534" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM467 1563v155h184v-155h-184zM882 1563v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="×" horiz-adv-x="1079" d="M105 235l339 338l-339 339l95 95l339 -338l339 338l95 -95l-339 -339l339 -338l-95 -95l-339 338l-339 -338z" />
|
|
||||||
<glyph unicode="Ø" horiz-adv-x="1124" d="M38 -55v164l51 54q-15 39 -22 72q-18 85 -20 172q-1 65 -1 208q0 189 8 247q29 220 176 285q65 29 168 35q65 4 152 4q142 0 213 -7t118 -26q49 -19 88 -54l118 126v-164l-53 -56q19 -46 28 -87q17 -83 17 -267q0 -278 -9 -348q-15 -114 -52 -177t-110 -98 q-75 -36 -187 -41q-56 -3 -133 -3q-160 0 -226 6t-115 24q-51 20 -93 55zM204 766l1 -181q0 -230 8 -290l653 695q-31 29 -74 39q-48 11 -273 11q-145 0 -195 -15q-46 -13 -69.5 -40t-36.5 -79q-14 -60 -14 -140zM259 180q31 -29 74 -39q48 -11 272 -11q163 0 219 23 q61 24 82 111q14 61 14 140v181q0 229 -8 290z" />
|
|
||||||
<glyph unicode="Ù" horiz-adv-x="1550" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218zM507 1605l34 135l375 -101 l-20 -100z" />
|
|
||||||
<glyph unicode="Ú" horiz-adv-x="1550" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218zM632 1639l375 101l34 -135 l-390 -66z" />
|
|
||||||
<glyph unicode="Û" horiz-adv-x="1550" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218zM411 1580l367 208 l358 -208l-49 -88l-309 142l-324 -142z" />
|
|
||||||
<glyph unicode="Ü" horiz-adv-x="1550" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218zM475 1563v155h184v-155 h-184zM890 1563v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="Ý" horiz-adv-x="1365" d="M1 1170h187l345 -516l344 516h190l-459 -683v-487h-159v487zM541 1639l375 101l34 -135l-390 -66z" />
|
|
||||||
<glyph unicode="Þ" horiz-adv-x="1121" d="M143 0v1170h159v-218h365q112 0 159 -5.5t87 -23.5q146 -66 146 -336q0 -149 -40 -225q-51 -97 -160 -123q-38 -9 -212 -11h-345v-228h-159zM302 370h320q147 0 198 18q55 20 71 84q9 33 9 97q0 121 -15 168q-17 53 -78 66q-26 6 -144 7h-361v-440z" />
|
|
||||||
<glyph unicode="ß" horiz-adv-x="1112" d="M116 -80l1 952q0 196 89 265q64 49 173 57q70 5 163 5q173 0 243 -19q128 -34 164 -137q20 -57 20 -151q0 -163 -49 -222q-32 -39 -96 -59q65 -16 99 -46q68 -59 68 -227q0 -197 -77 -270q-55 -52 -143 -66q-94 -14 -218 -14h-123v140h158q175 0 215 46q31 36 31 182 q0 102 -37 141q-29 31 -79 37q-34 4 -80 4h-205v140h205q115 0 149 47q25 34 25 125q0 98 -19 148q-10 27 -32.5 39t-71.5 18q-43 4 -154 4t-159.5 -7t-71.5 -27q-36 -30 -36 -153v-952h-152z" />
|
|
||||||
<glyph unicode="à" horiz-adv-x="1138" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM311 1518l82 112l310 -234l-56 -85zM332 376h474l-239 625z" />
|
|
||||||
<glyph unicode="á" horiz-adv-x="1138" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM332 376h474l-239 625zM436 1396l309 234l83 -112l-337 -207z" />
|
|
||||||
<glyph unicode="â" horiz-adv-x="1138" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM269 1377l300 240l300 -240l-64 -80l-236 173l-235 -173zM332 376h474l-239 625z" />
|
|
||||||
<glyph unicode="ã" horiz-adv-x="1138" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM253 1406q32 55 57 82q54 59 129 59q48 0 142 -44q98 -45 125 -45q45 0 88 85l91 -57q-81 -144 -180 -144q-54 0 -146 44q-89 43 -123 43q-36 0 -57 -26q-13 -15 -34 -56zM332 376h474l-239 625z" />
|
|
||||||
<glyph unicode="ä" horiz-adv-x="1138" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM270 1366v155h184v-155h-184zM332 376h474l-239 625zM685 1366v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="å" horiz-adv-x="1138" d="M20 0l444 1170h202l453 -1170h-168l-93 242h-577l-92 -242h-169zM332 376h474l-239 625zM390 1468q0 77 59 132q51 46 124 46q76 0 130 -59q46 -52 46 -120q0 -81 -59 -134q-52 -46 -120 -46q-81 0 -134 59q-46 51 -46 122zM468 1467q0 -46 34 -76q28 -26 68 -26 q45 0 75 34q26 28 26 68q0 44 -34 75q-28 26 -69 26q-44 0 -74 -34q-26 -29 -26 -67z" />
|
|
||||||
<glyph unicode="æ" horiz-adv-x="1729" d="M19 0l651 1170h960v-142h-612v-357h586v-139h-586v-390h612v-142h-771v239h-522l-130 -239h-188zM414 381h445v647h-94z" />
|
|
||||||
<glyph unicode="ç" horiz-adv-x="1151" d="M94 569q0 273 13 358q21 136 143 204q76 43 203 51q62 4 225 4q154 0 215 -20q138 -45 166 -200q10 -57 10 -144q0 -10 -1 -32h-157q-1 39 -1 51q-2 142 -48 175q-40 29 -185 29q-192 0 -276 -11q-52 -7 -80.5 -29.5t-43.5 -68.5q-16 -50 -16 -166q0 -412 22 -514 q13 -66 48 -93q40 -31 130 -35q55 -2 118 -2q145 0 212.5 9.5t92.5 33.5q35 34 35 153q0 39 -2 90h159v-58q1 -145 -22 -207q-46 -127 -205 -153q-60 -10 -301 -10q-108 0 -154 4.5t-91 20.5q-176 59 -199 311q-10 116 -10 249zM409 -258h51q80 1 119 42.5t40 129.5v47h123 v-62q-1 -174 -72 -239t-193 -70h-68v152z" />
|
|
||||||
<glyph unicode="è" horiz-adv-x="1036" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794zM278 1518l82 112l310 -234l-56 -85z" />
|
|
||||||
<glyph unicode="é" horiz-adv-x="1036" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794zM403 1396l309 234l83 -112l-337 -207z" />
|
|
||||||
<glyph unicode="ê" horiz-adv-x="1036" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794zM236 1377l300 240l300 -240l-64 -80l-236 173l-235 -173z" />
|
|
||||||
<glyph unicode="ë" horiz-adv-x="1036" d="M143 0v1170h794v-142h-635v-354h610v-139h-610v-393h635v-142h-794zM237 1366v155h184v-155h-184zM652 1366v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="ì" horiz-adv-x="445" d="M-33 1518l82 112l310 -234l-56 -85zM143 0v1170h159v-1170h-159z" />
|
|
||||||
<glyph unicode="í" horiz-adv-x="445" d="M92 1396l309 234l83 -112l-337 -207zM143 0v1170h159v-1170h-159z" />
|
|
||||||
<glyph unicode="î" horiz-adv-x="445" d="M-77 1377l300 240l300 -240l-64 -80l-236 173l-235 -173zM143 0v1170h159v-1170h-159z" />
|
|
||||||
<glyph unicode="ï" horiz-adv-x="445" d="M-13 1366v155h184v-155h-184zM143 0v1170h159v-1170h-159zM280 1366v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="ð" horiz-adv-x="1265" d="M49 531v117h116v522h573q110 0 190 -20q121 -29 185 -149q59 -111 59 -362q0 -207 -9 -289q-25 -227 -171 -303q-55 -28 -169 -43q-31 -4 -53 -4h-605v531h-116zM324 142h386q186 0 241 66q46 55 57 186q5 57 5 166q0 199 -10 280q-18 134 -117 169q-54 19 -149 19h-413 v-380h300v-117h-300v-389z" />
|
|
||||||
<glyph unicode="ñ" horiz-adv-x="1321" d="M143 0v1170h234l643 -1023v1023h159v-1170h-235l-642 1023v-1023h-159zM345 1406q32 55 57 82q54 59 129 59q48 0 142 -44q98 -45 125 -45q45 0 88 85l91 -57q-81 -144 -180 -144q-54 0 -146 44q-89 43 -123 43q-36 0 -57 -26q-13 -15 -34 -56z" />
|
|
||||||
<glyph unicode="ò" horiz-adv-x="1220" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM352 1518l82 112l310 -234l-56 -85z" />
|
|
||||||
<glyph unicode="ó" horiz-adv-x="1220" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM477 1396l309 234l83 -112l-337 -207z" />
|
|
||||||
<glyph unicode="ô" horiz-adv-x="1220" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM310 1377l300 240l300 -240l-64 -80l-236 173l-235 -173z" />
|
|
||||||
<glyph unicode="õ" horiz-adv-x="1220" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM294 1406q32 55 57 82q54 59 129 59q48 0 142 -44q98 -45 125 -45q45 0 88 85l91 -57q-81 -144 -180 -144q-54 0 -146 44q-89 43 -123 43q-36 0 -57 -26q-13 -15 -34 -56z" />
|
|
||||||
<glyph unicode="ö" horiz-adv-x="1220" d="M94 637q0 162 8 225q28 220 176 285q66 29 173 35q69 4 174 4q131 0 199 -8.5t119 -30.5q148 -64 176 -286q8 -60 8 -218q0 -270 -9 -340q-15 -114 -52 -177t-110 -98q-74 -36 -192 -41q-61 -3 -154 -3q-157 0 -223.5 8.5t-122.5 35.5q-105 52 -141 176q-25 86 -27 203 q-2 76 -2 230zM253 585q0 -212 4 -252q8 -81 28.5 -122t63.5 -59q38 -16 111 -19q58 -3 151 -3q124 0 177 4.5t85 17.5q60 25 81 112q14 61 14 140v181q0 212 -4 252q-8 82 -28.5 122.5t-63.5 58.5q-39 16 -114 19q-61 3 -164 3q-115 0 -164 -4.5t-82 -18.5 q-60 -25 -81 -111q-14 -60 -14 -140v-181zM311 1366v155h184v-155h-184zM726 1366v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="÷" horiz-adv-x="1079" d="M66 509v129h946v-129h-946zM447 241q0 39 30 68q26 24 64 24q40 0 67 -31q24 -26 24 -61q0 -41 -31 -69q-26 -24 -61 -24q-41 0 -69 31q-24 26 -24 62zM447 908q0 39 30 68q26 24 64 24q40 0 67 -31q24 -27 24 -61q0 -41 -31 -69q-26 -24 -61 -24q-41 0 -69 31 q-24 27 -24 62z" />
|
|
||||||
<glyph unicode="ø" horiz-adv-x="1124" d="M38 -55v164l51 54q-15 39 -22 72q-18 85 -20 172q-1 65 -1 208q0 189 8 247q29 220 176 285q65 29 168 35q65 4 152 4q142 0 213 -7t118 -26q49 -19 88 -54l118 126v-164l-53 -56q19 -46 28 -87q17 -83 17 -267q0 -278 -9 -348q-15 -114 -52 -177t-110 -98 q-75 -36 -187 -41q-56 -3 -133 -3q-160 0 -226 6t-115 24q-51 20 -93 55zM204 766l1 -181q0 -230 8 -290l653 695q-31 29 -74 39q-48 11 -273 11q-145 0 -195 -15q-46 -13 -69.5 -40t-36.5 -79q-14 -60 -14 -140zM259 180q31 -29 74 -39q48 -11 272 -11q163 0 219 23 q61 24 82 111q14 61 14 140v181q0 229 -8 290z" />
|
|
||||||
<glyph unicode="ù" horiz-adv-x="1251" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218zM366 1518l82 112l310 -234 l-56 -85z" />
|
|
||||||
<glyph unicode="ú" horiz-adv-x="1251" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218zM491 1396l309 234l83 -112 l-337 -207z" />
|
|
||||||
<glyph unicode="û" horiz-adv-x="1251" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218zM324 1377l300 240 l300 -240l-64 -80l-236 173l-235 -173z" />
|
|
||||||
<glyph unicode="ü" horiz-adv-x="1251" d="M143 357v813h159v-813q0 -124 21 -161q27 -46 105 -61q47 -9 181 -9q197 0 258 20q56 18 72 90q10 40 10 121v813h159v-813q0 -150 -33 -218q-49 -103 -176 -137q-69 -18 -267 -18q-141 0 -202.5 6t-108.5 24q-105 40 -145 125q-33 71 -33 218zM325 1366v155h184v-155 h-184zM740 1366v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="ý" horiz-adv-x="1068" d="M1 1170h187l345 -516l344 516h190l-459 -683v-487h-159v487zM400 1396l309 234l83 -112l-337 -207z" />
|
|
||||||
<glyph unicode="þ" horiz-adv-x="1121" d="M143 0v1170h159v-218h365q112 0 159 -5.5t87 -23.5q146 -66 146 -336q0 -149 -40 -225q-51 -97 -160 -123q-38 -9 -212 -11h-345v-228h-159zM302 370h320q147 0 198 18q55 20 71 84q9 33 9 97q0 121 -15 168q-17 53 -78 66q-26 6 -144 7h-361v-440z" />
|
|
||||||
<glyph unicode="ÿ" horiz-adv-x="1068" d="M1 1170h187l345 -516l344 516h190l-459 -683v-487h-159v487zM234 1366v155h184v-155h-184zM649 1366v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="Œ" horiz-adv-x="1820" d="M94 443q0 159 1 293q1 194 50 284q66 124 233 154q64 12 192 12q195 0 268 -24q50 -18 113 -78v86h770v-142h-616v-354h591v-139h-591v-393h616v-142h-771l2 85q-78 -68 -140 -86q-52 -15 -202 -15q-197 0 -257 11q-97 19 -160.5 84.5t-84.5 169.5q-14 72 -14 194z M254 435q0 -154 32 -223q30 -67 135 -80q44 -6 170 -6q175 0 228 14q85 23 108 102q16 58 16 156v355q0 132 -25 200q-14 37 -43 56t-87 27q-65 9 -268 9q-164 0 -213 -52q-49 -53 -52 -253q-1 -91 -1 -305z" />
|
|
||||||
<glyph unicode="œ" horiz-adv-x="1820" d="M94 443q0 159 1 293q1 194 50 284q66 124 233 154q64 12 192 12q195 0 268 -24q50 -18 113 -78v86h770v-142h-616v-354h591v-139h-591v-393h616v-142h-771l2 85q-78 -68 -140 -86q-52 -15 -202 -15q-197 0 -257 11q-97 19 -160.5 84.5t-84.5 169.5q-14 72 -14 194z M254 435q0 -154 32 -223q30 -67 135 -80q44 -6 170 -6q175 0 228 14q85 23 108 102q16 58 16 156v355q0 132 -25 200q-14 37 -43 56t-87 27q-65 9 -268 9q-164 0 -213 -52q-49 -53 -52 -253q-1 -91 -1 -305z" />
|
|
||||||
<glyph unicode="Ÿ" horiz-adv-x="1365" d="M1 1170h187l345 -516l344 516h190l-459 -683v-487h-159v487zM383 1563v155h184v-155h-184zM798 1563v155h184v-155h-184z" />
|
|
||||||
<glyph unicode="ˆ" d="M212 1377l300 240l300 -240l-64 -80l-236 173l-235 -173z" />
|
|
||||||
<glyph unicode="˜" d="M196 1406q32 55 57 82q54 59 129 59q48 0 142 -44q98 -45 125 -45q45 0 88 85l91 -57q-81 -144 -180 -144q-54 0 -146 44q-89 43 -123 43q-36 0 -57 -26q-13 -15 -34 -56z" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="916" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="1833" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="916" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="1833" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="611" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="458" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="305" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="305" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="229" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="366" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="101" />
|
|
||||||
<glyph unicode="‐" horiz-adv-x="513" d="M20 493v152h473v-152h-473z" />
|
|
||||||
<glyph unicode="‑" horiz-adv-x="513" d="M20 493v152h473v-152h-473z" />
|
|
||||||
<glyph unicode="‒" horiz-adv-x="513" d="M20 493v152h473v-152h-473z" />
|
|
||||||
<glyph unicode="–" horiz-adv-x="1109" d="M96 493v152h918v-152h-918z" />
|
|
||||||
<glyph unicode="—" horiz-adv-x="1647" d="M14 493l11 152h1609v-152h-1620z" />
|
|
||||||
<glyph unicode="‘" horiz-adv-x="454" d="M123 956v228q0 111 26 151q39 62 132 62q18 0 50 -3v-87q-53 -3 -74 -20q-28 -21 -28 -77q0 -14 1 -43h79v-211h-186z" />
|
|
||||||
<glyph unicode="’" horiz-adv-x="454" d="M123 925v88q54 3 75 19q28 21 28 76q0 16 -2 45h-78v212h185v-229q0 -111 -26 -151q-39 -62 -133 -62q-18 0 -49 2z" />
|
|
||||||
<glyph unicode="‚" horiz-adv-x="454" d="M123 -140q53 3 75 19q28 21 28 76q0 15 -2 45h-78v212h185v-228q0 -111 -26 -152q-38 -62 -133 -62q-18 0 -49 2v88z" />
|
|
||||||
<glyph unicode="“" horiz-adv-x="782" d="M123 956v228q0 111 26 151q39 62 132 62q18 0 50 -3v-87q-53 -3 -74 -20q-28 -21 -28 -77q0 -14 1 -43h79v-211h-186zM451 956v228q0 110 25 151q39 62 132 62q19 0 51 -3v-87q-53 -3 -75 -20q-28 -21 -28 -75q0 -15 2 -45h78v-211h-185z" />
|
|
||||||
<glyph unicode="”" horiz-adv-x="782" d="M123 925v88q54 3 75 19q28 21 28 76q0 16 -2 45h-78v212h185v-229q0 -111 -26 -151q-39 -62 -133 -62q-18 0 -49 2zM451 925v88q54 3 75 19q28 22 28 77q0 15 -2 44h-78v212h185v-229q0 -111 -26 -151q-38 -62 -132 -62q-19 0 -50 2z" />
|
|
||||||
<glyph unicode="„" horiz-adv-x="782" d="M123 -140q53 3 75 19q28 21 28 76q0 15 -2 45h-78v212h185v-228q0 -111 -26 -152q-38 -62 -133 -62q-18 0 -49 2v88zM451 -140q53 3 75 19q28 22 28 77q0 15 -2 44h-78v212h185v-228q0 -111 -26 -152q-38 -62 -133 -62q-18 0 -49 2v88z" />
|
|
||||||
<glyph unicode="•" horiz-adv-x="1365" d="M401 570q0 121 84 202q85 83 204 83q113 0 196 -83q84 -83 84 -201t-84 -201q-82 -83 -200 -83t-200 83q-84 83 -84 200z" />
|
|
||||||
<glyph unicode="…" horiz-adv-x="1292" d="M123 0v212h185v-212h-185zM554 0v212h185v-212h-185zM985 0v212h185v-212h-185z" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="366" />
|
|
||||||
<glyph unicode="‹" horiz-adv-x="597" d="M109 600l223 473l120 -74l-188 -399l209 -404l-113 -75z" />
|
|
||||||
<glyph unicode="›" horiz-adv-x="597" d="M123 172l209 404l-187 399l120 73l222 -472l-251 -480z" />
|
|
||||||
<glyph unicode=" " horiz-adv-x="458" />
|
|
||||||
<glyph unicode="€" horiz-adv-x="1011" d="M98 457l29 108h81v101h-108l27 109h88q1 87 11 175q24 185 144 260q79 52 216 54t281 -48l-65 -118q-57 18 -126 29t-147 3q-58 -12 -87 -47t-44 -86q-17 -56 -22 -221h394l-35 -108h-361v-103h320l-39 -111h-281q3 -118 21 -208q24 -84 68 -119t129 -40q74 -1 123 7.5 t117 45.5l80 -115q-122 -63 -268 -67t-221 26q-175 66 -201 322q-8 74 -7 151h-117z" />
|
|
||||||
<glyph unicode="™" horiz-adv-x="1766" d="M127 1257v108h565v-108h-222v-670h-119v670h-224zM829 587v778h171l232 -605l232 605h174v-778h-120v591l-227 -591h-115l-228 591v-591h-119z" />
|
|
||||||
<glyph unicode="◼" horiz-adv-x="1170" d="M0 0v1170h1170v-1170h-1170z" />
|
|
||||||
<hkern u1="," u2="”" k="69" />
|
|
||||||
<hkern u1="," u2="’" k="69" />
|
|
||||||
<hkern u1="," u2="1" k="154" />
|
|
||||||
<hkern u1="-" u2="Y" k="123" />
|
|
||||||
<hkern u1="-" u2="W" k="26" />
|
|
||||||
<hkern u1="-" u2="V" k="42" />
|
|
||||||
<hkern u1="-" u2="T" k="168" />
|
|
||||||
<hkern u1="-" u2="A" k="33" />
|
|
||||||
<hkern u1="." u2="”" k="70" />
|
|
||||||
<hkern u1="." u2="’" k="70" />
|
|
||||||
<hkern u1="." u2="1" k="154" />
|
|
||||||
<hkern u1="0" u2="7" k="15" />
|
|
||||||
<hkern u1="0" u2="4" k="-15" />
|
|
||||||
<hkern u1="0" u2="1" k="-28" />
|
|
||||||
<hkern u1="1" u2="9" k="36" />
|
|
||||||
<hkern u1="1" u2="8" k="37" />
|
|
||||||
<hkern u1="1" u2="7" k="31" />
|
|
||||||
<hkern u1="1" u2="6" k="34" />
|
|
||||||
<hkern u1="1" u2="5" k="43" />
|
|
||||||
<hkern u1="1" u2="4" k="17" />
|
|
||||||
<hkern u1="1" u2="3" k="35" />
|
|
||||||
<hkern u1="1" u2="2" k="30" />
|
|
||||||
<hkern u1="1" u2="1" k="4" />
|
|
||||||
<hkern u1="1" u2="0" k="29" />
|
|
||||||
<hkern u1="1" u2="." k="34" />
|
|
||||||
<hkern u1="1" u2="," k="46" />
|
|
||||||
<hkern u1="2" u2="7" k="10" />
|
|
||||||
<hkern u1="2" u2="4" k="40" />
|
|
||||||
<hkern u1="2" u2="1" k="-29" />
|
|
||||||
<hkern u1="3" u2="7" k="23" />
|
|
||||||
<hkern u1="3" u2="4" k="-8" />
|
|
||||||
<hkern u1="3" u2="1" k="-10" />
|
|
||||||
<hkern u1="4" u2="7" k="66" />
|
|
||||||
<hkern u1="4" u2="4" k="-34" />
|
|
||||||
<hkern u1="4" u2="1" k="39" />
|
|
||||||
<hkern u1="5" u2="7" k="26" />
|
|
||||||
<hkern u1="5" u2="4" k="-12" />
|
|
||||||
<hkern u1="5" u2="1" k="47" />
|
|
||||||
<hkern u1="6" u2="7" k="22" />
|
|
||||||
<hkern u1="6" u2="4" k="-13" />
|
|
||||||
<hkern u1="6" u2="1" k="-2" />
|
|
||||||
<hkern u1="7" u2=":" k="13" />
|
|
||||||
<hkern u1="7" u2="8" k="17" />
|
|
||||||
<hkern u1="7" u2="7" k="-2" />
|
|
||||||
<hkern u1="7" u2="6" k="19" />
|
|
||||||
<hkern u1="7" u2="5" k="24" />
|
|
||||||
<hkern u1="7" u2="4" k="135" />
|
|
||||||
<hkern u1="7" u2="3" k="15" />
|
|
||||||
<hkern u1="7" u2="2" k="11" />
|
|
||||||
<hkern u1="7" u2="1" k="13" />
|
|
||||||
<hkern u1="7" u2="." k="218" />
|
|
||||||
<hkern u1="7" u2="," k="226" />
|
|
||||||
<hkern u1="8" u2="7" k="13" />
|
|
||||||
<hkern u1="8" u2="4" k="-14" />
|
|
||||||
<hkern u1="8" u2="1" k="-20" />
|
|
||||||
<hkern u1="9" u2="7" k="20" />
|
|
||||||
<hkern u1="9" u2="4" k="-10" />
|
|
||||||
<hkern u1="9" u2="1" k="-21" />
|
|
||||||
<hkern u1="A" u2="‹" k="110" />
|
|
||||||
<hkern u1="A" u2="”" k="170" />
|
|
||||||
<hkern u1="A" u2="’" k="170" />
|
|
||||||
<hkern u1="A" u2="ç" k="52" />
|
|
||||||
<hkern u1="A" u2="Ç" k="30" />
|
|
||||||
<hkern u1="A" u2="«" k="106" />
|
|
||||||
<hkern u1="A" u2="y" k="169" />
|
|
||||||
<hkern u1="A" u2="w" k="137" />
|
|
||||||
<hkern u1="A" u2="v" k="153" />
|
|
||||||
<hkern u1="A" u2="u" k="65" />
|
|
||||||
<hkern u1="A" u2="t" k="159" />
|
|
||||||
<hkern u1="A" u2="q" k="50" />
|
|
||||||
<hkern u1="A" u2="o" k="51" />
|
|
||||||
<hkern u1="A" u2="g" k="47" />
|
|
||||||
<hkern u1="A" u2="e" k="24" />
|
|
||||||
<hkern u1="A" u2="d" k="24" />
|
|
||||||
<hkern u1="A" u2="c" k="52" />
|
|
||||||
<hkern u1="A" u2="b" k="24" />
|
|
||||||
<hkern u1="A" u2="a" k="-36" />
|
|
||||||
<hkern u1="A" u2="Y" k="208" />
|
|
||||||
<hkern u1="A" u2="W" k="166" />
|
|
||||||
<hkern u1="A" u2="V" k="190" />
|
|
||||||
<hkern u1="A" u2="U" k="44" />
|
|
||||||
<hkern u1="A" u2="T" k="193" />
|
|
||||||
<hkern u1="A" u2="Q" k="30" />
|
|
||||||
<hkern u1="A" u2="O" k="30" />
|
|
||||||
<hkern u1="A" u2="G" k="26" />
|
|
||||||
<hkern u1="A" u2="C" k="30" />
|
|
||||||
<hkern u1="A" u2="." k="10" />
|
|
||||||
<hkern u1="A" u2="-" k="36" />
|
|
||||||
<hkern u1="A" u2="," k="21" />
|
|
||||||
<hkern u1="B" u2="Ø" k="-14" />
|
|
||||||
<hkern u1="B" u2="Y" k="39" />
|
|
||||||
<hkern u1="B" u2="W" k="24" />
|
|
||||||
<hkern u1="B" u2="V" k="28" />
|
|
||||||
<hkern u1="B" u2="A" k="9" />
|
|
||||||
<hkern u1="C" u2="O" k="-6" />
|
|
||||||
<hkern u1="C" u2="K" k="19" />
|
|
||||||
<hkern u1="C" u2="H" k="19" />
|
|
||||||
<hkern u1="C" u2="A" k="2" />
|
|
||||||
<hkern u1="D" u2="Y" k="57" />
|
|
||||||
<hkern u1="D" u2="X" k="70" />
|
|
||||||
<hkern u1="D" u2="W" k="29" />
|
|
||||||
<hkern u1="D" u2="V" k="36" />
|
|
||||||
<hkern u1="D" u2="T" k="27" />
|
|
||||||
<hkern u1="D" u2="J" k="-15" />
|
|
||||||
<hkern u1="D" u2="A" k="36" />
|
|
||||||
<hkern u1="F" u2="œ" k="-8" />
|
|
||||||
<hkern u1="F" u2="ø" k="-31" />
|
|
||||||
<hkern u1="F" u2="ö" k="-8" />
|
|
||||||
<hkern u1="F" u2="ó" k="-8" />
|
|
||||||
<hkern u1="F" u2="é" k="16" />
|
|
||||||
<hkern u1="F" u2="æ" k="99" />
|
|
||||||
<hkern u1="F" u2="å" k="54" />
|
|
||||||
<hkern u1="F" u2="ä" k="54" />
|
|
||||||
<hkern u1="F" u2="á" k="54" />
|
|
||||||
<hkern u1="F" u2="u" k="16" />
|
|
||||||
<hkern u1="F" u2="r" k="16" />
|
|
||||||
<hkern u1="F" u2="o" k="-8" />
|
|
||||||
<hkern u1="F" u2="j" k="2" />
|
|
||||||
<hkern u1="F" u2="i" k="16" />
|
|
||||||
<hkern u1="F" u2="e" k="16" />
|
|
||||||
<hkern u1="F" u2="a" k="54" />
|
|
||||||
<hkern u1="F" u2="O" k="-8" />
|
|
||||||
<hkern u1="F" u2="J" k="35" />
|
|
||||||
<hkern u1="F" u2="A" k="81" />
|
|
||||||
<hkern u1="F" u2="." k="119" />
|
|
||||||
<hkern u1="F" u2="-" k="-52" />
|
|
||||||
<hkern u1="F" u2="," k="121" />
|
|
||||||
<hkern u1="G" u2="Y" k="15" />
|
|
||||||
<hkern u1="G" u2="W" k="2" />
|
|
||||||
<hkern u1="G" u2="V" k="6" />
|
|
||||||
<hkern u1="G" u2="T" k="-9" />
|
|
||||||
<hkern u1="G" u2="A" k="18" />
|
|
||||||
<hkern u1="J" u2="A" k="40" />
|
|
||||||
<hkern u1="K" u2="Œ" k="79" />
|
|
||||||
<hkern u1="K" u2="ü" k="95" />
|
|
||||||
<hkern u1="K" u2="ö" k="135" />
|
|
||||||
<hkern u1="K" u2="ó" k="135" />
|
|
||||||
<hkern u1="K" u2="æ" k="12" />
|
|
||||||
<hkern u1="K" u2="å" k="12" />
|
|
||||||
<hkern u1="K" u2="ä" k="12" />
|
|
||||||
<hkern u1="K" u2="y" k="46" />
|
|
||||||
<hkern u1="K" u2="u" k="105" />
|
|
||||||
<hkern u1="K" u2="o" k="135" />
|
|
||||||
<hkern u1="K" u2="e" k="74" />
|
|
||||||
<hkern u1="K" u2="a" k="12" />
|
|
||||||
<hkern u1="K" u2="T" k="-36" />
|
|
||||||
<hkern u1="K" u2="S" k="56" />
|
|
||||||
<hkern u1="K" u2="O" k="79" />
|
|
||||||
<hkern u1="K" u2="G" k="78" />
|
|
||||||
<hkern u1="K" u2="C" k="78" />
|
|
||||||
<hkern u1="K" u2="-" k="198" />
|
|
||||||
<hkern u1="L" u2="”" k="371" />
|
|
||||||
<hkern u1="L" u2="’" k="371" />
|
|
||||||
<hkern u1="L" u2="ü" k="385" />
|
|
||||||
<hkern u1="L" u2="Ç" k="367" />
|
|
||||||
<hkern u1="L" u2="y" k="329" />
|
|
||||||
<hkern u1="L" u2="u" k="385" />
|
|
||||||
<hkern u1="L" u2="Y" k="330" />
|
|
||||||
<hkern u1="L" u2="W" k="336" />
|
|
||||||
<hkern u1="L" u2="V" k="336" />
|
|
||||||
<hkern u1="L" u2="U" k="382" />
|
|
||||||
<hkern u1="L" u2="T" k="345" />
|
|
||||||
<hkern u1="L" u2="S" k="369" />
|
|
||||||
<hkern u1="L" u2="O" k="368" />
|
|
||||||
<hkern u1="L" u2="G" k="367" />
|
|
||||||
<hkern u1="L" u2="C" k="367" />
|
|
||||||
<hkern u1="L" u2="A" k="369" />
|
|
||||||
<hkern u1="L" u2="-" k="314" />
|
|
||||||
<hkern u1="N" u2="ü" k="37" />
|
|
||||||
<hkern u1="N" u2="ø" k="-8" />
|
|
||||||
<hkern u1="N" u2="ö" k="21" />
|
|
||||||
<hkern u1="N" u2="ó" k="21" />
|
|
||||||
<hkern u1="N" u2="é" k="32" />
|
|
||||||
<hkern u1="N" u2="æ" k="-7" />
|
|
||||||
<hkern u1="N" u2="å" k="-6" />
|
|
||||||
<hkern u1="N" u2="ä" k="-6" />
|
|
||||||
<hkern u1="N" u2="á" k="-6" />
|
|
||||||
<hkern u1="N" u2="Ç" k="19" />
|
|
||||||
<hkern u1="N" u2="u" k="37" />
|
|
||||||
<hkern u1="N" u2="o" k="21" />
|
|
||||||
<hkern u1="N" u2="e" k="32" />
|
|
||||||
<hkern u1="N" u2="a" k="-6" />
|
|
||||||
<hkern u1="N" u2="O" k="20" />
|
|
||||||
<hkern u1="N" u2="G" k="19" />
|
|
||||||
<hkern u1="N" u2="C" k="19" />
|
|
||||||
<hkern u1="N" u2="A" k="26" />
|
|
||||||
<hkern u1="N" u2="." k="27" />
|
|
||||||
<hkern u1="N" u2="," k="38" />
|
|
||||||
<hkern u1="O" u2="Y" k="38" />
|
|
||||||
<hkern u1="O" u2="X" k="62" />
|
|
||||||
<hkern u1="O" u2="W" k="19" />
|
|
||||||
<hkern u1="O" u2="V" k="25" />
|
|
||||||
<hkern u1="O" u2="T" k="10" />
|
|
||||||
<hkern u1="O" u2="A" k="30" />
|
|
||||||
<hkern u1="P" u2="œ" k="-12" />
|
|
||||||
<hkern u1="P" u2="ø" k="-36" />
|
|
||||||
<hkern u1="P" u2="ö" k="-12" />
|
|
||||||
<hkern u1="P" u2="ó" k="-12" />
|
|
||||||
<hkern u1="P" u2="é" k="9" />
|
|
||||||
<hkern u1="P" u2="æ" k="132" />
|
|
||||||
<hkern u1="P" u2="å" k="82" />
|
|
||||||
<hkern u1="P" u2="ä" k="82" />
|
|
||||||
<hkern u1="P" u2="á" k="82" />
|
|
||||||
<hkern u1="P" u2="o" k="-12" />
|
|
||||||
<hkern u1="P" u2="e" k="9" />
|
|
||||||
<hkern u1="P" u2="a" k="82" />
|
|
||||||
<hkern u1="P" u2="J" k="72" />
|
|
||||||
<hkern u1="P" u2="A" k="109" />
|
|
||||||
<hkern u1="P" u2="." k="156" />
|
|
||||||
<hkern u1="P" u2="-" k="-44" />
|
|
||||||
<hkern u1="P" u2="," k="158" />
|
|
||||||
<hkern u1="R" u2="œ" k="14" />
|
|
||||||
<hkern u1="R" u2="Œ" k="14" />
|
|
||||||
<hkern u1="R" u2="ü" k="37" />
|
|
||||||
<hkern u1="R" u2="ú" k="37" />
|
|
||||||
<hkern u1="R" u2="ö" k="15" />
|
|
||||||
<hkern u1="R" u2="ó" k="15" />
|
|
||||||
<hkern u1="R" u2="é" k="31" />
|
|
||||||
<hkern u1="R" u2="æ" k="-13" />
|
|
||||||
<hkern u1="R" u2="å" k="-12" />
|
|
||||||
<hkern u1="R" u2="ä" k="-12" />
|
|
||||||
<hkern u1="R" u2="á" k="-12" />
|
|
||||||
<hkern u1="R" u2="Ç" k="13" />
|
|
||||||
<hkern u1="R" u2="y" k="-14" />
|
|
||||||
<hkern u1="R" u2="u" k="37" />
|
|
||||||
<hkern u1="R" u2="o" k="15" />
|
|
||||||
<hkern u1="R" u2="e" k="30" />
|
|
||||||
<hkern u1="R" u2="a" k="-12" />
|
|
||||||
<hkern u1="R" u2="Y" k="39" />
|
|
||||||
<hkern u1="R" u2="W" k="19" />
|
|
||||||
<hkern u1="R" u2="V" k="24" />
|
|
||||||
<hkern u1="R" u2="U" k="39" />
|
|
||||||
<hkern u1="R" u2="T" k="10" />
|
|
||||||
<hkern u1="R" u2="O" k="13" />
|
|
||||||
<hkern u1="R" u2="G" k="13" />
|
|
||||||
<hkern u1="R" u2="C" k="13" />
|
|
||||||
<hkern u1="R" u2="-" k="-14" />
|
|
||||||
<hkern u1="S" u2="t" k="-14" />
|
|
||||||
<hkern u1="S" u2="Y" k="24" />
|
|
||||||
<hkern u1="S" u2="W" k="11" />
|
|
||||||
<hkern u1="S" u2="V" k="15" />
|
|
||||||
<hkern u1="S" u2="A" k="10" />
|
|
||||||
<hkern u1="T" u2="‹" k="231" />
|
|
||||||
<hkern u1="T" u2="Œ" k="9" />
|
|
||||||
<hkern u1="T" u2="ø" k="85" />
|
|
||||||
<hkern u1="T" u2="æ" k="189" />
|
|
||||||
<hkern u1="T" u2="Ø" k="3" />
|
|
||||||
<hkern u1="T" u2="«" k="231" />
|
|
||||||
<hkern u1="T" u2="y" k="183" />
|
|
||||||
<hkern u1="T" u2="w" k="189" />
|
|
||||||
<hkern u1="T" u2="v" k="189" />
|
|
||||||
<hkern u1="T" u2="u" k="239" />
|
|
||||||
<hkern u1="T" u2="s" k="223" />
|
|
||||||
<hkern u1="T" u2="r" k="229" />
|
|
||||||
<hkern u1="T" u2="o" k="225" />
|
|
||||||
<hkern u1="T" u2="j" k="208" />
|
|
||||||
<hkern u1="T" u2="i" k="229" />
|
|
||||||
<hkern u1="T" u2="g" k="224" />
|
|
||||||
<hkern u1="T" u2="e" k="229" />
|
|
||||||
<hkern u1="T" u2="c" k="225" />
|
|
||||||
<hkern u1="T" u2="a" k="190" />
|
|
||||||
<hkern u1="T" u2="Y" k="-67" />
|
|
||||||
<hkern u1="T" u2="W" k="-61" />
|
|
||||||
<hkern u1="T" u2="V" k="-61" />
|
|
||||||
<hkern u1="T" u2="S" k="-6" />
|
|
||||||
<hkern u1="T" u2="O" k="9" />
|
|
||||||
<hkern u1="T" u2="J" k="206" />
|
|
||||||
<hkern u1="T" u2="G" k="9" />
|
|
||||||
<hkern u1="T" u2="C" k="3" />
|
|
||||||
<hkern u1="T" u2="A" k="188" />
|
|
||||||
<hkern u1="T" u2=";" k="243" />
|
|
||||||
<hkern u1="T" u2=":" k="237" />
|
|
||||||
<hkern u1="T" u2="." k="226" />
|
|
||||||
<hkern u1="T" u2="-" k="168" />
|
|
||||||
<hkern u1="T" u2="," k="236" />
|
|
||||||
<hkern u1="U" u2="r" k="34" />
|
|
||||||
<hkern u1="U" u2="p" k="34" />
|
|
||||||
<hkern u1="U" u2="n" k="34" />
|
|
||||||
<hkern u1="U" u2="m" k="34" />
|
|
||||||
<hkern u1="U" u2="A" k="44" />
|
|
||||||
<hkern u1="U" u2="." k="32" />
|
|
||||||
<hkern u1="U" u2="," k="43" />
|
|
||||||
<hkern u1="V" u2="‹" k="99" />
|
|
||||||
<hkern u1="V" u2="ø" k="19" />
|
|
||||||
<hkern u1="V" u2="æ" k="166" />
|
|
||||||
<hkern u1="V" u2="Ø" k="16" />
|
|
||||||
<hkern u1="V" u2="«" k="103" />
|
|
||||||
<hkern u1="V" u2="y" k="-41" />
|
|
||||||
<hkern u1="V" u2="u" k="22" />
|
|
||||||
<hkern u1="V" u2="r" k="26" />
|
|
||||||
<hkern u1="V" u2="o" k="43" />
|
|
||||||
<hkern u1="V" u2="i" k="26" />
|
|
||||||
<hkern u1="V" u2="g" k="41" />
|
|
||||||
<hkern u1="V" u2="e" k="26" />
|
|
||||||
<hkern u1="V" u2="a" k="154" />
|
|
||||||
<hkern u1="V" u2="T" k="-62" />
|
|
||||||
<hkern u1="V" u2="S" k="8" />
|
|
||||||
<hkern u1="V" u2="O" k="24" />
|
|
||||||
<hkern u1="V" u2="G" k="22" />
|
|
||||||
<hkern u1="V" u2="C" k="18" />
|
|
||||||
<hkern u1="V" u2="A" k="185" />
|
|
||||||
<hkern u1="V" u2=";" k="28" />
|
|
||||||
<hkern u1="V" u2=":" k="26" />
|
|
||||||
<hkern u1="V" u2="." k="163" />
|
|
||||||
<hkern u1="V" u2="-" k="42" />
|
|
||||||
<hkern u1="V" u2="," k="173" />
|
|
||||||
<hkern u1="W" u2="‹" k="87" />
|
|
||||||
<hkern u1="W" u2="ø" k="14" />
|
|
||||||
<hkern u1="W" u2="æ" k="142" />
|
|
||||||
<hkern u1="W" u2="Ø" k="14" />
|
|
||||||
<hkern u1="W" u2="«" k="90" />
|
|
||||||
<hkern u1="W" u2="y" k="-44" />
|
|
||||||
<hkern u1="W" u2="u" k="20" />
|
|
||||||
<hkern u1="W" u2="r" k="23" />
|
|
||||||
<hkern u1="W" u2="o" k="38" />
|
|
||||||
<hkern u1="W" u2="i" k="23" />
|
|
||||||
<hkern u1="W" u2="g" k="37" />
|
|
||||||
<hkern u1="W" u2="e" k="23" />
|
|
||||||
<hkern u1="W" u2="a" k="141" />
|
|
||||||
<hkern u1="W" u2="T" k="-60" />
|
|
||||||
<hkern u1="W" u2="S" k="7" />
|
|
||||||
<hkern u1="W" u2="O" k="21" />
|
|
||||||
<hkern u1="W" u2="G" k="21" />
|
|
||||||
<hkern u1="W" u2="C" k="15" />
|
|
||||||
<hkern u1="W" u2="A" k="172" />
|
|
||||||
<hkern u1="W" u2=";" k="24" />
|
|
||||||
<hkern u1="W" u2=":" k="22" />
|
|
||||||
<hkern u1="W" u2="." k="143" />
|
|
||||||
<hkern u1="W" u2="-" k="31" />
|
|
||||||
<hkern u1="W" u2="," k="154" />
|
|
||||||
<hkern u1="X" u2="y" k="3" />
|
|
||||||
<hkern u1="X" u2="u" k="63" />
|
|
||||||
<hkern u1="X" u2="o" k="97" />
|
|
||||||
<hkern u1="X" u2="e" k="50" />
|
|
||||||
<hkern u1="X" u2="a" k="-10" />
|
|
||||||
<hkern u1="X" u2="Q" k="57" />
|
|
||||||
<hkern u1="X" u2="O" k="58" />
|
|
||||||
<hkern u1="X" u2="C" k="54" />
|
|
||||||
<hkern u1="X" u2="-" k="118" />
|
|
||||||
<hkern u1="Y" u2="‹" k="163" />
|
|
||||||
<hkern u1="Y" u2="ø" k="57" />
|
|
||||||
<hkern u1="Y" u2="æ" k="215" />
|
|
||||||
<hkern u1="Y" u2="Ø" k="31" />
|
|
||||||
<hkern u1="Y" u2="«" k="170" />
|
|
||||||
<hkern u1="Y" u2="v" k="-12" />
|
|
||||||
<hkern u1="Y" u2="u" k="43" />
|
|
||||||
<hkern u1="Y" u2="p" k="49" />
|
|
||||||
<hkern u1="Y" u2="o" k="80" />
|
|
||||||
<hkern u1="Y" u2="i" k="49" />
|
|
||||||
<hkern u1="Y" u2="g" k="78" />
|
|
||||||
<hkern u1="Y" u2="e" k="49" />
|
|
||||||
<hkern u1="Y" u2="a" k="204" />
|
|
||||||
<hkern u1="Y" u2="T" k="-67" />
|
|
||||||
<hkern u1="Y" u2="S" k="16" />
|
|
||||||
<hkern u1="Y" u2="O" k="39" />
|
|
||||||
<hkern u1="Y" u2="G" k="37" />
|
|
||||||
<hkern u1="Y" u2="C" k="34" />
|
|
||||||
<hkern u1="Y" u2="A" k="198" />
|
|
||||||
<hkern u1="Y" u2=";" k="62" />
|
|
||||||
<hkern u1="Y" u2=":" k="62" />
|
|
||||||
<hkern u1="Y" u2="." k="251" />
|
|
||||||
<hkern u1="Y" u2="-" k="129" />
|
|
||||||
<hkern u1="Y" u2="," k="262" />
|
|
||||||
<hkern u1="Z" u2="y" k="-19" />
|
|
||||||
<hkern u1="Z" u2="v" k="-13" />
|
|
||||||
<hkern u1="a" u2="’" k="143" />
|
|
||||||
<hkern u1="a" u2="y" k="144" />
|
|
||||||
<hkern u1="a" u2="w" k="104" />
|
|
||||||
<hkern u1="a" u2="v" k="121" />
|
|
||||||
<hkern u1="a" u2="j" k="-16" />
|
|
||||||
<hkern u1="b" u2="y" k="16" />
|
|
||||||
<hkern u1="b" u2="w" k="6" />
|
|
||||||
<hkern u1="b" u2="v" k="10" />
|
|
||||||
<hkern u1="c" u2="k" k="18" />
|
|
||||||
<hkern u1="c" u2="h" k="18" />
|
|
||||||
<hkern u1="e" u2="’" k="14" />
|
|
||||||
<hkern u1="e" u2="y" k="-39" />
|
|
||||||
<hkern u1="e" u2="x" k="-42" />
|
|
||||||
<hkern u1="e" u2="w" k="-33" />
|
|
||||||
<hkern u1="e" u2="v" k="-33" />
|
|
||||||
<hkern u1="e" u2="t" k="-23" />
|
|
||||||
<hkern u1="f" u2="’" k="-6" />
|
|
||||||
<hkern u1="f" u2="œ" k="-9" />
|
|
||||||
<hkern u1="f" u2="ø" k="-33" />
|
|
||||||
<hkern u1="f" u2="ö" k="-9" />
|
|
||||||
<hkern u1="f" u2="ó" k="-9" />
|
|
||||||
<hkern u1="f" u2="é" k="8" />
|
|
||||||
<hkern u1="f" u2="æ" k="98" />
|
|
||||||
<hkern u1="f" u2="å" k="53" />
|
|
||||||
<hkern u1="f" u2="ä" k="53" />
|
|
||||||
<hkern u1="f" u2="á" k="53" />
|
|
||||||
<hkern u1="f" u2="t" k="-44" />
|
|
||||||
<hkern u1="f" u2="s" k="-8" />
|
|
||||||
<hkern u1="f" u2="o" k="-9" />
|
|
||||||
<hkern u1="f" u2="l" k="8" />
|
|
||||||
<hkern u1="f" u2="j" k="1" />
|
|
||||||
<hkern u1="f" u2="i" k="8" />
|
|
||||||
<hkern u1="f" u2="f" k="8" />
|
|
||||||
<hkern u1="f" u2="e" k="8" />
|
|
||||||
<hkern u1="f" u2="a" k="53" />
|
|
||||||
<hkern u1="g" u2="ö" k="1" />
|
|
||||||
<hkern u1="g" u2="ó" k="1" />
|
|
||||||
<hkern u1="g" u2="é" k="17" />
|
|
||||||
<hkern u1="g" u2="æ" k="20" />
|
|
||||||
<hkern u1="g" u2="å" k="9" />
|
|
||||||
<hkern u1="g" u2="ä" k="9" />
|
|
||||||
<hkern u1="g" u2="r" k="16" />
|
|
||||||
<hkern u1="g" u2="l" k="16" />
|
|
||||||
<hkern u1="g" u2="e" k="16" />
|
|
||||||
<hkern u1="g" u2="a" k="9" />
|
|
||||||
<hkern u1="h" u2="’" k="16" />
|
|
||||||
<hkern u1="h" u2="y" k="-16" />
|
|
||||||
<hkern u1="i" u2="j" k="7" />
|
|
||||||
<hkern u1="i" u2="T" k="231" />
|
|
||||||
<hkern u1="k" u2="ü" k="9" />
|
|
||||||
<hkern u1="k" u2="ö" k="44" />
|
|
||||||
<hkern u1="k" u2="ó" k="44" />
|
|
||||||
<hkern u1="k" u2="é" k="-16" />
|
|
||||||
<hkern u1="k" u2="æ" k="-78" />
|
|
||||||
<hkern u1="k" u2="å" k="-78" />
|
|
||||||
<hkern u1="k" u2="ä" k="-78" />
|
|
||||||
<hkern u1="k" u2="á" k="-78" />
|
|
||||||
<hkern u1="k" u2="u" k="9" />
|
|
||||||
<hkern u1="k" u2="s" k="24" />
|
|
||||||
<hkern u1="k" u2="o" k="44" />
|
|
||||||
<hkern u1="k" u2="g" k="40" />
|
|
||||||
<hkern u1="k" u2="e" k="-16" />
|
|
||||||
<hkern u1="k" u2="a" k="-78" />
|
|
||||||
<hkern u1="k" u2="." k="-31" />
|
|
||||||
<hkern u1="k" u2="-" k="109" />
|
|
||||||
<hkern u1="k" u2="," k="-20" />
|
|
||||||
<hkern u1="l" u2="y" k="151" />
|
|
||||||
<hkern u1="l" u2="v" k="122" />
|
|
||||||
<hkern u1="m" u2="y" k="-15" />
|
|
||||||
<hkern u1="m" u2="w" k="-9" />
|
|
||||||
<hkern u1="m" u2="v" k="-9" />
|
|
||||||
<hkern u1="m" u2="p" k="27" />
|
|
||||||
<hkern u1="n" u2="’" k="15" />
|
|
||||||
<hkern u1="n" u2="y" k="-16" />
|
|
||||||
<hkern u1="n" u2="w" k="-11" />
|
|
||||||
<hkern u1="n" u2="v" k="-11" />
|
|
||||||
<hkern u1="n" u2="p" k="25" />
|
|
||||||
<hkern u1="n" u2="T" k="231" />
|
|
||||||
<hkern u1="o" u2="’" k="13" />
|
|
||||||
<hkern u1="o" u2="y" k="15" />
|
|
||||||
<hkern u1="o" u2="x" k="32" />
|
|
||||||
<hkern u1="o" u2="w" k="2" />
|
|
||||||
<hkern u1="o" u2="v" k="6" />
|
|
||||||
<hkern u1="o" u2="t" k="-6" />
|
|
||||||
<hkern u1="o" u2="T" k="227" />
|
|
||||||
<hkern u1="p" u2="y" k="-6" />
|
|
||||||
<hkern u1="p" u2="t" k="-26" />
|
|
||||||
<hkern u1="q" u2="u" k="-9" />
|
|
||||||
<hkern u1="q" u2="c" k="-22" />
|
|
||||||
<hkern u1="r" u2="’" k="15" />
|
|
||||||
<hkern u1="r" u2="œ" k="12" />
|
|
||||||
<hkern u1="r" u2="ø" k="-18" />
|
|
||||||
<hkern u1="r" u2="ö" k="12" />
|
|
||||||
<hkern u1="r" u2="ô" k="12" />
|
|
||||||
<hkern u1="r" u2="ó" k="12" />
|
|
||||||
<hkern u1="r" u2="ò" k="12" />
|
|
||||||
<hkern u1="r" u2="ê" k="22" />
|
|
||||||
<hkern u1="r" u2="é" k="22" />
|
|
||||||
<hkern u1="r" u2="è" k="22" />
|
|
||||||
<hkern u1="r" u2="ç" k="12" />
|
|
||||||
<hkern u1="r" u2="æ" k="-19" />
|
|
||||||
<hkern u1="r" u2="å" k="-18" />
|
|
||||||
<hkern u1="r" u2="ä" k="-18" />
|
|
||||||
<hkern u1="r" u2="â" k="-18" />
|
|
||||||
<hkern u1="r" u2="á" k="-18" />
|
|
||||||
<hkern u1="r" u2="à" k="-18" />
|
|
||||||
<hkern u1="r" u2="z" k="2" />
|
|
||||||
<hkern u1="r" u2="y" k="19" />
|
|
||||||
<hkern u1="r" u2="x" k="-28" />
|
|
||||||
<hkern u1="r" u2="w" k="5" />
|
|
||||||
<hkern u1="r" u2="v" k="9" />
|
|
||||||
<hkern u1="r" u2="u" k="30" />
|
|
||||||
<hkern u1="r" u2="t" k="-3" />
|
|
||||||
<hkern u1="r" u2="s" k="11" />
|
|
||||||
<hkern u1="r" u2="r" k="22" />
|
|
||||||
<hkern u1="r" u2="q" k="12" />
|
|
||||||
<hkern u1="r" u2="p" k="22" />
|
|
||||||
<hkern u1="r" u2="o" k="12" />
|
|
||||||
<hkern u1="r" u2="n" k="22" />
|
|
||||||
<hkern u1="r" u2="m" k="22" />
|
|
||||||
<hkern u1="r" u2="l" k="22" />
|
|
||||||
<hkern u1="r" u2="k" k="22" />
|
|
||||||
<hkern u1="r" u2="i" k="22" />
|
|
||||||
<hkern u1="r" u2="h" k="22" />
|
|
||||||
<hkern u1="r" u2="g" k="12" />
|
|
||||||
<hkern u1="r" u2="f" k="22" />
|
|
||||||
<hkern u1="r" u2="e" k="22" />
|
|
||||||
<hkern u1="r" u2="d" k="22" />
|
|
||||||
<hkern u1="r" u2="c" k="12" />
|
|
||||||
<hkern u1="r" u2="a" k="-18" />
|
|
||||||
<hkern u1="r" u2=";" k="28" />
|
|
||||||
<hkern u1="r" u2=":" k="21" />
|
|
||||||
<hkern u1="r" u2="." k="8" />
|
|
||||||
<hkern u1="r" u2="-" k="-31" />
|
|
||||||
<hkern u1="r" u2="," k="19" />
|
|
||||||
<hkern u1="s" u2="’" k="19" />
|
|
||||||
<hkern u1="s" u2="t" k="-12" />
|
|
||||||
<hkern u1="t" u2="’" k="-15" />
|
|
||||||
<hkern u1="t" u2="ö" k="-5" />
|
|
||||||
<hkern u1="t" u2="ó" k="-5" />
|
|
||||||
<hkern u1="t" u2="æ" k="129" />
|
|
||||||
<hkern u1="t" u2="å" k="130" />
|
|
||||||
<hkern u1="t" u2="ä" k="130" />
|
|
||||||
<hkern u1="t" u2="á" k="130" />
|
|
||||||
<hkern u1="t" u2="o" k="-5" />
|
|
||||||
<hkern u1="t" u2="a" k="130" />
|
|
||||||
<hkern u1="t" u2="S" k="-23" />
|
|
||||||
<hkern u1="t" u2=";" k="-9" />
|
|
||||||
<hkern u1="t" u2=":" k="-15" />
|
|
||||||
<hkern u1="u" u2="’" k="16" />
|
|
||||||
<hkern u1="v" u2="ø" k="-17" />
|
|
||||||
<hkern u1="v" u2="ö" k="6" />
|
|
||||||
<hkern u1="v" u2="ó" k="6" />
|
|
||||||
<hkern u1="v" u2="ò" k="6" />
|
|
||||||
<hkern u1="v" u2="ê" k="-13" />
|
|
||||||
<hkern u1="v" u2="é" k="-13" />
|
|
||||||
<hkern u1="v" u2="è" k="-13" />
|
|
||||||
<hkern u1="v" u2="æ" k="137" />
|
|
||||||
<hkern u1="v" u2="å" k="117" />
|
|
||||||
<hkern u1="v" u2="ä" k="117" />
|
|
||||||
<hkern u1="v" u2="ã" k="117" />
|
|
||||||
<hkern u1="v" u2="â" k="117" />
|
|
||||||
<hkern u1="v" u2="á" k="117" />
|
|
||||||
<hkern u1="v" u2="à" k="117" />
|
|
||||||
<hkern u1="v" u2="s" k="-6" />
|
|
||||||
<hkern u1="v" u2="o" k="6" />
|
|
||||||
<hkern u1="v" u2="l" k="-13" />
|
|
||||||
<hkern u1="v" u2="g" k="5" />
|
|
||||||
<hkern u1="v" u2="e" k="-13" />
|
|
||||||
<hkern u1="v" u2="a" k="117" />
|
|
||||||
<hkern u1="v" u2=";" k="-8" />
|
|
||||||
<hkern u1="v" u2=":" k="-10" />
|
|
||||||
<hkern u1="v" u2="." k="129" />
|
|
||||||
<hkern u1="v" u2="-" k="6" />
|
|
||||||
<hkern u1="v" u2="," k="139" />
|
|
||||||
<hkern u1="w" u2="ø" k="-19" />
|
|
||||||
<hkern u1="w" u2="ö" k="4" />
|
|
||||||
<hkern u1="w" u2="ó" k="4" />
|
|
||||||
<hkern u1="w" u2="ò" k="4" />
|
|
||||||
<hkern u1="w" u2="ê" k="-10" />
|
|
||||||
<hkern u1="w" u2="é" k="-10" />
|
|
||||||
<hkern u1="w" u2="è" k="-10" />
|
|
||||||
<hkern u1="w" u2="æ" k="112" />
|
|
||||||
<hkern u1="w" u2="å" k="106" />
|
|
||||||
<hkern u1="w" u2="ä" k="106" />
|
|
||||||
<hkern u1="w" u2="ã" k="106" />
|
|
||||||
<hkern u1="w" u2="â" k="106" />
|
|
||||||
<hkern u1="w" u2="á" k="106" />
|
|
||||||
<hkern u1="w" u2="à" k="106" />
|
|
||||||
<hkern u1="w" u2="s" k="-7" />
|
|
||||||
<hkern u1="w" u2="o" k="4" />
|
|
||||||
<hkern u1="w" u2="l" k="-10" />
|
|
||||||
<hkern u1="w" u2="g" k="3" />
|
|
||||||
<hkern u1="w" u2="e" k="-10" />
|
|
||||||
<hkern u1="w" u2="a" k="106" />
|
|
||||||
<hkern u1="w" u2=";" k="-8" />
|
|
||||||
<hkern u1="w" u2=":" k="-11" />
|
|
||||||
<hkern u1="w" u2="." k="108" />
|
|
||||||
<hkern u1="w" u2="-" k="-5" />
|
|
||||||
<hkern u1="w" u2="," k="119" />
|
|
||||||
<hkern u1="x" u2="é" k="-16" />
|
|
||||||
<hkern u1="x" u2="q" k="29" />
|
|
||||||
<hkern u1="x" u2="o" k="29" />
|
|
||||||
<hkern u1="x" u2="e" k="-16" />
|
|
||||||
<hkern u1="x" u2="c" k="25" />
|
|
||||||
<hkern u1="x" u2="a" k="-78" />
|
|
||||||
<hkern u1="y" u2="ø" k="-7" />
|
|
||||||
<hkern u1="y" u2="ö" k="14" />
|
|
||||||
<hkern u1="y" u2="ó" k="14" />
|
|
||||||
<hkern u1="y" u2="ò" k="14" />
|
|
||||||
<hkern u1="y" u2="ê" k="-15" />
|
|
||||||
<hkern u1="y" u2="é" k="-15" />
|
|
||||||
<hkern u1="y" u2="è" k="-15" />
|
|
||||||
<hkern u1="y" u2="æ" k="148" />
|
|
||||||
<hkern u1="y" u2="å" k="138" />
|
|
||||||
<hkern u1="y" u2="ä" k="138" />
|
|
||||||
<hkern u1="y" u2="ã" k="138" />
|
|
||||||
<hkern u1="y" u2="â" k="138" />
|
|
||||||
<hkern u1="y" u2="á" k="138" />
|
|
||||||
<hkern u1="y" u2="à" k="138" />
|
|
||||||
<hkern u1="y" u2="s" k="-2" />
|
|
||||||
<hkern u1="y" u2="o" k="14" />
|
|
||||||
<hkern u1="y" u2="l" k="-15" />
|
|
||||||
<hkern u1="y" u2="g" k="12" />
|
|
||||||
<hkern u1="y" u2="e" k="-15" />
|
|
||||||
<hkern u1="y" u2="c" k="10" />
|
|
||||||
<hkern u1="y" u2="a" k="138" />
|
|
||||||
<hkern u1="y" u2=";" k="-3" />
|
|
||||||
<hkern u1="y" u2=":" k="-2" />
|
|
||||||
<hkern u1="y" u2="." k="175" />
|
|
||||||
<hkern u1="y" u2="-" k="69" />
|
|
||||||
<hkern u1="y" u2="," k="186" />
|
|
||||||
<hkern u1="»" u2="Y" k="169" />
|
|
||||||
<hkern u1="»" u2="W" k="84" />
|
|
||||||
<hkern u1="»" u2="V" k="103" />
|
|
||||||
<hkern u1="»" u2="T" k="232" />
|
|
||||||
<hkern u1="»" u2="A" k="102" />
|
|
||||||
<hkern u1="Ç" u2="A" k="2" />
|
|
||||||
<hkern u1="Ø" u2="A" k="20" />
|
|
||||||
<hkern u1="à" u2="y" k="144" />
|
|
||||||
<hkern u1="à" u2="w" k="104" />
|
|
||||||
<hkern u1="à" u2="v" k="121" />
|
|
||||||
<hkern u1="á" u2="y" k="144" />
|
|
||||||
<hkern u1="á" u2="w" k="104" />
|
|
||||||
<hkern u1="á" u2="v" k="121" />
|
|
||||||
<hkern u1="ä" u2="y" k="144" />
|
|
||||||
<hkern u1="ä" u2="w" k="104" />
|
|
||||||
<hkern u1="ä" u2="v" k="121" />
|
|
||||||
<hkern u1="å" u2="y" k="144" />
|
|
||||||
<hkern u1="å" u2="w" k="104" />
|
|
||||||
<hkern u1="å" u2="v" k="121" />
|
|
||||||
<hkern u1="æ" u2="y" k="-36" />
|
|
||||||
<hkern u1="æ" u2="w" k="-31" />
|
|
||||||
<hkern u1="æ" u2="v" k="-31" />
|
|
||||||
<hkern u1="é" u2="y" k="-39" />
|
|
||||||
<hkern u1="é" u2="w" k="-33" />
|
|
||||||
<hkern u1="é" u2="v" k="-33" />
|
|
||||||
<hkern u1="ê" u2="y" k="-39" />
|
|
||||||
<hkern u1="ê" u2="w" k="-33" />
|
|
||||||
<hkern u1="ê" u2="v" k="-33" />
|
|
||||||
<hkern u1="ò" u2="y" k="15" />
|
|
||||||
<hkern u1="ò" u2="w" k="2" />
|
|
||||||
<hkern u1="ò" u2="v" k="6" />
|
|
||||||
<hkern u1="ó" u2="y" k="15" />
|
|
||||||
<hkern u1="ó" u2="w" k="2" />
|
|
||||||
<hkern u1="ó" u2="v" k="6" />
|
|
||||||
<hkern u1="ô" u2="t" k="-6" />
|
|
||||||
<hkern u1="ö" u2="y" k="15" />
|
|
||||||
<hkern u1="ö" u2="x" k="32" />
|
|
||||||
<hkern u1="ö" u2="w" k="2" />
|
|
||||||
<hkern u1="ö" u2="v" k="6" />
|
|
||||||
<hkern u1="ö" u2="t" k="-6" />
|
|
||||||
<hkern u1="‘" u2="Y" k="-31" />
|
|
||||||
<hkern u1="‘" u2="W" k="-25" />
|
|
||||||
<hkern u1="‘" u2="V" k="-25" />
|
|
||||||
<hkern u1="‘" u2="T" k="-16" />
|
|
||||||
<hkern u1="‘" u2="A" k="184" />
|
|
||||||
<hkern u1="’" u2="y" k="-31" />
|
|
||||||
<hkern u1="’" u2="w" k="-26" />
|
|
||||||
<hkern u1="’" u2="v" k="-26" />
|
|
||||||
<hkern u1="’" u2="t" k="-16" />
|
|
||||||
<hkern u1="’" u2="s" k="10" />
|
|
||||||
<hkern u1="’" u2="r" k="19" />
|
|
||||||
<hkern u1="’" u2="o" k="20" />
|
|
||||||
<hkern u1="’" u2="d" k="19" />
|
|
||||||
<hkern u1="’" u2="A" k="180" />
|
|
||||||
<hkern u1="’" u2="." k="84" />
|
|
||||||
<hkern u1="’" u2="," k="94" />
|
|
||||||
<hkern u1="“" u2="Y" k="-31" />
|
|
||||||
<hkern u1="“" u2="W" k="-25" />
|
|
||||||
<hkern u1="“" u2="V" k="-25" />
|
|
||||||
<hkern u1="“" u2="T" k="-16" />
|
|
||||||
<hkern u1="“" u2="A" k="186" />
|
|
||||||
<hkern u1="”" u2="Y" k="-31" />
|
|
||||||
<hkern u1="”" u2="W" k="-25" />
|
|
||||||
<hkern u1="”" u2="V" k="-25" />
|
|
||||||
<hkern u1="”" u2="T" k="-16" />
|
|
||||||
<hkern u1="”" u2="A" k="181" />
|
|
||||||
<hkern u1="„" u2="Y" k="242" />
|
|
||||||
<hkern u1="„" u2="W" k="134" />
|
|
||||||
<hkern u1="„" u2="V" k="162" />
|
|
||||||
<hkern u1="„" u2="T" k="226" />
|
|
||||||
<hkern u1="„" u2="A" k="7" />
|
|
||||||
<hkern u1="›" u2="Y" k="169" />
|
|
||||||
<hkern u1="›" u2="W" k="84" />
|
|
||||||
<hkern u1="›" u2="V" k="103" />
|
|
||||||
<hkern u1="›" u2="T" k="232" />
|
|
||||||
<hkern u1="›" u2="A" k="102" />
|
|
||||||
</font>
|
|
||||||
</defs></svg>
|
|
||||||
|
Before Width: | Height: | Size: 80 KiB |
BIN
app/fonts/eurostile.eot
Executable file
237
app/fonts/eurostile.svg
Executable file
@@ -0,0 +1,237 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
||||||
|
<metadata></metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="eurostileregular" horiz-adv-x="1256" >
|
||||||
|
<font-face units-per-em="2048" ascent="1638" descent="-410" />
|
||||||
|
<missing-glyph horiz-adv-x="512" />
|
||||||
|
<glyph horiz-adv-x="0" />
|
||||||
|
<glyph horiz-adv-x="682" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="512" />
|
||||||
|
<glyph unicode="	" horiz-adv-x="512" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="512" />
|
||||||
|
<glyph unicode="!" horiz-adv-x="491" d="M160 1365h168l-20 -988h-131zM168 0v184h154v-184h-154z" />
|
||||||
|
<glyph unicode=""" horiz-adv-x="639" d="M93 1365h138l-20 -546h-99zM408 1365h138l-19 -546h-99z" />
|
||||||
|
<glyph unicode="#" d="M94 433l15 92h236l49 320h-236l16 92h236l67 428h108l-68 -428h303l68 428h109l-68 -428h234l-16 -92h-234l-48 -320h236l-16 -92h-236l-68 -433h-109l69 433h-304l-68 -433h-108l69 433h-236zM453 525h303l49 320h-303z" />
|
||||||
|
<glyph unicode="$" horiz-adv-x="1257" d="M55 425h151v-25q0 -183 52.5 -228.5t265.5 -45.5l48 -2v505q-309 0 -406 71t-97 298q0 219 101.5 293t401.5 74v127h116v-127l57 -1q251 0 338 -69.5t87 -268.5l-1 -43h-148l-1 34q0 140 -48.5 178t-226.5 38h-57v-474q304 0 408.5 -76t104.5 -298q0 -221 -99.5 -302.5 t-369.5 -81.5l-44 -1v-154h-116v154h-99q-76 0 -126 4q-292 23 -292 421zM216 1016q0 -161 59.5 -208.5t260.5 -47.5l36 -1v476h-47q-193 0 -251 -41.5t-58 -177.5zM688 124q37 -6 55 -8q311 -25 311 269q0 150 -62.5 195.5t-266.5 45.5l-37 1v-503z" />
|
||||||
|
<glyph unicode="%" horiz-adv-x="1609" d="M34 1032q0 217 53.5 277.5t245.5 60.5q205 0 251 -53.5t46 -288.5t-46 -293t-234 -58q-211 0 -263.5 59t-52.5 296zM119 1041q0 -218 33.5 -255t233.5 -37q159 0 159 159v118v111q0 109 -34.5 135t-179.5 26q-148 0 -180 -39t-32 -218zM295 0l921 1365h99l-927 -1365h-93 zM975 350q0 217 53.5 277.5t245.5 60.5q205 0 251 -53.5t46 -288.5q0 -236 -46 -293.5t-234 -57.5q-211 0 -263.5 59t-52.5 296zM1060 359q0 -218 33.5 -255t233.5 -37q159 0 159 159v118v111q0 109 -35 135t-179 26q-148 0 -180 -39t-32 -218z" />
|
||||||
|
<glyph unicode="&" horiz-adv-x="1434" d="M117 421q0 181 48.5 253t189.5 101q13 3 41 9q-124 104 -124 239q0 191 85.5 260.5t320.5 69.5q230 0 314 -68t84 -254l-2 -85h-151v51q0 152 -41 189t-210 37q-153 0 -203 -33t-50 -134q0 -114 87 -182l34 -28l514 -428v28v56v70v31h152l1 -36l1 -69q0 -109 -16 -194 l239 -197l-84 -107l-202 167q-85 -181 -458 -181q-360 0 -465 80t-105 355zM264 417q0 -208 60.5 -254.5t333.5 -46.5q327 0 367 146l-533 439q-155 -34 -191.5 -79.5t-36.5 -204.5z" />
|
||||||
|
<glyph unicode="'" horiz-adv-x="323" d="M93 1365h138l-20 -546h-99z" />
|
||||||
|
<glyph unicode="(" horiz-adv-x="568" d="M103 478q0 645 45.5 770t278.5 125l38 -1v-130q-146 0 -174.5 -73t-28.5 -447l1 -244v-245q0 -373 28.5 -446t173.5 -73v-130l-38 -1q-233 0 -278.5 125t-45.5 770z" />
|
||||||
|
<glyph unicode=")" horiz-adv-x="568" d="M102 -286q145 0 173.5 73t28.5 446v245l1 244q0 374 -28.5 447t-174.5 73v130l38 1q233 0 278.5 -125t45.5 -770t-45.5 -770t-278.5 -125l-38 1v130z" />
|
||||||
|
<glyph unicode="*" horiz-adv-x="1257" d="M263 1074l35 100l280 -100v291h102v-291l278 100l36 -100l-281 -105l167 -238l-80 -60l-170 247l-183 -247l-80 60l175 238z" />
|
||||||
|
<glyph unicode="+" d="M155 617v130h403v409h140v-409h403v-130h-403v-407h-140v407h-403z" />
|
||||||
|
<glyph unicode="," horiz-adv-x="406" d="M109 -123q86 5 86 88l-1 35h-65v184h154v-198q0 -187 -136 -187q-13 0 -38 2v76z" />
|
||||||
|
<glyph unicode="-" horiz-adv-x="425" d="M0 432l3 130h422v-130h-425z" />
|
||||||
|
<glyph unicode="." horiz-adv-x="400" d="M123 0v184h154v-184h-154z" />
|
||||||
|
<glyph unicode="/" horiz-adv-x="1323" d="M-136 -410l1201 1775h114l-1200 -1775h-115z" />
|
||||||
|
<glyph unicode="0" d="M93 732q0 449 82 548t453 99q379 0 457 -101.5t78 -594.5q0 -470 -74 -570q-95 -127 -461 -127t-461 127q-74 100 -74 619zM240 683q0 -419 50.5 -493t337.5 -74t337.5 74t50.5 493q0 418 -50.5 492t-337.5 74t-337.5 -74t-50.5 -492z" />
|
||||||
|
<glyph unicode="1" horiz-adv-x="1257" d="M210 955l378 410h222v-1365h-154v1250l-349 -387z" />
|
||||||
|
<glyph unicode="2" d="M111 0v257q0 216 84 283t399 103q252 28 304.5 76t52.5 249q0 176 -58.5 228.5t-255.5 52.5q-246 0 -310.5 -42.5t-64.5 -204.5l2 -102h-151l1 71q0 245 103.5 326.5t414.5 81.5q276 0 371 -88t95 -343q0 -245 -88.5 -327.5t-384.5 -111.5q-260 -26 -310 -72t-50 -261 v-46h829v-130h-983z" />
|
||||||
|
<glyph unicode="3" d="M105 363v81h150v-79q0 -174 59 -211.5t335 -37.5q214 0 271 47.5t57 227.5q0 151 -54 196.5t-235 45.5h-130h-58v131l52 -1q276 0 337.5 35t61.5 191q0 180 -53.5 220t-295.5 40q-223 0 -275.5 -39t-52.5 -205v-59h-146l1 54q0 234 91 306.5t384 72.5q301 0 397.5 -67.5 t96.5 -278.5q0 -179 -46 -245t-184 -83v-7q155 -21 205.5 -84t50.5 -234q0 -238 -98.5 -316t-397.5 -78q-323 0 -423 72t-100 305z" />
|
||||||
|
<glyph unicode="4" d="M54 315v181l680 869h238v-920h204v-130h-204v-315h-154v315h-764zM181 445h637v821h-3z" />
|
||||||
|
<glyph unicode="5" d="M133 338v52h145q0 -185 57.5 -229.5t293.5 -44.5q247 0 302 57t55 312q0 206 -61.5 262.5t-285.5 56.5q-312 0 -342 -131h-139v692h919v-130h-766l-7 -414h3q80 113 359 113q270 0 368.5 -93t98.5 -350q0 -314 -93.5 -409.5t-398.5 -95.5q-303 0 -405.5 71t-102.5 281z " />
|
||||||
|
<glyph unicode="6" horiz-adv-x="1255" d="M99 714l4 220q0 270 94 357.5t384 87.5q293 0 397.5 -65t104.5 -247l-1 -47h-150q4 37 4 49q0 109 -55 144.5t-225 35.5q-258 0 -326.5 -44t-68.5 -209v-278h3q87 122 393 122q275 0 368 -84t93 -332q0 -269 -97 -353.5t-406 -84.5q-315 0 -414 92.5t-99 387.5zM246 472 q0 -240 60 -298t307 -58q240 0 299 47t59 241q0 208 -58 257t-305 49q-225 0 -293.5 -45t-68.5 -193z" />
|
||||||
|
<glyph unicode="7" d="M98 1235v130h995v-196l-661 -1169h-183l716 1235h-867z" />
|
||||||
|
<glyph unicode="8" horiz-adv-x="1257" d="M104 373q0 179 45 243t192 92v3q-135 29 -177 89.5t-42 226.5q0 217 92 284.5t386 67.5q324 0 416 -65.5t92 -297.5q0 -156 -43.5 -217t-174.5 -90v-3q144 -29 188.5 -89.5t44.5 -225.5q0 -250 -94 -327.5t-397 -77.5q-333 0 -430.5 71.5t-97.5 315.5zM251 383 q0 -163 42.5 -213.5t180.5 -50.5l193 -3l128 8q111 14 146 68t35 212q0 153 -65 194t-307 41q-237 0 -295 -42t-58 -214zM269 1007q0 -165 62 -201.5t341 -36.5q186 0 237.5 46t51.5 211q0 153 -56.5 188t-302.5 35q-233 0 -283 -36.5t-50 -205.5z" />
|
||||||
|
<glyph unicode="9" horiz-adv-x="1257" d="M101 291q0 16 3 57h145l-1 -40q0 -126 60 -159t286 -33q258 0 315 50.5t57 279.5v205h-3q-80 -122 -410 -122q-260 0 -350 83t-90 322q0 274 95 359.5t399 85.5q312 0 413 -89t101 -365l4 -367l-3 -141q0 -262 -99 -346.5t-407 -84.5q-303 0 -409 62.5t-106 242.5z M260 955q0 -193 54 -244.5t258 -51.5q265 0 329 41.5t64 212.5q0 229 -59 282.5t-313 53.5q-223 0 -278 -48.5t-55 -245.5z" />
|
||||||
|
<glyph unicode=":" horiz-adv-x="400" d="M123 0v184h154v-184h-154zM123 772v184h154v-184h-154z" />
|
||||||
|
<glyph unicode=";" horiz-adv-x="365" d="M68 -123q86 5 86 88l-1 35h-65v184h154v-198q0 -187 -136 -187q-13 0 -38 2v76zM78 772v184h154v-184h-154z" />
|
||||||
|
<glyph unicode="<" horiz-adv-x="887" d="M0 628v122l887 413v-140l-737 -334l737 -335v-139z" />
|
||||||
|
<glyph unicode="=" d="M155 447v130h946v-130h-946zM155 788v130h946v-130h-946z" />
|
||||||
|
<glyph unicode=">" horiz-adv-x="887" d="M0 215v140l737 334l-737 334v139l887 -413v-122z" />
|
||||||
|
<glyph unicode="?" horiz-adv-x="1064" d="M109 938l1 45q0 244 86.5 320t364.5 76q234 0 317 -77t83 -295q0 -312 -193 -381l-84 -30q-137 -49 -137 -168l-1 -34h-151l1 30q0 137 38.5 191t170.5 104l83 32q126 48 126 242q0 169 -46.5 212.5t-229.5 43.5q-188 0 -236.5 -46t-48.5 -226l1 -39h-145zM387 0v184h154 v-184h-154z" />
|
||||||
|
<glyph unicode="@" horiz-adv-x="1290" d="M82 623q0 381 103 483t487 102q339 0 437.5 -85t98.5 -379q0 -268 -39 -368.5t-143 -100.5q-145 0 -168 110h-4q-48 -116 -243 -116q-150 0 -206 76t-56 280q0 198 56.5 271t208.5 73q177 0 220 -94h3v94h102v-471l2 -43q0 -108 83 -108q99 0 99 351q0 296 -67 358.5 t-384 62.5q-354 0 -429.5 -74t-75.5 -420q0 -368 83.5 -450t460.5 -82q256 0 300 82l68 -49q-60 -105 -385 -105q-395 0 -503.5 106.5t-108.5 495.5zM451 622q0 -172 35 -226.5t147 -54.5q135 0 169 56.5t34 282.5q0 217 -193 217q-122 0 -157 -50t-35 -225z" />
|
||||||
|
<glyph unicode="A" horiz-adv-x="1246" d="M10 0l500 1365h216l510 -1365h-161l-106 289h-691l-105 -289h-163zM322 405h602l-303 834z" />
|
||||||
|
<glyph unicode="B" horiz-adv-x="1264" d="M130 0v1365h604q251 0 328.5 -69t77.5 -292q0 -227 -175 -287v-3q217 -52 217 -321q0 -217 -85.5 -305t-297.5 -88h-669zM284 130h327l139 1q176 0 230.5 45.5t54.5 192.5q0 183 -55 224.5t-299 41.5h-397v-505zM284 765h405q193 0 248.5 46t55.5 205q0 138 -48.5 178.5 t-213.5 40.5h-447v-470z" />
|
||||||
|
<glyph unicode="C" horiz-adv-x="1222" d="M76 685q0 355 21 446.5t120 163.5q116 84 501 84q261 0 351.5 -81t90.5 -313l1 -37h-153l-1 42q0 165 -53.5 212t-241.5 47q-330 0 -403 -55t-73 -305q0 -575 49 -674t335 -99q272 0 339.5 43t67.5 216l-2 81h153v-52q0 -279 -95 -348.5t-478 -69.5q-343 0 -436 122.5 t-93 576.5z" />
|
||||||
|
<glyph unicode="D" horiz-adv-x="1338" d="M130 0v1365h632q293 0 397 -129t104 -494q0 -444 -92.5 -593t-369.5 -149h-671zM284 130h445q245 0 316 98t71 437q0 372 -61.5 471t-294.5 99h-476v-1105z" />
|
||||||
|
<glyph unicode="E" horiz-adv-x="1020" d="M75 0v1365h877v-130h-723v-465h693v-130h-693v-510h723v-130h-877z" />
|
||||||
|
<glyph unicode="F" horiz-adv-x="1001" d="M130 0v1365h837v-130h-683v-477h665v-130h-665v-628h-154z" />
|
||||||
|
<glyph unicode="G" horiz-adv-x="1268" d="M75 755l1 121q0 303 114.5 403t461.5 100q348 0 449 -65.5t101 -292.5v-52h-151v34q0 167 -68.5 206.5t-357.5 39.5q-267 0 -334 -63.5t-67 -317.5l-2 -181l1 -195q0 -258 74.5 -317t397.5 -59q247 0 305.5 56t58.5 293q0 19 -8 84h-434v130h585q4 -53 4 -149 q0 -369 -90.5 -456.5t-472.5 -87.5q-361 0 -464 103.5t-103 464.5z" />
|
||||||
|
<glyph unicode="H" horiz-adv-x="1365" d="M130 0v1365h154v-602h798v602h154v-1365h-154v633h-798v-633h-154z" />
|
||||||
|
<glyph unicode="I" horiz-adv-x="417" d="M130 0v1365h154v-1365h-154z" />
|
||||||
|
<glyph unicode="J" horiz-adv-x="1028" d="M53 335q0 93 3 162h151v-25v-105q0 -167 45 -209t222 -42q175 0 222.5 55t47.5 256v938h154v-963q0 -241 -88 -328.5t-330 -87.5q-245 0 -336 74.5t-91 274.5z" />
|
||||||
|
<glyph unicode="K" horiz-adv-x="1235" d="M130 0v1365h154v-596h135l560 596h199l-624 -658l700 -707h-211l-624 639h-135v-639h-154z" />
|
||||||
|
<glyph unicode="L" horiz-adv-x="993" d="M130 0v1365h154v-1222h702v-143h-856z" />
|
||||||
|
<glyph unicode="M" horiz-adv-x="1757" d="M130 0v1365h267l364 -883l58 -143l29 -71l28 -71h4l28 71q21 51 28 71l59 142l362 884h271v-1365h-154v1092v82l1 41l1 41h-4l-12 -32q-9 -24 -12 -31l-26 -64l-465 -1129h-154l-466 1116l-27 63l-12 32q-5 11 -12 31h-4l1 -37l1 -38v-75v-1092h-154z" />
|
||||||
|
<glyph unicode="N" horiz-adv-x="1426" d="M130 0v1365h252l499 -814l130 -214l65 -106l64 -107h4l-1 51l-1 52v102v1036h154v-1365h-253l-572 929l-93 153l-46 76l-46 76h-4l1 -51l1 -52v-102v-1029h-154z" />
|
||||||
|
<glyph unicode="O" d="M47 683v96l2 129q0 272 122.5 371.5t457.5 99.5q387 0 484 -113t97 -565q0 -487 -93 -601t-488 -114q-393 0 -487.5 113t-94.5 584zM194 683q0 -423 55 -495t379 -72q325 0 380 72t55 495v89l-1 129q0 226 -76 287t-358 61q-324 0 -379 -72t-55 -494z" />
|
||||||
|
<glyph unicode="P" horiz-adv-x="1208" d="M130 0v1365h573h52q231 0 315 -89t84 -333q0 -234 -87.5 -319t-328.5 -85l-60 -1h-394v-538h-154zM284 668h365q229 0 293.5 47t64.5 216q0 198 -43.5 250.5t-206.5 52.5l-59 1h-414v-567z" />
|
||||||
|
<glyph unicode="Q" horiz-adv-x="1342" d="M48 738q0 418 101 529.5t481 111.5q387 0 484 -113t97 -565q0 -339 -25 -444l136 -90l-63 -105l-122 79q-110 -155 -507 -155q-405 0 -493.5 114.5t-88.5 637.5zM195 683q0 -423 55 -495t377 -72q320 0 388 105l-409 268l71 105l373 -247q14 73 14 258q0 494 -50.5 569 t-384.5 75q-324 0 -379 -72t-55 -494z" />
|
||||||
|
<glyph unicode="R" horiz-adv-x="1276" d="M130 0v1365h650q220 0 310 -87t90 -302q0 -189 -49 -263.5t-187 -96.5v-3q217 -16 217 -264v-349h-154v314q0 239 -207 239h-51h-465v-553h-154zM284 683h445q176 0 240 53.5t64 201.5q0 185 -47.5 241t-203.5 56h-498v-552z" />
|
||||||
|
<glyph unicode="S" horiz-adv-x="1146" d="M61 422h153v-34q0 -183 56 -227.5t287 -44.5q265 0 326 44.5t61 237.5q0 125 -41.5 166.5t-173.5 49.5l-160 8l-152 8q-347 24 -347 360q0 233 101 311t403 78q306 0 399 -72.5t93 -311.5h-153q0 165 -55 209.5t-259 44.5q-242 0 -312 -42.5t-70 -189.5q0 -165 55 -201 t327 -49q319 -14 405.5 -81t86.5 -300q0 -252 -99.5 -326t-439.5 -74q-295 0 -392.5 74.5t-97.5 300.5z" />
|
||||||
|
<glyph unicode="T" horiz-adv-x="1054" d="M7 1222v143h1040v-143h-441v-1222h-154v1222h-445z" />
|
||||||
|
<glyph unicode="U" horiz-adv-x="1341" d="M131 363v46v956h154v-956q0 -194 63 -243.5t310 -49.5q268 0 334 48.5t66 244.5v956h154v-956q0 -260 -104.5 -341.5t-438.5 -81.5q-313 0 -425.5 78.5t-112.5 298.5z" />
|
||||||
|
<glyph unicode="V" horiz-adv-x="1171" d="M-10 1365h164l364 -1031l36 -105q20 -61 33 -105h4q30 101 67 208l358 1033h165l-483 -1365h-220z" />
|
||||||
|
<glyph unicode="W" horiz-adv-x="2045" d="M3 1365h158l294 -981l40 -133q5 -16 20 -66l19 -67h3l19 67l19 66l39 132l290 982h228l288 -983l39 -131l18 -67l19 -66h3l20 67l20 67l41 134l300 979h161l-430 -1365h-234l-287 983l-36 123q-3 10 -17 61l-18 62h-3l-17 -62l-18 -62l-37 -124l-292 -981h-230z" />
|
||||||
|
<glyph unicode="X" horiz-adv-x="1190" d="M-10 0l488 706l-449 659h186l303 -455l42 -64q8 -12 21 -32l20 -32h4l20 31q16 27 20 32l41 63l299 457h182l-436 -659l469 -706h-182l-316 478l-50 75q-4 6 -23 37l-24 38h-4l-24 -39q-20 -29 -25 -38l-52 -76l-321 -475h-189z" />
|
||||||
|
<glyph unicode="Y" horiz-adv-x="1152" d="M-10 1365h179l293 -461l56 -89q11 -16 28 -44l27 -45h4l27 45l27 44l57 89l292 461h183l-516 -795v-570h-154v570z" />
|
||||||
|
<glyph unicode="Z" horiz-adv-x="1161" d="M48 0v133l857 1099v3h-832v130h1022v-130l-859 -1102v-3h877v-130h-1065z" />
|
||||||
|
<glyph unicode="[" horiz-adv-x="567" d="M113 -410v1775h349v-116h-195v-1543h195v-116h-349z" />
|
||||||
|
<glyph unicode="\" horiz-adv-x="1323" d="M-136 1365h115l1200 -1775h-114z" />
|
||||||
|
<glyph unicode="]" horiz-adv-x="567" d="M105 -294h195v1543h-195v116h349v-1775h-349v116z" />
|
||||||
|
<glyph unicode="^" horiz-adv-x="914" d="M0 752l365 617h184l365 -617h-153l-306 506l-303 -506h-152z" />
|
||||||
|
<glyph unicode="_" horiz-adv-x="1024" d="M0 -136h1024v-130h-1024v130z" />
|
||||||
|
<glyph unicode="`" horiz-adv-x="1024" d="M286 1253l72 98l271 -205l-49 -74z" />
|
||||||
|
<glyph unicode="a" horiz-adv-x="1044" d="M89 277q0 173 81 239t293 66q252 0 302 -99l3 1v116q0 164 -45 212.5t-197 48.5q-258 0 -258 -145q0 -7 1 -28h-139q0 167 75.5 224.5t295.5 57.5q239 0 323 -70.5t84 -268.5v-631h-140l11 103l-3 1q-80 -118 -325 -118q-362 0 -362 291zM236 293q0 -116 48 -153.5 t195 -37.5q296 0 296 180q0 113 -57.5 152t-223.5 39q-161 0 -209.5 -34t-48.5 -146z" />
|
||||||
|
<glyph unicode="b" horiz-adv-x="1047" d="M123 0v1365h140v-531l3 -3q48 139 314 139q210 0 290 -109t80 -395q0 -271 -84.5 -375.5t-305.5 -104.5q-225 0 -300 133l-4 -1l7 -118h-140zM267 503q0 -259 50.5 -330t232.5 -71q154 0 203.5 72.5t49.5 297.5q0 237 -49 309.5t-210 72.5q-165 0 -221 -70.5t-56 -280.5z " />
|
||||||
|
<glyph unicode="c" horiz-adv-x="993" d="M95 483q0 284 84.5 385.5t321.5 101.5q233 0 318 -68.5t85 -257.5h-140v25q0 111 -55 148t-219 37q-158 0 -203 -70t-45 -314q0 -238 51.5 -303t240.5 -65q160 0 203 42.5t43 200.5h140l1 -52q0 -307 -402 -307q-258 0 -341 97t-83 400z" />
|
||||||
|
<glyph unicode="d" horiz-adv-x="1045" d="M97 492q0 269 81 373.5t290 104.5q261 0 311 -135l3 2v528h140v-1365h-140l7 124l-4 1q-66 -139 -307 -139q-220 0 -300.5 107t-80.5 399zM244 493q0 -240 50.5 -315.5t209.5 -75.5q173 0 225 75.5t52 328.5q0 205 -57.5 276.5t-222.5 71.5q-155 0 -206 -71.5t-51 -289.5 z" />
|
||||||
|
<glyph unicode="e" horiz-adv-x="1029" d="M95 488q0 286 83 384t325 98q264 0 346 -85t82 -358v-75h-688q0 -226 48.5 -288t226.5 -62q169 0 219.5 29.5t50.5 127.5v30h143l1 -35q0 -149 -90.5 -208.5t-317.5 -59.5q-264 0 -346.5 96.5t-82.5 405.5zM245 561h543l-1 45q0 155 -51 201.5t-220 46.5 q-170 0 -220.5 -54.5t-50.5 -238.5z" />
|
||||||
|
<glyph unicode="f" horiz-adv-x="543" d="M14 840v116h146v142q0 281 289 281q43 0 101 -7v-116q-68 7 -99 7q-151 0 -151 -152v-155h250v-116h-250v-840h-140v840h-146z" />
|
||||||
|
<glyph unicode="g" horiz-adv-x="1045" d="M96 472q0 287 81.5 392.5t302.5 105.5q235 0 307 -144l3 1l-7 129h140v-1018q0 -208 -90 -286t-330 -78q-214 0 -292 66t-78 247h135q0 -123 45.5 -160t199.5 -37q160 0 215 48t55 188v192l-3 1q-54 -133 -312 -133q-212 0 -292 104.5t-80 381.5zM243 480 q0 -237 49 -307.5t214 -70.5q167 0 220 77.5t53 322.5q0 216 -53 284t-220 68q-165 0 -214 -69.5t-49 -304.5z" />
|
||||||
|
<glyph unicode="h" horiz-adv-x="1053" d="M123 0v1365h140v-527l3 -2q53 134 296 134q360 0 360 -320v-39v-611h-140v611v27q0 216 -221 216q-178 0 -238 -63.5t-60 -252.5v-538h-140z" />
|
||||||
|
<glyph unicode="i" horiz-adv-x="385" d="M123 0v956h140v-956h-140zM123 1208v157h140v-157h-140z" />
|
||||||
|
<glyph unicode="j" horiz-adv-x="381" d="M-10 -260q12 2 16 2l18 1l58 19q32 27 32 150v1044h140v-1044v-41q0 -237 -197 -237q-29 0 -67 7v99zM114 1208v157h140v-157h-140z" />
|
||||||
|
<glyph unicode="k" horiz-adv-x="881" d="M123 0v1365h140v-793h64l338 384h176l-409 -439l483 -517h-189l-406 463h-57v-463h-140z" />
|
||||||
|
<glyph unicode="l" horiz-adv-x="386" d="M123 0v1365h140v-1365h-140z" />
|
||||||
|
<glyph unicode="m" horiz-adv-x="1691" d="M123 0v956h140l-3 -144l3 -3q81 161 312 161q243 0 295 -161h4q90 161 329 161q338 0 338 -345v-625h-140v638q0 126 -45 171t-170 45q-166 0 -225 -62.5t-59 -238.5v-553h-140v625l-2 44q0 185 -211 185q-286 0 -286 -311v-543h-140z" />
|
||||||
|
<glyph unicode="n" horiz-adv-x="1056" d="M123 0v956h135l-4 -130l4 -3q64 147 318 147q205 0 277.5 -72t72.5 -276v-622h-140v610v36q0 123 -47 165.5t-181 42.5q-295 0 -295 -279v-575h-140z" />
|
||||||
|
<glyph unicode="o" horiz-adv-x="1036" d="M96 478q0 308 79 400t343 92q265 0 344 -92t79 -400t-79 -400t-344 -92q-264 0 -343 92t-79 400zM243 478q0 -255 44.5 -315.5t230.5 -60.5q187 0 231.5 60.5t44.5 315.5t-44.5 315.5t-231.5 60.5q-186 0 -230.5 -60.5t-44.5 -315.5z" />
|
||||||
|
<glyph unicode="p" horiz-adv-x="1045" d="M123 -410v1366h140l-7 -121l4 -3q73 138 314 138q213 0 293 -108t80 -398q0 -269 -81 -373.5t-288 -104.5q-236 0 -312 127h-3v-523h-140zM265 470q0 -221 55 -294.5t221 -73.5q158 0 208.5 71t50.5 293q0 244 -49 316t-216 72q-168 0 -219 -72.5t-51 -311.5z" />
|
||||||
|
<glyph unicode="q" horiz-adv-x="1044" d="M96 479q0 277 82 384t295 107q234 0 313 -135l3 3l-7 118h140v-1366h-140v526l-3 3q-63 -133 -314 -133q-207 0 -288 108t-81 385zM243 465q0 -224 50 -293.5t210 -69.5q163 0 219 71.5t56 281.5q0 254 -51.5 326.5t-231.5 72.5q-155 0 -203.5 -75t-48.5 -314z" />
|
||||||
|
<glyph unicode="r" horiz-adv-x="816" d="M137 0v956h140l-14 -110l3 -3q83 135 274 135q264 0 264 -272l-1 -66h-138l3 24q3 38 3 51q0 147 -160 147q-234 0 -234 -289v-573h-140z" />
|
||||||
|
<glyph unicode="s" horiz-adv-x="970" d="M79 252l1 52h145l1 -45q0 -94 48 -125.5t189 -31.5q173 0 227.5 33t54.5 138q0 151 -137 151q-319 0 -419.5 54t-100.5 224q0 161 79.5 214.5t316.5 53.5q380 0 380 -229v-35h-140q0 100 -40.5 124t-208.5 24q-156 0 -198 -25.5t-42 -122.5q0 -147 141 -154l113 -6 l143 -7q260 -13 260 -272q0 -161 -86 -221t-315 -60q-235 0 -323.5 57t-88.5 209z" />
|
||||||
|
<glyph unicode="t" horiz-adv-x="667" d="M-10 840v116h132v230h140v-230h368v-116h-368v-585q0 -153 136 -153q135 0 135 137l1 47l2 53h130l1 -71q0 -282 -268 -282q-277 0 -277 235v34v585h-132z" />
|
||||||
|
<glyph unicode="u" horiz-adv-x="1039" d="M123 320v636h140v-636q0 -130 43 -174t169 -44q165 0 226.5 65.5t61.5 240.5v548h140v-956h-140l10 125l-3 3q-73 -142 -312 -142q-335 0 -335 334z" />
|
||||||
|
<glyph unicode="v" horiz-adv-x="824" d="M-7 956h144l169 -520l53 -163l25 -82l26 -82h4l24 81l24 82l51 162l162 522h156l-320 -956h-201z" />
|
||||||
|
<glyph unicode="w" horiz-adv-x="1373" d="M7 956h147l135 -529l42 -166l20 -83l20 -83h4l19 83l20 83l40 165l131 530h204l130 -531l40 -165l19 -82l19 -83h3l21 83l20 83l42 166l134 529h150l-268 -956h-208l-128 531l-39 162l-18 81l-19 81h-3l-19 -81l-19 -81l-39 -162l-129 -531h-212z" />
|
||||||
|
<glyph unicode="x" horiz-adv-x="827" d="M-7 0l347 500l-311 456h168l217 -349l216 349h167l-310 -450l347 -506h-167l-253 386l-254 -386h-167z" />
|
||||||
|
<glyph unicode="y" horiz-adv-x="796" d="M-7 956h149l147 -426l74 -212l36 -107l37 -106h4l26 106l25 107l54 212l108 426h149l-271 -1011q-57 -214 -126.5 -294t-198.5 -80q-26 0 -67 7v116q29 -6 49 -7h7q108 0 161 183l27 94q1 5 9 36h-53z" />
|
||||||
|
<glyph unicode="z" horiz-adv-x="826" d="M44 0v133l572 707h-524v116h689v-136l-570 -704h570v-116h-737z" />
|
||||||
|
<glyph unicode="{" horiz-adv-x="783" d="M171 422v113q117 34 117 188v337q0 305 237 305h88v-111q-185 0 -185 -197v-341q0 -177 -128 -237q128 -61 128 -238v-341q0 -197 171 -197h14v-113h-88q-237 0 -237 307v338q0 152 -117 187z" />
|
||||||
|
<glyph unicode="|" horiz-adv-x="140" d="M0 -341v1706h140v-1706h-140z" />
|
||||||
|
<glyph unicode="}" horiz-adv-x="783" d="M171 -299q189 0 189 197v341q0 177 128 238q-128 60 -128 237v341q0 197 -175 197h-14v113h90q239 0 239 -307v-338q0 -152 113 -187v-113q-113 -36 -113 -187v-338q0 -305 -239 -305h-90v111z" />
|
||||||
|
<glyph unicode="~" horiz-adv-x="984" d="M0 1250q115 232 279 232q77 0 230 -74q141 -69 202 -69q102 0 187 147l86 -51q-114 -226 -286 -226q-75 0 -174 47l-118 55q-85 41 -139 41q-100 0 -183 -156z" />
|
||||||
|
<glyph unicode="¡" horiz-adv-x="491" d="M162 -410l20 989h131l17 -989h-168zM162 772v184h154v-184h-154z" />
|
||||||
|
<glyph unicode="¢" horiz-adv-x="1255" d="M183 658q0 460 363 460v133h116v-133q336 0 336 -278l-1 -44h-140q0 127 -35.5 165t-159.5 44v-750q214 0 214 189l1 53h140l-1 -37q0 -321 -354 -321v-146h-116v146q-210 0 -286.5 109.5t-76.5 409.5zM330 668q0 -257 39 -330.5t177 -80.5v751q-134 -10 -175 -74.5 t-41 -265.5z" />
|
||||||
|
<glyph unicode="£" horiz-adv-x="1257" d="M95 534v130h169v208l-2 121l7 113q37 273 433 273q266 0 364.5 -75t98.5 -277l-2 -70h-148v34q0 169 -50 213.5t-237 44.5q-204 0 -256.5 -44.5t-52.5 -216.5l-1 -50v-274h387v-130h-387v-64l1 -109l-15 -122q-18 -61 -100 -119v-3l885 10v-127h-1062v117q137 30 137 304 v113h-169z" />
|
||||||
|
<glyph unicode="¤" horiz-adv-x="1365" d="M114 1217l80 80l193 -193q143 107 299 107q151 0 290 -106l194 191l79 -79l-192 -191q105 -142 105 -294q0 -149 -103 -289l193 -193l-79 -80l-193 193q-137 -105 -297 -105q-146 0 -293 105l-192 -193l-79 80l190 193q-104 136 -104 290q0 152 104 291zM338 733 q0 -142 101.5 -243.5t244.5 -101.5q142 0 243.5 101.5t101.5 243.5q0 145 -101 246.5t-244 101.5q-144 0 -245 -102t-101 -246z" />
|
||||||
|
<glyph unicode="¥" horiz-adv-x="1257" d="M69 1365h179l376 -638h4l376 638h183l-267 -431h186v-130h-264l-125 -201h389v-130h-408v-473h-154v473h-394v130h375l-121 201h-254v130h178z" />
|
||||||
|
<glyph unicode="¦" horiz-adv-x="140" d="M0 314h140v-655h-140v655zM0 686v679h140v-679h-140z" />
|
||||||
|
<glyph unicode="§" horiz-adv-x="1257" d="M154 559q0 204 156 240q-103 66 -103 241q0 208 76.5 273.5t321.5 65.5q307 0 386.5 -61.5t79.5 -300.5h-134l-1 56q0 112 -57 144t-257 32q-184 0 -233 -31.5t-49 -149.5q0 -148 100 -179l88 -26l306 -91q175 -51 220.5 -97t45.5 -171q0 -214 -132 -269 q135 -65 135 -270q0 -222 -90.5 -290t-387.5 -68q-292 0 -378 70t-86 309h138q0 -167 49.5 -208t253.5 -41q247 0 307.5 36t60.5 182q0 97 -32.5 130.5t-158.5 67.5l-421 111q-125 33 -164.5 90.5t-39.5 204.5zM287 555q0 -126 152 -169l308 -86q61 -17 102 -17 q118 0 118 209q0 100 -163 148l-295 87q-70 21 -102 21q-120 0 -120 -193z" />
|
||||||
|
<glyph unicode="¨" horiz-adv-x="1024" d="M250 1126v130h154v-130h-154zM620 1126v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="©" horiz-adv-x="1527" d="M68 683q0 288 204 492t493 204q286 0 489.5 -204t203.5 -492t-203.5 -492.5t-489.5 -204.5q-289 0 -493 204t-204 493zM153 683q0 -259 179 -442t432 -183q252 0 430.5 183t178.5 442t-178 441.5t-431 182.5t-432 -182.5t-179 -441.5zM437 690q0 277 57 336.5t322 59.5 q263 0 263 -227l1 -28h-103v30q0 88 -29.5 112t-137.5 24q-190 0 -230.5 -29t-40.5 -164q0 -317 27 -370t190 -53q157 0 194.5 22t37.5 114l-1 52h103l-1 -36q0 -160 -56.5 -200.5t-280.5 -40.5q-204 0 -259.5 70t-55.5 328z" />
|
||||||
|
<glyph unicode="ª" horiz-adv-x="837" d="M117 642l2 82h572v-82h-574zM147 979q0 177 231 177q123 0 176 -41v45q0 90 -25.5 115.5t-116.5 25.5q-144 0 -144 -76l1 -23h-98q0 102 46 136.5t184 34.5q255 0 255 -196v-358h-103l6 45q-63 -53 -179 -53q-233 0 -233 168zM249 986q0 -103 145 -103q164 0 164 97 q0 104 -162 104q-147 0 -147 -98z" />
|
||||||
|
<glyph unicode="«" horiz-adv-x="915" d="M102 525l246 522l105 -64l-215 -458l238 -459l-99 -66zM438 525l246 522l105 -64l-215 -458l238 -459l-99 -66z" />
|
||||||
|
<glyph unicode="¬" horiz-adv-x="887" d="M0 416v130h887v-546h-140v416h-747z" />
|
||||||
|
<glyph unicode="­" horiz-adv-x="425" d="M0 432l3 130h422v-130h-425z" />
|
||||||
|
<glyph unicode="®" horiz-adv-x="1527" d="M68 683q0 288 204 492t493 204q286 0 489.5 -204t203.5 -492t-203.5 -492.5t-489.5 -204.5q-289 0 -493 204t-204 493zM153 683q0 -259 179 -442t432 -183q252 0 430.5 183t178.5 442t-178 441.5t-431 182.5t-432 -182.5t-179 -441.5zM452 300v779h384q238 0 238 -228 q0 -166 -107 -202q96 -33 96 -150v-199h-102v179q0 125 -114 125h-29h-264v-304h-102zM554 696h252q166 0 166 134q0 99 -25 128t-110 29h-283v-291z" />
|
||||||
|
<glyph unicode="°" horiz-adv-x="749" d="M93 1105q0 115 82.5 195.5t199.5 80.5q116 0 198.5 -81t82.5 -195t-82.5 -195t-198.5 -81q-117 0 -199.5 81t-82.5 195zM178 1105q0 -192 197 -192q196 0 196 192t-196 192q-197 0 -197 -192z" />
|
||||||
|
<glyph unicode="±" horiz-adv-x="1257" d="M148 124v143h960v-143h-960zM148 753v143h404v354h154v-354h402v-143h-402v-350h-154v350h-404z" />
|
||||||
|
<glyph unicode="²" horiz-adv-x="826" d="M80 544v160q0 131 55 172.5t258 62.5q159 17 190 43.5t31 142.5q0 102 -36 130.5t-167 28.5q-146 0 -184.5 -24t-38.5 -115l1 -68h-108l1 49q0 146 66 196.5t257 50.5q186 0 248.5 -52.5t62.5 -208.5q0 -147 -57.5 -197.5t-247.5 -68.5q-161 -15 -191 -40.5t-30 -149.5 v-20h523v-92h-633z" />
|
||||||
|
<glyph unicode="³" horiz-adv-x="826" d="M76 822h108v-54q0 -139 125 -139l140 -2l93 7q88 14 88 149t-179 135h-82h-44v93l40 -1q174 0 211 19t37 108q0 103 -32 125t-183 22q-142 0 -172 -22t-30 -124v-34h-105v39q0 141 59.5 185.5t246.5 44.5q193 0 255.5 -41.5t62.5 -169.5q0 -171 -117 -196 q134 -23 134 -188q0 -144 -64 -192t-255 -48q-206 0 -271 44.5t-65 185.5z" />
|
||||||
|
<glyph unicode="´" horiz-adv-x="1024" d="M395 1146l271 205l72 -98l-295 -181z" />
|
||||||
|
<glyph unicode="µ" horiz-adv-x="825" d="M0 -342v1325h140v-559q0 -341 268 -341q277 0 277 360v540h140v-983h-140v180q-92 -206 -280 -206q-169 0 -265 152v-468h-140z" />
|
||||||
|
<glyph unicode="¶" horiz-adv-x="1260" d="M96 939q0 245 85 335.5t314 90.5h52h545v-1775h-140v1645h-160v-1645h-140v945h-80l-47 1q-248 0 -338.5 85t-90.5 318z" />
|
||||||
|
<glyph unicode="¸" horiz-adv-x="1024" d="M403 -307l121 207l97 -54l-139 -195z" />
|
||||||
|
<glyph unicode="¹" horiz-adv-x="817" d="M140 1116l245 249h141v-819h-102v727l-213 -220z" />
|
||||||
|
<glyph unicode="º" horiz-adv-x="837" d="M132 642l2 82h572v-82h-574zM152 1099q0 178 50.5 232.5t216.5 54.5t216.5 -54.5t50.5 -233.5q0 -178 -50.5 -232.5t-216.5 -54.5t-216.5 54.5t-50.5 233.5zM268 1099q0 -137 23.5 -168t127.5 -31q103 0 127 31.5t24 167.5q0 135 -24 166.5t-127 31.5t-127 -31.5 t-24 -166.5z" />
|
||||||
|
<glyph unicode="»" horiz-adv-x="915" d="M102 66l238 459l-215 458l105 64l246 -522l-275 -525zM438 66l238 459l-215 458l105 64l246 -522l-275 -525z" />
|
||||||
|
<glyph unicode="¼" horiz-adv-x="1924" d="M140 1116l245 249h141v-819h-102v727l-213 -220zM447 0l922 1365h108l-926 -1365h-104zM1143 186v118l440 515h152v-541h129v-92h-129v-186h-102v186h-490zM1246 278h387v460z" />
|
||||||
|
<glyph unicode="½" horiz-adv-x="1925" d="M140 1116l245 249h141v-819h-102v727l-213 -220zM447 0l922 1365h108l-926 -1365h-104zM1179 0v160q0 131 54.5 171.5t258.5 62.5q159 17 190 43t31 142q0 102 -36 130.5t-167 28.5q-146 0 -184.5 -24t-38.5 -115l1 -68h-108l1 49q0 146 66 196.5t257 50.5 q186 0 248.5 -52.5t62.5 -208.5q0 -147 -58 -197.5t-247 -67.5q-162 -15 -191.5 -40.5t-29.5 -148.5v-20h523v-92h-633z" />
|
||||||
|
<glyph unicode="¾" horiz-adv-x="1924" d="M76 822h108v-54q0 -139 125 -139l140 -2l93 7q88 14 88 149t-179 135h-82h-44v93l40 -1q174 0 211 19t37 108q0 103 -32 125t-183 22q-142 0 -172 -22t-30 -124v-34h-105v39q0 141 59.5 185.5t246.5 44.5q193 0 255.5 -41.5t62.5 -169.5q0 -173 -117 -196 q134 -22 134 -188q0 -144 -64 -192t-255 -48q-206 0 -271 44.5t-65 185.5zM515 0l921 1365h109l-927 -1365h-103zM1142 186v118l440 515h152v-541h129v-92h-129v-186h-102v186h-490zM1245 278h387v460z" />
|
||||||
|
<glyph unicode="¿" horiz-adv-x="1064" d="M102 -51q0 313 194 381l83 30q138 48 138 168v34h151l-1 -30q0 -137 -38 -191t-171 -104l-83 -32q-126 -48 -126 -242q0 -170 46.5 -213.5t229.5 -43.5q188 0 236.5 46.5t48.5 226.5v39h144v-45q0 -245 -86.5 -321t-365.5 -76q-234 0 -317 77t-83 296zM517 772v184h154 v-184h-154z" />
|
||||||
|
<glyph unicode="À" horiz-adv-x="1246" d="M10 0l500 1365h216l510 -1365h-161l-106 289h-691l-105 -289h-163zM322 405h602l-303 834zM362 1630l60 111l298 -186l-50 -79z" />
|
||||||
|
<glyph unicode="Á" horiz-adv-x="1246" d="M10 0l500 1365h216l510 -1365h-161l-106 289h-691l-105 -289h-163zM322 405h602l-303 834zM526 1555l297 186l61 -111l-308 -154z" />
|
||||||
|
<glyph unicode="Â" horiz-adv-x="1246" d="M10 0l500 1365h216l510 -1365h-161l-106 289h-691l-105 -289h-163zM306 1553l321 182l313 -182l-43 -77l-270 124l-283 -124zM322 405h602l-303 834z" />
|
||||||
|
<glyph unicode="Ã" horiz-adv-x="1246" d="M10 0l500 1365h216l510 -1365h-161l-106 289h-691l-105 -289h-163zM322 405h602l-303 834zM328 1561q74 136 173 136q41 0 136 -39q91 -38 123 -38q56 0 107 78l78 -51q-84 -136 -188 -136q-44 0 -138 41q-84 36 -123 36q-45 0 -86 -73z" />
|
||||||
|
<glyph unicode="Ä" horiz-adv-x="1246" d="M10 0l500 1365h216l510 -1365h-161l-106 289h-691l-105 -289h-163zM322 405h602l-303 834zM361 1530v130h154v-130h-154zM731 1530v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="Å" horiz-adv-x="1246" d="M10 0l500 1365h216l510 -1365h-161l-106 289h-691l-105 -289h-163zM322 405h602l-303 834zM466 1618q0 157 157 157t157 -157t-157 -157t-157 157zM534 1618q0 -85 89 -85t89 85t-89 85t-89 -85z" />
|
||||||
|
<glyph unicode="Æ" horiz-adv-x="1902" d="M-9 0l759 1365h1084v-130h-714v-468h682v-130h-682v-507h714v-130h-868v287h-637l-156 -287h-182zM401 417h565v818h-124z" />
|
||||||
|
<glyph unicode="Ç" horiz-adv-x="1222" d="M76 685q0 355 21 446.5t120 163.5q116 84 501 84q261 0 351.5 -81t90.5 -313l1 -37h-153l-1 42q0 165 -53.5 212t-241.5 47q-330 0 -403 -55t-73 -305q0 -575 49 -674t335 -99q272 0 339.5 43t67.5 216l-2 81h153v-52q0 -279 -95 -348.5t-478 -69.5q-343 0 -436 122.5 t-93 576.5zM502 -338l139 238l112 -63l-160 -224z" />
|
||||||
|
<glyph unicode="È" horiz-adv-x="1020" d="M75 0v1365h877v-130h-723v-465h693v-130h-693v-510h723v-130h-877zM304 1630l60 111l297 -186l-50 -79z" />
|
||||||
|
<glyph unicode="É" horiz-adv-x="1020" d="M75 0v1365h877v-130h-723v-465h693v-130h-693v-510h723v-130h-877zM399 1555l298 186l60 -111l-308 -154z" />
|
||||||
|
<glyph unicode="Ê" horiz-adv-x="1020" d="M75 0v1365h877v-130h-723v-465h693v-130h-693v-510h723v-130h-877zM206 1553l321 182l314 -182l-43 -77l-271 124l-283 -124z" />
|
||||||
|
<glyph unicode="Ë" horiz-adv-x="1020" d="M75 0v1365h877v-130h-723v-465h693v-130h-693v-510h723v-130h-877zM262 1530v130h154v-130h-154zM632 1530v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="Ì" horiz-adv-x="416" d="M-53 1630l60 111l298 -186l-50 -79zM128 0v1365h154v-1365h-154z" />
|
||||||
|
<glyph unicode="Í" horiz-adv-x="416" d="M111 1555l297 186l61 -111l-308 -154zM130 0v1365h154v-1365h-154z" />
|
||||||
|
<glyph unicode="Î" horiz-adv-x="416" d="M-82 1553l294 182l286 -182l-43 -77l-243 124l-256 -124zM130 0v1365h154v-1365h-154z" />
|
||||||
|
<glyph unicode="Ï" horiz-adv-x="416" d="M21 1530v130h154v-130h-154zM130 0v1365h154v-1365h-154zM241 1530v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="Ð" horiz-adv-x="1337" d="M0 640v116h130v609h630q294 0 398 -129t104 -494q0 -444 -93 -593t-370 -149h-669v640h-130zM284 130h443q246 0 317 98t71 437q0 372 -62 471t-294 99h-475v-479h434v-116h-434v-510z" />
|
||||||
|
<glyph unicode="Ñ" horiz-adv-x="1426" d="M130 0v1365h252l499 -814l130 -214l65 -106l64 -107h4l-1 51l-1 52v102v1036h154v-1365h-253l-572 929l-93 153l-46 76l-46 76h-4l1 -51l1 -52v-102v-1029h-154zM418 1561q74 136 174 136q40 0 135 -39q91 -38 124 -38q55 0 107 78l78 -51q-84 -136 -189 -136 q-44 0 -137 41q-84 36 -124 36q-45 0 -85 -73z" />
|
||||||
|
<glyph unicode="Ò" d="M47 683v96l2 129q0 272 122.5 371.5t457.5 99.5q387 0 484 -113t97 -565q0 -487 -93 -601t-488 -114q-393 0 -487.5 113t-94.5 584zM194 683q0 -423 55 -495t379 -72q325 0 380 72t55 495v89l-1 129q0 226 -76 287t-358 61q-324 0 -379 -72t-55 -494zM409 1630l60 111 l298 -186l-50 -79z" />
|
||||||
|
<glyph unicode="Ó" d="M47 683v96l2 129q0 272 122.5 371.5t457.5 99.5q387 0 484 -113t97 -565q0 -487 -93 -601t-488 -114q-393 0 -487.5 113t-94.5 584zM194 683q0 -423 55 -495t379 -72q325 0 380 72t55 495v89l-1 129q0 226 -76 287t-358 61q-324 0 -379 -72t-55 -494zM505 1555l297 186 l60 -111l-308 -154z" />
|
||||||
|
<glyph unicode="Ô" d="M47 683v96l2 129q0 272 122.5 371.5t457.5 99.5q387 0 484 -113t97 -565q0 -487 -93 -601t-488 -114q-393 0 -487.5 113t-94.5 584zM194 683q0 -423 55 -495t379 -72q325 0 380 72t55 495v89l-1 129q0 226 -76 287t-358 61q-324 0 -379 -72t-55 -494zM312 1553l320 182 l314 -182l-43 -77l-271 124l-282 -124z" />
|
||||||
|
<glyph unicode="Õ" d="M47 683v96l2 129q0 272 122.5 371.5t457.5 99.5q387 0 484 -113t97 -565q0 -487 -93 -601t-488 -114q-393 0 -487.5 113t-94.5 584zM194 683q0 -423 55 -495t379 -72q325 0 380 72t55 495v89l-1 129q0 226 -76 287t-358 61q-324 0 -379 -72t-55 -494zM341 1561 q75 136 174 136q41 0 135 -39q92 -38 124 -38q56 0 107 78l78 -51q-84 -136 -188 -136q-44 0 -138 41q-84 36 -124 36q-44 0 -85 -73z" />
|
||||||
|
<glyph unicode="Ö" d="M47 683v96l2 129q0 272 122.5 371.5t457.5 99.5q387 0 484 -113t97 -565q0 -487 -93 -601t-488 -114q-393 0 -487.5 113t-94.5 584zM194 683q0 -423 55 -495t379 -72q325 0 380 72t55 495v89l-1 129q0 226 -76 287t-358 61q-324 0 -379 -72t-55 -494zM367 1530v130h154 v-130h-154zM737 1530v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="×" d="M194 344l339 339l-339 338l95 96l339 -339l339 339l95 -96l-339 -338l339 -339l-95 -95l-339 338l-339 -338z" />
|
||||||
|
<glyph unicode="Ø" horiz-adv-x="1289" d="M20 7v152l76 73q-34 116 -34 469q0 459 98 568.5t510 109.5q371 0 469 -137l129 125v-152l-79 -77q37 -118 37 -406q0 -520 -87.5 -633t-490.5 -113q-391 0 -503 143zM209 801q0 -327 15 -444l807 781q-40 75 -109 93t-317 18q-272 0 -334 -70t-62 -378zM256 235 q42 -83 110.5 -101t341.5 -18q233 0 301.5 68.5t68.5 302.5l1 327l-8 145q-2 19 -9 56z" />
|
||||||
|
<glyph unicode="Ù" horiz-adv-x="1341" d="M131 363v46v956h154v-956q0 -194 63 -243.5t310 -49.5q268 0 334 48.5t66 244.5v956h154v-956q0 -260 -104.5 -341.5t-438.5 -81.5q-313 0 -425.5 78.5t-112.5 298.5zM451 1630l60 111l298 -186l-50 -79z" />
|
||||||
|
<glyph unicode="Ú" horiz-adv-x="1341" d="M131 363v46v956h154v-956q0 -194 63 -243.5t310 -49.5q268 0 334 48.5t66 244.5v956h154v-956q0 -260 -104.5 -341.5t-438.5 -81.5q-313 0 -425.5 78.5t-112.5 298.5zM547 1555l297 186l60 -111l-307 -154z" />
|
||||||
|
<glyph unicode="Û" horiz-adv-x="1341" d="M131 363v46v956h154v-956q0 -194 63 -243.5t310 -49.5q268 0 334 48.5t66 244.5v956h154v-956q0 -260 -104.5 -341.5t-438.5 -81.5q-313 0 -425.5 78.5t-112.5 298.5zM354 1553l321 182l313 -182l-43 -77l-270 124l-283 -124z" />
|
||||||
|
<glyph unicode="Ü" horiz-adv-x="1341" d="M131 363v46v956h154v-956q0 -194 63 -243.5t310 -49.5q268 0 334 48.5t66 244.5v956h154v-956q0 -260 -104.5 -341.5t-438.5 -81.5q-313 0 -425.5 78.5t-112.5 298.5zM409 1530v130h154v-130h-154zM779 1530v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="Ý" horiz-adv-x="1152" d="M-10 1365h179l293 -461l56 -89q11 -16 28 -44l27 -45h4l27 45l27 44l57 89l292 461h183l-516 -795v-570h-154v570zM479 1555l297 186l61 -111l-308 -154z" />
|
||||||
|
<glyph unicode="Þ" horiz-adv-x="1208" d="M130 0v1365h154v-191h419h52q231 0 315 -89t84 -334q0 -236 -87.5 -321t-328.5 -85l-60 -1h-394v-344h-154zM284 474h365q230 0 294 47.5t64 216.5q0 199 -43.5 252t-206.5 53l-59 1h-414v-570z" />
|
||||||
|
<glyph unicode="ß" horiz-adv-x="1073" d="M130 0v1055v40q0 284 373 284q378 0 378 -269q0 -184 -178 -227v-2q151 -31 202.5 -116.5t51.5 -306.5q0 -263 -71 -367.5t-251 -104.5q-270 0 -270 286l1 20h137l1 -29q0 -161 132 -161q108 0 141 68t33 288q0 217 -55.5 289.5t-219.5 72.5h-78h-39v121h32l50 1 q234 0 234 145q0 111 -44.5 143.5t-195.5 32.5q-224 0 -224 -195v-1068h-140z" />
|
||||||
|
<glyph unicode="à" horiz-adv-x="1044" d="M89 277q0 173 81 239t293 66q252 0 302 -99l3 1v116q0 164 -45 212.5t-197 48.5q-258 0 -258 -145q0 -7 1 -28h-139q0 167 75.5 224.5t295.5 57.5q239 0 323 -70.5t84 -268.5v-631h-140l11 103l-3 1q-80 -118 -325 -118q-362 0 -362 291zM236 293q0 -116 48 -153.5 t195 -37.5q296 0 296 180q0 113 -57.5 152t-223.5 39q-161 0 -209.5 -34t-48.5 -146zM297 1253l72 98l271 -205l-49 -74z" />
|
||||||
|
<glyph unicode="á" horiz-adv-x="1044" d="M89 277q0 173 81 239t293 66q252 0 302 -99l3 1v116q0 164 -45 212.5t-197 48.5q-258 0 -258 -145q0 -7 1 -28h-139q0 167 75.5 224.5t295.5 57.5q239 0 323 -70.5t84 -268.5v-631h-140l11 103l-3 1q-80 -118 -325 -118q-362 0 -362 291zM236 293q0 -116 48 -153.5 t195 -37.5q296 0 296 180q0 113 -57.5 152t-223.5 39q-161 0 -209.5 -34t-48.5 -146zM406 1146l271 205l72 -98l-295 -181z" />
|
||||||
|
<glyph unicode="â" horiz-adv-x="1044" d="M89 277q0 173 81 239t293 66q252 0 302 -99l3 1v116q0 164 -45 212.5t-197 48.5q-258 0 -258 -145q0 -7 1 -28h-139q0 167 75.5 224.5t295.5 57.5q239 0 323 -70.5t84 -268.5v-631h-140l11 103l-3 1q-80 -118 -325 -118q-362 0 -362 291zM236 293q0 -116 48 -153.5 t195 -37.5q296 0 296 180q0 113 -57.5 152t-223.5 39q-161 0 -209.5 -34t-48.5 -146zM246 1144l263 209l262 -209l-56 -71l-206 152l-206 -152z" />
|
||||||
|
<glyph unicode="ã" horiz-adv-x="1044" d="M89 277q0 173 81 239t293 66q252 0 302 -99l3 1v116q0 164 -45 212.5t-197 48.5q-258 0 -258 -145q0 -7 1 -28h-139q0 167 75.5 224.5t295.5 57.5q239 0 323 -70.5t84 -268.5v-631h-140l11 103l-3 1q-80 -118 -325 -118q-362 0 -362 291zM236 289q0 -115 48.5 -151 t206.5 -36q284 0 284 176q0 111 -57.5 149.5t-223.5 38.5q-161 0 -209.5 -33.5t-48.5 -143.5zM246 1155q73 124 163 124q41 0 124 -34q87 -36 110 -36q39 0 76 67l80 -50q-71 -126 -159 -126q-46 0 -126 36q-78 34 -109 34q-42 0 -79 -66z" />
|
||||||
|
<glyph unicode="ä" horiz-adv-x="1044" d="M89 277q0 173 81 239t293 66q252 0 302 -99l3 1v116q0 164 -45 212.5t-197 48.5q-258 0 -258 -145q0 -7 1 -28h-139q0 167 75.5 224.5t295.5 57.5q239 0 323 -70.5t84 -268.5v-631h-140l11 103l-3 1q-80 -118 -325 -118q-362 0 -362 291zM236 293q0 -116 48 -153.5 t195 -37.5q296 0 296 180q0 113 -57.5 152t-223.5 39q-161 0 -209.5 -34t-48.5 -146zM247 1126v130h154v-130h-154zM617 1126v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="å" horiz-adv-x="1044" d="M89 277q0 173 81 239t293 66q252 0 302 -99l3 1v116q0 164 -45 212.5t-197 48.5q-258 0 -258 -145q0 -7 1 -28h-139q0 167 75.5 224.5t295.5 57.5q239 0 323 -70.5t84 -268.5v-631h-140l11 103l-3 1q-80 -118 -325 -118q-362 0 -362 291zM236 293q0 -116 48 -153.5 t195 -37.5q296 0 296 180q0 113 -57.5 152t-223.5 39q-161 0 -209.5 -34t-48.5 -146zM352 1208q0 157 157 157t157 -157t-157 -157t-157 157zM420 1208q0 -85 89 -85t89 85t-89 85t-89 -85z" />
|
||||||
|
<glyph unicode="æ" horiz-adv-x="1697" d="M89 279q0 164 84.5 227.5t303.5 63.5q233 0 296 -97h3v162q0 138 -50.5 182t-208.5 44q-245 0 -245 -142v-21h-148q13 168 81.5 220t276.5 52q318 0 369 -123h3q69 123 333 123q249 0 330 -86.5t81 -351.5l1 -69h-681v-40q0 -212 49 -266.5t241 -54.5q152 0 200 31.5 t48 130.5l1 25h142v-40q0 -263 -408 -263q-291 0 -352 161h-3q-62 -161 -347 -161q-400 0 -400 293zM236 286q0 -108 55 -146t212 -38q274 0 274 180q0 101 -62.5 136.5t-240.5 35.5q-238 0 -238 -168zM917 579h540l-1 48q0 134 -53.5 180.5t-207.5 46.5q-162 0 -219.5 -50 t-57.5 -191z" />
|
||||||
|
<glyph unicode="ç" horiz-adv-x="993" d="M95 483q0 284 84.5 385.5t321.5 101.5q233 0 318 -68.5t85 -257.5h-140v25q0 111 -55 148t-219 37q-158 0 -203 -70t-45 -314q0 -238 51.5 -303t240.5 -65q160 0 203 42.5t43 200.5h140l1 -52q0 -307 -402 -307q-258 0 -341 97t-83 400zM385 -307l121 207l98 -54 l-140 -195z" />
|
||||||
|
<glyph unicode="è" horiz-adv-x="1029" d="M95 488q0 286 83 384t325 98q264 0 346 -85t82 -358v-75h-688q0 -226 48.5 -288t226.5 -62q169 0 219.5 29.5t50.5 127.5v30h143l1 -35q0 -149 -90.5 -208.5t-317.5 -59.5q-264 0 -346.5 96.5t-82.5 405.5zM245 561h543l-1 45q0 155 -51 201.5t-220 46.5 q-170 0 -220.5 -54.5t-50.5 -238.5zM302 1253l72 98l271 -205l-49 -74z" />
|
||||||
|
<glyph unicode="é" horiz-adv-x="1029" d="M95 488q0 286 83 384t325 98q264 0 346 -85t82 -358v-75h-688q0 -226 48.5 -288t226.5 -62q169 0 219.5 29.5t50.5 127.5v30h143l1 -35q0 -149 -90.5 -208.5t-317.5 -59.5q-264 0 -346.5 96.5t-82.5 405.5zM245 561h543l-1 45q0 155 -51 201.5t-220 46.5 q-170 0 -220.5 -54.5t-50.5 -238.5zM411 1146l271 205l72 -98l-295 -181z" />
|
||||||
|
<glyph unicode="ê" horiz-adv-x="1029" d="M95 488q0 286 83 384t325 98q264 0 346 -85t82 -358v-75h-688q0 -226 48.5 -288t226.5 -62q169 0 219.5 29.5t50.5 127.5v30h143l1 -35q0 -149 -90.5 -208.5t-317.5 -59.5q-264 0 -346.5 96.5t-82.5 405.5zM245 561h543l-1 45q0 155 -51 201.5t-220 46.5 q-170 0 -220.5 -54.5t-50.5 -238.5zM265 1144l263 209l262 -209l-56 -71l-206 152l-206 -152z" />
|
||||||
|
<glyph unicode="ë" horiz-adv-x="1029" d="M95 488q0 286 83 384t325 98q264 0 346 -85t82 -358v-75h-688q0 -226 48.5 -288t226.5 -62q169 0 219.5 29.5t50.5 127.5v30h143l1 -35q0 -149 -90.5 -208.5t-317.5 -59.5q-264 0 -346.5 96.5t-82.5 405.5zM245 561h543l-1 45q0 155 -51 201.5t-220 46.5 q-170 0 -220.5 -54.5t-50.5 -238.5zM266 1126v130h154v-130h-154zM636 1126v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="ì" horiz-adv-x="385" d="M-47 1253l72 98l271 -205l-49 -74zM123 0v956h140v-956h-140z" />
|
||||||
|
<glyph unicode="í" horiz-adv-x="385" d="M89 1146l271 205l72 -98l-295 -181zM123 0v956h140v-956h-140z" />
|
||||||
|
<glyph unicode="î" horiz-adv-x="385" d="M-43 1144l235 209l236 -209l-57 -71l-179 152l-178 -152zM123 0v956h140v-956h-140z" />
|
||||||
|
<glyph unicode="ï" horiz-adv-x="385" d="M-16 1126v130h154v-130h-154zM123 0v956h140v-956h-140zM248 1126v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="ð" horiz-adv-x="1036" d="M96 478q0 308 79 400t344 92q68 0 137 -6l-125 183l-195 -108l-46 83l187 104l-96 139h139l57 -83l179 98l46 -83l-170 -94l211 -307q98 -143 98 -418q0 -308 -79 -400t-344 -92q-264 0 -343 92t-79 400zM243 478q0 -255 44.5 -315.5t230.5 -60.5q187 0 231.5 60.5 t44.5 315.5t-44.5 315.5t-231.5 60.5q-186 0 -230.5 -60.5t-44.5 -315.5z" />
|
||||||
|
<glyph unicode="ñ" horiz-adv-x="1056" d="M123 0v956h135l-4 -130l4 -3q64 147 318 147q205 0 277.5 -72t72.5 -276v-622h-140v610v36q0 123 -47 165.5t-181 42.5q-295 0 -295 -279v-575h-140zM264 1155q73 124 163 124q41 0 124 -34q87 -36 110 -36q39 0 76 67l80 -50q-71 -126 -159 -126q-46 0 -126 36 q-78 34 -109 34q-42 0 -79 -66z" />
|
||||||
|
<glyph unicode="ò" horiz-adv-x="1036" d="M96 478q0 308 79 400t343 92q265 0 344 -92t79 -400t-79 -400t-344 -92q-264 0 -343 92t-79 400zM243 478q0 -255 44.5 -315.5t230.5 -60.5q187 0 231.5 60.5t44.5 315.5t-44.5 315.5t-231.5 60.5q-186 0 -230.5 -60.5t-44.5 -315.5zM306 1253l72 98l271 -205l-49 -74z " />
|
||||||
|
<glyph unicode="ó" horiz-adv-x="1036" d="M96 478q0 308 79 400t343 92q265 0 344 -92t79 -400t-79 -400t-344 -92q-264 0 -343 92t-79 400zM243 478q0 -255 44.5 -315.5t230.5 -60.5q187 0 231.5 60.5t44.5 315.5t-44.5 315.5t-231.5 60.5q-186 0 -230.5 -60.5t-44.5 -315.5zM401 1146l271 205l72 -98l-295 -181z " />
|
||||||
|
<glyph unicode="ô" horiz-adv-x="1036" d="M96 478q0 308 79 400t343 92q265 0 344 -92t79 -400t-79 -400t-344 -92q-264 0 -343 92t-79 400zM243 478q0 -255 44.5 -315.5t230.5 -60.5q187 0 231.5 60.5t44.5 315.5t-44.5 315.5t-231.5 60.5q-186 0 -230.5 -60.5t-44.5 -315.5zM255 1144l263 209l262 -209l-56 -71 l-206 152l-206 -152z" />
|
||||||
|
<glyph unicode="õ" horiz-adv-x="1036" d="M96 478q0 308 79 400t343 92q265 0 344 -92t79 -400t-79 -400t-344 -92q-264 0 -343 92t-79 400zM243 478q0 -255 44.5 -315.5t230.5 -60.5q187 0 231.5 60.5t44.5 315.5t-44.5 315.5t-231.5 60.5q-186 0 -230.5 -60.5t-44.5 -315.5zM262 1155q73 124 163 124 q41 0 124 -34q87 -36 110 -36q39 0 76 67l80 -50q-71 -126 -159 -126q-46 0 -126 36q-78 34 -109 34q-42 0 -79 -66z" />
|
||||||
|
<glyph unicode="ö" horiz-adv-x="1036" d="M96 478q0 308 79 400t343 92q265 0 344 -92t79 -400t-79 -400t-344 -92q-264 0 -343 92t-79 400zM243 478q0 -255 44.5 -315.5t230.5 -60.5q187 0 231.5 60.5t44.5 315.5t-44.5 315.5t-231.5 60.5q-186 0 -230.5 -60.5t-44.5 -315.5zM257 1126v130h154v-130h-154z M627 1126v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="÷" d="M155 617v130h946v-130h-946zM536 350q0 92 92 92q93 0 93 -92q0 -93 -93 -93q-92 0 -92 93zM536 1017q0 92 92 92q93 0 93 -92q0 -93 -93 -93q-92 0 -92 93z" />
|
||||||
|
<glyph unicode="ø" horiz-adv-x="1037" d="M59 -33v129l69 66q-33 98 -33 315q0 310 79.5 401.5t348.5 91.5q263 0 342 -100l112 108v-128l-68 -66q32 -95 32 -290q0 -312 -77 -410t-323 -98q-279 0 -365 93zM242 476q0 -112 8 -197l513 493q-43 82 -224 82q-205 0 -251 -58.5t-46 -319.5zM278 178q43 -76 217 -76 q207 0 253 60t46 331q0 85 -7 174z" />
|
||||||
|
<glyph unicode="ù" horiz-adv-x="1039" d="M123 320v636h140v-636q0 -130 43 -174t169 -44q165 0 226.5 65.5t61.5 240.5v548h140v-956h-140l10 125l-3 3q-73 -142 -312 -142q-335 0 -335 334zM294 1253l72 98l271 -205l-49 -74z" />
|
||||||
|
<glyph unicode="ú" horiz-adv-x="1039" d="M123 320v636h140v-636q0 -130 43 -174t169 -44q165 0 226.5 65.5t61.5 240.5v548h140v-956h-140l10 125l-3 3q-73 -142 -312 -142q-335 0 -335 334zM403 1146l271 205l72 -98l-295 -181z" />
|
||||||
|
<glyph unicode="û" horiz-adv-x="1039" d="M123 320v636h140v-636q0 -130 43 -174t169 -44q165 0 226.5 65.5t61.5 240.5v548h140v-956h-140l10 125l-3 3q-73 -142 -312 -142q-335 0 -335 334zM257 1144l263 209l262 -209l-56 -71l-206 152l-206 -152z" />
|
||||||
|
<glyph unicode="ü" horiz-adv-x="1039" d="M123 320v636h140v-636q0 -130 43 -174t169 -44q165 0 226.5 65.5t61.5 240.5v548h140v-956h-140l10 125l-3 3q-73 -142 -312 -142q-335 0 -335 334zM258 1126v130h154v-130h-154zM628 1126v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="ý" horiz-adv-x="796" d="M-7 956h149l147 -426l74 -212l36 -107l37 -106h4l26 106l25 107l54 212l108 426h149l-271 -1011q-57 -214 -126.5 -294t-198.5 -80q-26 0 -67 7v116q29 -6 49 -7q113 -6 168 183l27 94q1 5 9 36h-53zM308 1146l271 205l72 -98l-295 -181z" />
|
||||||
|
<glyph unicode="þ" horiz-adv-x="1045" d="M123 -411v1776h140v-530l4 -3q72 138 307 138q213 0 293 -108.5t80 -397.5q0 -269 -81 -373.5t-288 -104.5q-236 0 -312 127h-3v-524h-140zM265 470q0 -221 55 -294.5t221 -73.5q158 0 208.5 71t50.5 293q0 244 -49 316t-216 72q-168 0 -219 -72.5t-51 -311.5z" />
|
||||||
|
<glyph unicode="ÿ" horiz-adv-x="796" d="M-7 956h149l147 -426l74 -212l36 -107l37 -106h4l26 106l25 107l54 212l108 426h149l-271 -1011q-57 -214 -126.5 -294t-198.5 -80q-26 0 -67 7v116q29 -6 49 -7q113 -6 168 183l27 94q1 5 9 36h-53zM136 1126v130h154v-130h-154zM506 1126v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="Œ" horiz-adv-x="2020" d="M76 523q0 525 40 630q86 226 515 226q365 0 453 -156h4l-4 130h868v-130h-719v-453h689v-130h-689v-505h719v-130h-868l4 130h-4q-92 -149 -409 -149q-378 0 -488.5 99t-110.5 438zM223 505q0 -104 10 -176q17 -133 93.5 -173t311.5 -40q286 0 361 59t75 284l1 215l4 210 l-7 141q-16 148 -98.5 186t-392.5 38q-259 0 -308.5 -83.5t-49.5 -519.5v-141z" />
|
||||||
|
<glyph unicode="œ" horiz-adv-x="1714" d="M95 493q0 289 78.5 383t320.5 94q326 0 368 -139h3q61 139 340 139q247 0 329.5 -86.5t82.5 -344.5v-76h-676l-1 -54q0 -193 51 -250t225 -57q162 0 210 35t48 152h143q0 -187 -84.5 -245t-356.5 -58q-243 0 -311 135h-3q-58 -135 -350 -135q-261 0 -339 94.5t-78 412.5z M242 478q0 -255 44.5 -315.5t231.5 -60.5t231.5 60.5t44.5 315.5q0 254 -44.5 315t-231.5 61t-231.5 -60.5t-44.5 -315.5zM937 579h537q0 169 -48.5 222t-203.5 53q-176 0 -230.5 -52.5t-54.5 -222.5z" />
|
||||||
|
<glyph unicode="Ÿ" horiz-adv-x="1152" d="M-10 1365h179l293 -461l56 -89q11 -16 28 -44l27 -45h4l27 45l27 44l57 89l292 461h183l-516 -795v-570h-154v570zM314 1530v130h154v-130h-154zM684 1530v130h154v-130h-154z" />
|
||||||
|
<glyph unicode="ˆ" horiz-adv-x="1024" d="M249 1144l263 209l262 -209l-56 -71l-206 152l-206 -152z" />
|
||||||
|
<glyph unicode="˜" horiz-adv-x="1024" d="M235 1155q73 124 163 124q41 0 124 -34q87 -36 110 -36q39 0 76 67l80 -50q-71 -126 -159 -126q-46 0 -126 36q-78 34 -109 34q-42 0 -79 -66z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="887" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1775" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="887" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1775" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="591" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="443" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="295" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="295" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="221" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="355" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="98" />
|
||||||
|
<glyph unicode="‐" horiz-adv-x="425" d="M0 432l3 130h422v-130h-425z" />
|
||||||
|
<glyph unicode="‑" horiz-adv-x="425" d="M0 432l3 130h422v-130h-425z" />
|
||||||
|
<glyph unicode="‒" horiz-adv-x="425" d="M0 432l3 130h422v-130h-425z" />
|
||||||
|
<glyph unicode="–" d="M227 432v130h803v-130h-803z" />
|
||||||
|
<glyph unicode="—" horiz-adv-x="1417" d="M0 432l9 130h1408v-130h-1417z" />
|
||||||
|
<glyph unicode="‘" horiz-adv-x="366" d="M86 1008v199q0 186 136 186q15 0 46 -2v-77q-94 0 -94 -87l1 -35h65v-184h-154z" />
|
||||||
|
<glyph unicode="’" horiz-adv-x="406" d="M123 981v77q86 5 86 88l-1 35h-65v184h154v-199q0 -187 -136 -187q-12 0 -38 2z" />
|
||||||
|
<glyph unicode="‚" horiz-adv-x="406" d="M109 -123q86 5 86 88l-1 35h-65v184h154v-198q0 -187 -136 -187q-13 0 -38 2v76z" />
|
||||||
|
<glyph unicode="“" horiz-adv-x="653" d="M86 1008v199q0 186 136 186q15 0 46 -2v-77q-94 0 -94 -87l1 -35h65v-184h-154zM381 1008v199q0 186 136 186q11 0 38 -2v-77q-86 -5 -86 -87l1 -35h65v-184h-154z" />
|
||||||
|
<glyph unicode="”" horiz-adv-x="653" d="M98 981v77q86 5 86 88l-1 35h-65v184h154v-199q0 -187 -136 -187q-12 0 -38 2zM385 981v77q94 0 94 88l-1 35h-65v184h154v-199q0 -187 -136 -187q-16 0 -46 2z" />
|
||||||
|
<glyph unicode="„" horiz-adv-x="653" d="M98 -123q86 5 86 88l-1 35h-65v184h154v-198q0 -187 -136 -187q-13 0 -38 2v76zM385 -123q94 0 94 88l-1 35h-65v184h154v-198q0 -187 -136 -187q-17 0 -46 2v76z" />
|
||||||
|
<glyph unicode="•" horiz-adv-x="568" d="M0 694q0 118 83.5 201t202.5 83q117 0 199.5 -83.5t82.5 -200.5t-83 -200.5t-199 -83.5q-118 0 -202 83.5t-84 200.5z" />
|
||||||
|
<glyph unicode="…" horiz-adv-x="1223" d="M123 0v184h154v-184h-154zM531 0v184h154v-184h-154zM946 0v184h154v-184h-154z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="355" />
|
||||||
|
<glyph unicode="‹" horiz-adv-x="578" d="M102 525l246 522l105 -64l-215 -458l238 -459l-99 -66z" />
|
||||||
|
<glyph unicode="›" horiz-adv-x="578" d="M102 66l238 459l-215 458l105 64l246 -522l-275 -525z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="443" />
|
||||||
|
<glyph unicode="™" horiz-adv-x="1630" d="M-3 1273v92h617v-92h-257v-686h-102v686h-258zM680 587v778h166l213 -499l34 -80l16 -40l11 -26q9 19 12 26l16 40l34 80l212 499h168v-778h-102v618v15v31v14q-3 -9 -5 -12l-6 -15l-6 -14l-272 -637h-99l-272 629l-6 12l-6 14q-2 4 -6 15v-18v-17v-17v-618h-102z" />
|
||||||
|
<glyph unicode="◼" horiz-adv-x="955" d="M0 0v955h955v-955h-955z" />
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
||||||
|
After Width: | Height: | Size: 48 KiB |
BIN
app/fonts/eurostile.ttf
Executable file
BIN
app/fonts/eurostile.woff
Executable file
BIN
app/fonts/eurostile.woff2
Executable file
@@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generated by IcoMoon.io -->
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
|
||||||
<path d="M16 0c-8.837 0-16 7.163-16 16s7.163 16 16 16 16-7.163 16-16-7.163-16-16-16zM16 29c-7.18 0-13-5.82-13-13s5.82-13 13-13 13 5.82 13 13-5.82 13-13 13z"></path>
|
|
||||||
<path d="M21 8l-5 5-5-5-3 3 5 5-5 5 3 3 5-5 5 5 3-3-5-5 5-5z"></path>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 554 B |
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generated by IcoMoon.io -->
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
|
||||||
<path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"></path>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 371 B |
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generated by IcoMoon.io -->
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
|
||||||
<path d="M12.42 28.678l-12.433-12.238 6.168-6.071 6.265 6.167 13.426-13.214 6.168 6.071-19.594 19.285zM3.372 16.441l9.048 8.905 16.208-15.953-2.782-2.739-13.426 13.214-6.265-6.167-2.782 2.739z"></path>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 521 B |
28
app/icons/eddb.svg
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" height="400" viewBox="0 0 90 32">
|
||||||
|
<g>
|
||||||
|
<path d="M19.1,25.2c0.3,0,0.6,0.1,0.7,0.2c0.2,0.1,0.3,0.3,0.4,0.4c0.1,0.2,0.2,0.4,0.2,0.6v3.3c0,0.3-0.1,0.6-0.2,0.7
|
||||||
|
c-0.1,0.2-0.3,0.3-0.4,0.3c-0.2,0.1-0.4,0.2-0.6,0.1H3.6c-0.3,0-0.6-0.1-0.7-0.2c-0.2-0.1-0.3-0.3-0.3-0.4
|
||||||
|
c-0.1-0.2-0.2-0.4-0.1-0.6V10.2c0-0.3,0.1-0.5,0.2-0.7C2.7,9.4,2.9,9.3,3,9.2C3.2,9.1,3.4,9,3.6,9h15.5c0.3,0,0.6,0.1,0.7,0.2
|
||||||
|
c0.2,0.1,0.3,0.3,0.4,0.4c0.1,0.2,0.2,0.4,0.2,0.6V22c0,0.3-0.1,0.6-0.2,0.7c-0.1,0.2-0.3,0.3-0.4,0.3c-0.2,0.1-0.4,0.2-0.6,0.1
|
||||||
|
h-6.8v-6.8c0.3-0.2,0.6-0.4,0.8-0.7c0.2-0.3,0.3-0.7,0.3-1c0-0.6-0.2-1.1-0.6-1.4c-0.4-0.4-0.9-0.6-1.4-0.6c-0.5,0-1,0.2-1.4,0.6
|
||||||
|
c-0.4,0.4-0.6,0.9-0.6,1.4c0,0.8,0.3,1.4,1,1.8v8.7H19.1z"/>
|
||||||
|
<path d="M24.6,29.7V10.2c0-0.2,0-0.4,0.1-0.6c0.1-0.1,0.2-0.3,0.3-0.4C25.3,9.1,25.5,9,25.8,9h5.5c0.2,0,0.4,0.1,0.6,0.2
|
||||||
|
c0.1,0.1,0.3,0.2,0.4,0.3c0.1,0.1,0.2,0.4,0.2,0.7v13.2c-0.7,0.4-1,1-1,1.8c0,0.5,0.2,1,0.6,1.4c0.4,0.4,0.9,0.6,1.4,0.6
|
||||||
|
c0.6,0,1.1-0.2,1.4-0.6c0.4-0.4,0.6-0.9,0.6-1.4c0-0.4-0.1-0.8-0.3-1.1c-0.2-0.3-0.4-0.5-0.8-0.7V2.3c0-0.2,0-0.4,0.1-0.6
|
||||||
|
c0.1-0.1,0.2-0.3,0.3-0.4C35.2,1.1,35.4,1,35.8,1h5.5c0.2,0,0.4,0.1,0.6,0.2c0.1,0.1,0.3,0.2,0.4,0.4c0.1,0.2,0.2,0.4,0.2,0.7v27.4
|
||||||
|
c0,0.2-0.1,0.4-0.2,0.6c-0.1,0.1-0.2,0.3-0.4,0.4c-0.2,0.1-0.4,0.2-0.7,0.2H25.8c-0.2,0-0.4,0-0.6-0.1c-0.1-0.1-0.3-0.2-0.4-0.3
|
||||||
|
C24.7,30.3,24.6,30,24.6,29.7z"/>
|
||||||
|
<path d="M46.9,29.7V10.2c0-0.2,0-0.4,0.1-0.6c0.1-0.1,0.2-0.3,0.3-0.4C47.5,9.1,47.7,9,48.1,9h5.5c0.2,0,0.4,0.1,0.6,0.2
|
||||||
|
c0.1,0.1,0.3,0.2,0.4,0.3c0.1,0.1,0.2,0.4,0.2,0.7v13.2c-0.7,0.4-1,1-1,1.8c0,0.5,0.2,1,0.6,1.4c0.4,0.4,0.9,0.6,1.4,0.6
|
||||||
|
c0.6,0,1.1-0.2,1.4-0.6c0.4-0.4,0.6-0.9,0.6-1.4c0-0.4-0.1-0.8-0.3-1.1c-0.2-0.3-0.4-0.5-0.8-0.7V2.3c0-0.2,0-0.4,0.1-0.6
|
||||||
|
c0.1-0.1,0.2-0.3,0.3-0.4C57.4,1.1,57.7,1,58,1h5.5c0.2,0,0.4,0.1,0.6,0.2c0.1,0.1,0.3,0.2,0.4,0.4c0.1,0.2,0.2,0.4,0.2,0.7v27.4
|
||||||
|
c0,0.2-0.1,0.4-0.2,0.6c-0.1,0.1-0.2,0.3-0.4,0.4s-0.4,0.2-0.7,0.2H48.1c-0.2,0-0.4,0-0.6-0.1c-0.1-0.1-0.3-0.2-0.4-0.3
|
||||||
|
C46.9,30.3,46.9,30,46.9,29.7z"/>
|
||||||
|
<path d="M87,29.7c0,0.3-0.1,0.6-0.2,0.7c-0.1,0.2-0.3,0.3-0.4,0.3c-0.2,0.1-0.4,0.2-0.6,0.1H70.3c-0.3,0-0.6-0.1-0.7-0.2
|
||||||
|
s-0.3-0.3-0.3-0.4c-0.1-0.2-0.2-0.4-0.1-0.6V2.3c0-0.3,0.1-0.6,0.2-0.7c0.1-0.2,0.3-0.3,0.4-0.4C69.9,1.1,70.1,1,70.3,1h5.5
|
||||||
|
c0.3,0,0.6,0.1,0.7,0.2c0.2,0.1,0.3,0.3,0.4,0.4c0.1,0.2,0.2,0.4,0.2,0.6v21.2c-0.7,0.4-1,1-1,1.8c0,0.5,0.2,1,0.6,1.4
|
||||||
|
c0.4,0.4,0.8,0.6,1.4,0.6c0.6,0,1.1-0.2,1.4-0.6c0.4-0.4,0.6-0.9,0.6-1.4c0-0.4-0.1-0.8-0.3-1.1c-0.2-0.3-0.4-0.5-0.8-0.7V10.2
|
||||||
|
c0-0.3,0.1-0.5,0.2-0.7c0.1-0.1,0.3-0.3,0.4-0.3C79.8,9.1,80,9,80.2,9h5.5c0.3,0,0.6,0.1,0.7,0.2c0.2,0.1,0.3,0.3,0.4,0.4
|
||||||
|
C87,9.8,87,10,87,10.2V29.7z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.7 KiB |
@@ -1,6 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generated by IcoMoon.io -->
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
||||||
<path d="M18 23l3 3 10-10-10-10-3 3 7 7z"></path>
|
<path d="M18 23l3 3 10-10-10-10-3 3 7 7z"></path>
|
||||||
<path d="M14 9l-3-3-10 10 10 10 3-3-7-7z"></path>
|
<path d="M14 9l-3-3-10 10 10 10 3-3-7-7z"></path>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 248 B |
3
app/icons/equalizer.svg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
|
||||||
|
<path d="M448 128v-16c0-26.4-21.6-48-48-48h-160c-26.4 0-48 21.6-48 48v16h-192v128h192v16c0 26.4 21.6 48 48 48h160c26.4 0 48-21.6 48-48v-16h576v-128h-576zM256 256v-128h128v128h-128zM832 432c0-26.4-21.6-48-48-48h-160c-26.4 0-48 21.6-48 48v16h-576v128h576v16c0 26.4 21.6 48 48 48h160c26.4 0 48-21.6 48-48v-16h192v-128h-192v-16zM640 576v-128h128v128h-128zM448 752c0-26.4-21.6-48-48-48h-160c-26.4 0-48 21.6-48 48v16h-192v128h192v16c0 26.4 21.6 48 48 48h160c26.4 0 48-21.6 48-48v-16h576v-128h-576v-16zM256 896v-128h128v128h-128z"></path>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 646 B |
@@ -1,6 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generated by IcoMoon.io -->
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
||||||
<path d="M28 0h-28v32h32v-28l-4-4zM16 4h4v8h-4v-8zM28 28h-24v-24h2v10h18v-10h2.343l1.657 1.657v22.343z"></path>
|
<path d="M28 0h-28v32h32v-28l-4-4zM16 4h4v8h-4v-8zM28 28h-24v-24h2v10h18v-10h2.343l1.657 1.657v22.343z"></path>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 260 B |
3
app/icons/no-power.svg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
|
||||||
|
<path d="M437.020 74.98c-48.353-48.351-112.64-74.98-181.020-74.98s-132.667 26.629-181.020 74.98c-48.351 48.353-74.98 112.64-74.98 181.020s26.629 132.667 74.98 181.020c48.353 48.351 112.64 74.98 181.020 74.98s132.667-26.629 181.020-74.98c48.351-48.353 74.98-112.64 74.98-181.020s-26.629-132.667-74.98-181.020zM448 256c0 41.407-13.177 79.794-35.556 111.19l-267.633-267.634c31.396-22.379 69.782-35.556 111.189-35.556 105.869 0 192 86.131 192 192zM64 256c0-41.407 13.177-79.793 35.556-111.189l267.635 267.634c-31.397 22.378-69.784 35.555-111.191 35.555-105.869 0-192-86.131-192-192z"></path>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 697 B |
3
app/icons/power.svg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">
|
||||||
|
<path d="M192 0l-192 256h192l-128 256 448-320h-256l192-192z"></path>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 178 B |
@@ -1,6 +1,3 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="33" height="33" viewBox="0 0 33 33">
|
||||||
<!-- Generated by IcoMoon.io -->
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
|
||||||
<path d="M32 12h-12l4.485-4.485c-2.267-2.266-5.28-3.515-8.485-3.515s-6.219 1.248-8.485 3.515c-2.266 2.267-3.515 5.28-3.515 8.485s1.248 6.219 3.515 8.485c2.267 2.266 5.28 3.515 8.485 3.515s6.219-1.248 8.485-3.515c0.189-0.189 0.371-0.384 0.546-0.583l3.010 2.634c-2.933 3.349-7.239 5.464-12.041 5.464-8.837 0-16-7.163-16-16s7.163-16 16-16c4.418 0 8.418 1.791 11.313 4.687l4.687-4.687v12z"></path>
|
<path d="M32 12h-12l4.485-4.485c-2.267-2.266-5.28-3.515-8.485-3.515s-6.219 1.248-8.485 3.515c-2.266 2.267-3.515 5.28-3.515 8.485s1.248 6.219 3.515 8.485c2.267 2.266 5.28 3.515 8.485 3.515s6.219-1.248 8.485-3.515c0.189-0.189 0.371-0.384 0.546-0.583l3.010 2.634c-2.933 3.349-7.239 5.464-12.041 5.464-8.837 0-16-7.163-16-16s7.163-16 16-16c4.418 0 8.418 1.791 11.313 4.687l4.687-4.687v12z"></path>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 713 B After Width: | Height: | Size: 499 B |
6
app/icons/station-coriolis.svg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
|
||||||
|
<g>
|
||||||
|
<rect x="73.001" y="94.017" width="53.997" height="11.945"/>
|
||||||
|
<path d="M10.324,185.445l89.217,14.348l0.458,0.077l89.677-14.43L200,99.998l-10.338-89.765L100,0.129L10.34,10.233 L-0.001,99.986L10.324,185.445z M193.206,99.986L100,191.108L6.795,99.986L100,8.868L193.206,99.986z M6.82,107.775l87.583,85.624 l-78.983-12.702L6.82,107.775z M184.583,180.692l-78.992,12.712l87.587-85.634L184.583,180.692z M193.745,92.746L105.26,6.245 l79.339,8.938L193.745,92.746z M15.41,15.185L94.736,6.25L6.255,92.751L15.41,15.185z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 642 B |
7
app/icons/station-ocellus.svg
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
|
||||||
|
<g>
|
||||||
|
<path d="M100.002,200C155.139,200,200,155.142,200,100.001c0-55.143-44.861-100.002-99.998-100.002 C44.86-0.001-0.002,44.857-0.002,100.001C-0.001,155.142,44.86,200,100.002,200z M100.002,5.574 c52.063,0,94.423,42.359,94.423,94.427c0,52.067-42.361,94.422-94.423,94.422c-52.07,0-94.428-42.358-94.428-94.422 C5.574,47.933,47.933,5.574,100.002,5.574z"/>
|
||||||
|
<path d="M100.002,148.557c26.771,0,48.558-21.783,48.558-48.555c0-26.771-21.786-48.556-48.558-48.556 c-26.777,0-48.557,21.782-48.557,48.556C51.446,126.778,73.225,148.557,100.002,148.557z M100.002,57.015 c23.699,0,42.986,19.283,42.986,42.986c0,23.7-19.282,42.987-42.986,42.987c-23.705,0-42.991-19.282-42.991-42.987 C57.011,76.298,76.302,57.015,100.002,57.015z"/>
|
||||||
|
<rect x="73.404" y="93.985" width="53.197" height="12.033"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 912 B |
6
app/icons/station-orbis.svg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
|
||||||
|
<g>
|
||||||
|
<path d="M100.002,200c55.138,0,99.996-44.861,99.996-100c0-55.141-44.858-100-99.996-100 C44.861,0-0.001,44.857-0.001,100C0,155.139,44.861,200,100.002,200z M100.002,194.424c-35.465,0-66.413-19.663-82.552-48.651 l44.426-23.388c7.704,13.067,21.888,21.884,38.127,21.884c16.054,0,30.096-8.621,37.853-21.446l44.441,23.389 C166.092,174.961,135.282,194.424,100.002,194.424z M100.002,61.306c21.335,0,38.691,17.356,38.691,38.694 c0,21.338-17.364,38.691-38.691,38.691c-21.339,0-38.696-17.354-38.696-38.691C61.307,78.662,78.663,61.306,100.002,61.306z M194.422,100c0,14.802-3.427,28.808-9.521,41.287l-44.447-23.4c2.433-5.477,3.812-11.521,3.812-17.89 c0-23.578-18.539-42.852-41.8-44.145V5.636C153.392,6.956,194.422,48.762,194.422,100z M96.895,5.655v50.233 C73.938,57.491,55.73,76.635,55.73,100c0,6.187,1.286,12.081,3.592,17.434l-44.455,23.402C8.911,128.472,5.571,114.619,5.571,100 C5.577,48.972,46.261,7.297,96.895,5.655z"/>
|
||||||
|
<rect x="73.403" y="93.983" width="53.196" height="12.032"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
7
app/icons/station-outpost.svg
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
|
||||||
|
<g>
|
||||||
|
<path d="M145.137,59.126h4.498v6.995h5.576V46.556h-5.576v6.994h-4.498V16.328h-5.574v57.667h-15.411v14.824h-7.63 v-14.58h-13.044v14.58h-8.295v-14.58H82.138v14.58h-6.573v-14.58H59.072v14.58h-6.573v-14.58H39.458v36.338h13.041V94.391h6.573 v16.186h16.493V94.391h6.573v16.186h13.044V94.391h8.295v16.186h13.044V94.391h7.63v40.457l17.634,17.637h13.185v31.182h5.577 V73.996H145.14v-14.87H145.137z M154.97,146.907h-10.871l-14.376-14.376V79.57h25.247V146.907z"/>
|
||||||
|
<rect fill="#999999" x="147.703" y="16.328" width="5.572" height="7.345"/>
|
||||||
|
<rect fill="#999999" x="131.295" y="16.328" width="5.577" height="7.345"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 744 B |
@@ -1,6 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generated by IcoMoon.io -->
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="33" height="33" viewBox="0 0 33 33">
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 32 32">
|
|
||||||
<path d="M20 4.581v4.249c1.131 0.494 2.172 1.2 3.071 2.099 1.889 1.889 2.929 4.4 2.929 7.071s-1.040 5.182-2.929 7.071c-1.889 1.889-4.4 2.929-7.071 2.929s-5.182-1.040-7.071-2.929c-1.889-1.889-2.929-4.4-2.929-7.071s1.040-5.182 2.929-7.071c0.899-0.899 1.94-1.606 3.071-2.099v-4.249c-5.783 1.721-10 7.077-10 13.419 0 7.732 6.268 14 14 14s14-6.268 14-14c0-6.342-4.217-11.698-10-13.419zM14 0h4v16h-4z"></path>
|
<path d="M20 4.581v4.249c1.131 0.494 2.172 1.2 3.071 2.099 1.889 1.889 2.929 4.4 2.929 7.071s-1.040 5.182-2.929 7.071c-1.889 1.889-4.4 2.929-7.071 2.929s-5.182-1.040-7.071-2.929c-1.889-1.889-2.929-4.4-2.929-7.071s1.040-5.182 2.929-7.071c0.899-0.899 1.94-1.606 3.071-2.099v-4.249c-5.783 1.721-10 7.077-10 13.419 0 7.732 6.268 14 14 14s14-6.268 14-14c0-6.342-4.217-11.698-10-13.419zM14 0h4v16h-4z"></path>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 723 B After Width: | Height: | Size: 510 B |
@@ -5,8 +5,9 @@
|
|||||||
<link rel="stylesheet" href="/app.css">
|
<link rel="stylesheet" href="/app.css">
|
||||||
|
|
||||||
<!-- Standard headers -->
|
<!-- Standard headers -->
|
||||||
|
<meta name="description" content="A ship builder, outfitting and comparison tool for Elite Dangerous">
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<meta name="viewport" content="width = device-width, initial-scale = 1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||||
<link rel="manifest" href="/images/logo/manifest.json">
|
<link rel="manifest" href="/images/logo/manifest.json">
|
||||||
<link rel="icon" sizes="152x152 192x192" type="image/png" href="/images/logo/192x192.png">
|
<link rel="icon" sizes="152x152 192x192" type="image/png" href="/images/logo/192x192.png">
|
||||||
<link rel="shortcut icon" href="/images/logo/favicon.ico">
|
<link rel="shortcut icon" href="/images/logo/favicon.ico">
|
||||||
@@ -17,7 +18,6 @@
|
|||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="/images/logo/apple-touch-icon-precomposed.png">
|
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="/images/logo/apple-touch-icon-precomposed.png">
|
||||||
<link rel="apple-touch-icon" href="/images/logo/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="/images/logo/apple-touch-icon.png">
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/images/logo/apple-touch-icon-180x180.png">
|
|
||||||
<!-- iPhone, iPod Touch, portrait -->
|
<!-- iPhone, iPod Touch, portrait -->
|
||||||
<link href="/images/splash/320x460.png" media="(device-width: 320px) and (device-height: 480px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" rel="apple-touch-startup-image">
|
<link href="/images/splash/320x460.png" media="(device-width: 320px) and (device-height: 480px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" rel="apple-touch-startup-image">
|
||||||
<!-- iPhone, iPod Touch, landscape -->
|
<!-- iPhone, iPod Touch, landscape -->
|
||||||
@@ -56,16 +56,16 @@
|
|||||||
<body style="background-color:#000;">
|
<body style="background-color:#000;">
|
||||||
<div style="height: 0; width: 0; overflow:hidden"><%= svgContent %></div>
|
<div style="height: 0; width: 0; overflow:hidden"><%= svgContent %></div>
|
||||||
<shipyard-header></shipyard-header>
|
<shipyard-header></shipyard-header>
|
||||||
<div id="main" ui-view ng-click="bgClicked($event)"></div>
|
<div id="main" ui-view ng-click="bgClicked($event)" ng-style="{'font-size': sizeRatio + 'em'}"></div>
|
||||||
|
|
||||||
<div ui-view="modal" ng-click="bgClicked($event)"></div>
|
<div ui-view="modal" ng-click="bgClicked($event)"></div>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<div class="right">
|
<div class="right cap">
|
||||||
<a href="https://github.com/cmmcleod/coriolis" target="_blank" title="Coriolis Github Project">Version <%= version %> - <%= date %></a>
|
<a href="https://github.com/cmmcleod/coriolis/releases/" target="_blank" title="Coriolis Github Project"><span translate="version"></span> <%= version %> - <%= date %></a>
|
||||||
</div>
|
</div>
|
||||||
<div style="max-width:50%" class="l">
|
<div style="max-width:50%" class="l">
|
||||||
Coriolis Shipyard was created for non-commercial purposes. It is not endorsed by nor reflects the views or opinions of Frontier Developments.
|
Coriolis was created using assets and imagery from Elite: Dangerous, with the permission of Frontier Developments plc, for non-commercial purposes. It is not endorsed by nor reflects the views or opinions of Frontier Developments and no employee of Frontier Developments was involved in the making of it.
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|||||||
@@ -1,41 +1,84 @@
|
|||||||
angular.module('app', ['ui.router', 'ct.ui.router.extras.sticky', 'ui.sortable', 'shipyard', 'ngLodash', 'app.templates'])
|
angular.module('app', ['ui.router', 'ct.ui.router.extras.sticky', 'ui.sortable', 'shipyard', 'ngLodash', 'app.templates', 'pascalprecht.translate'])
|
||||||
.run(['$rootScope', '$location', '$window', '$document','$state','commonArray','shipPurpose','shipSize','hardPointClass','internalGroupMap','hardpointsGroupMap', function ($rootScope, $location, $window, $doc, $state, CArr, shipPurpose, sz, hpc, igMap, hgMap) {
|
.run(['$rootScope', '$location', '$window', '$document', '$state', '$translate', 'localeFormat', 'Persist', 'Discounts', 'Languages', 'SizeMap',
|
||||||
|
function($rootScope, $location, $window, $doc, $state, $translate, localeFormat, Persist, Discounts, Languages, SizeMap) {
|
||||||
|
// App is running as a standalone web app on tablet/mobile
|
||||||
|
var isStandAlone;
|
||||||
|
// This was causing issues on Windows phones ($window.external was causing Angular js to throw an exception). Backup is to try this and set isStandAlone to false if this fails.
|
||||||
|
try {
|
||||||
|
isStandAlone = $window.navigator.standalone || ($window.external && $window.external.msIsSiteMode && $window.external.msIsSiteMode());
|
||||||
|
} catch (ex) {
|
||||||
|
isStandAlone = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Redirect any state transition errors to the error controller/state
|
// Redirect any state transition errors to the error controller/state
|
||||||
$rootScope.$on('$stateChangeError', function(e, toState, toParams, fromState, fromParams, error){
|
$rootScope.$on('$stateChangeError', function(e, toState, toParams, fromState, fromParams, error) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$state.go('error', error, {location:false, reload:true}); // Go to error state, reload the controller, keep the current URL
|
$state.go('error', error, { location: false, reload: true }); // Go to error state, reload the controller, keep the current URL
|
||||||
});
|
});
|
||||||
|
|
||||||
// Track on Google analytics if available
|
// Track on Google analytics if available
|
||||||
$rootScope.$on('$stateChangeSuccess', function(e, to, toParams, from, fromParams) {
|
$rootScope.$on('$stateChangeSuccess', function(e, to, toParams, from, fromParams) {
|
||||||
$rootScope.prevState = { name: from.name, params: fromParams };
|
$rootScope.prevState = { name: from.name, params: fromParams };
|
||||||
if(to.url && $window.ga) { // Only track states that have a URL
|
|
||||||
ga('send', 'pageview', {page: $location.path()});
|
if (to.url) { // Only track states that have a URL
|
||||||
|
if ($window.ga) {
|
||||||
|
ga('send', 'pageview', { page: $location.path() });
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isStandAlone) {
|
||||||
|
// Persist the current state
|
||||||
|
Persist.setState({ name: to.name, params: toParams });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$rootScope.language = {
|
||||||
|
opts: Languages,
|
||||||
|
current: Languages[Persist.getLangCode()] ? Persist.getLangCode() : 'en'
|
||||||
|
};
|
||||||
|
$rootScope.localeFormat = d3.locale(localeFormat.get($rootScope.language.current));
|
||||||
|
updateNumberFormat();
|
||||||
|
|
||||||
// Global Reference variables
|
// Global Reference variables
|
||||||
$rootScope.CArr = CArr;
|
$rootScope.insurance = { opts: [{ name: 'standard', pct: 0.05 }, { name: 'alpha', pct: 0.025 }, { name: 'beta', pct: 0.0375 }] };
|
||||||
$rootScope.SP = shipPurpose;
|
$rootScope.discounts = { opts: Discounts };
|
||||||
$rootScope.SZ = sz;
|
$rootScope.sizeRatio = Persist.getSizeRatio();
|
||||||
$rootScope.HPC = hpc;
|
$rootScope.SZM = SizeMap;
|
||||||
$rootScope.igMap = igMap;
|
|
||||||
$rootScope.hgMap = hgMap;
|
|
||||||
$rootScope.title = 'Coriolis';
|
$rootScope.title = 'Coriolis';
|
||||||
|
|
||||||
|
$rootScope.changeLanguage = function() {
|
||||||
|
$translate.use($rootScope.language.current);
|
||||||
|
$rootScope.localeFormat = d3.locale(localeFormat.get($rootScope.language.current));
|
||||||
|
updateNumberFormat();
|
||||||
|
$rootScope.$broadcast('languageChanged', $rootScope.language.current);
|
||||||
|
};
|
||||||
|
|
||||||
// Formatters
|
// Formatters
|
||||||
$rootScope.fCrd = d3.format(',.0f');
|
|
||||||
$rootScope.fPwr = d3.format(',.2f');
|
|
||||||
$rootScope.fRound = function(d) { return d3.round(d, 2); };
|
|
||||||
$rootScope.fRound4 = function(d) { return d3.round(d, 4); };
|
|
||||||
$rootScope.fPct = d3.format('.2%');
|
|
||||||
$rootScope.fRPct = d3.format('%');
|
$rootScope.fRPct = d3.format('%');
|
||||||
$rootScope.fTime = function(d) { return Math.floor(d/60) + ":" + ("00" + Math.floor(d%60)).substr(-2,2); };
|
$rootScope.fTime = function(d) { return Math.floor(d / 60) + ':' + ('00' + Math.floor(d % 60)).substr(-2, 2); };
|
||||||
|
|
||||||
|
function updateNumberFormat() {
|
||||||
|
var locale = $rootScope.localeFormat;
|
||||||
|
var fGen = $rootScope.fGen = locale.numberFormat('n');
|
||||||
|
$rootScope.fCrd = locale.numberFormat(',.0f');
|
||||||
|
$rootScope.fPwr = locale.numberFormat(',.2f');
|
||||||
|
$rootScope.fRound = function(d) { return fGen(d3.round(d, 2)); };
|
||||||
|
$rootScope.fPct = locale.numberFormat('.2%');
|
||||||
|
$rootScope.f1Pct = locale.numberFormat('.1%');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the name of the component mounted in the specified slot
|
||||||
|
* @param {Object} slot The slot object
|
||||||
|
* @return {String} The component name
|
||||||
|
*/
|
||||||
|
$rootScope.cName = function(slot) {
|
||||||
|
return $translate.instant(slot.c ? slot.c.name ? slot.c.name : slot.c.grp : null);
|
||||||
|
};
|
||||||
|
|
||||||
// Global Event Listeners
|
// Global Event Listeners
|
||||||
$doc.bind('keyup', function (e) {
|
$doc.bind('keyup', function(e) {
|
||||||
if(e.keyCode == 27) { // Escape Key
|
if (e.keyCode == 27) { // Escape Key
|
||||||
$rootScope.$broadcast('close', e);
|
$rootScope.$broadcast('close', e);
|
||||||
$rootScope.$apply();
|
$rootScope.$apply();
|
||||||
} else {
|
} else {
|
||||||
@@ -43,7 +86,7 @@ angular.module('app', ['ui.router', 'ct.ui.router.extras.sticky', 'ui.sortable',
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.bgClicked = function (e) {
|
$rootScope.bgClicked = function(e) {
|
||||||
$rootScope.$broadcast('close', e);
|
$rootScope.$broadcast('close', e);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -58,4 +101,14 @@ angular.module('app', ['ui.router', 'ct.ui.router.extras.sticky', 'ui.sortable',
|
|||||||
}, false);
|
}, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isStandAlone) {
|
||||||
|
var state = Persist.getState();
|
||||||
|
// If a previous state has been stored, load that state
|
||||||
|
if (state && state.name && state.params) {
|
||||||
|
$state.go(state.name, state.params, { location: 'replace' });
|
||||||
|
} else {
|
||||||
|
$state.go('shipyard', null, { location: 'replace' }); // Default to home page
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* Sets up the routes and handlers before the Angular app is kicked off.
|
* Sets up the routes and handlers before the Angular app is kicked off.
|
||||||
*/
|
*/
|
||||||
angular.module('app').config(['$provide','$stateProvider', '$urlRouterProvider', '$locationProvider', 'ShipsDB', function ($provide, $stateProvider, $urlRouterProvider, $locationProvider, ships) {
|
angular.module('app').config(['$provide', '$stateProvider', '$urlRouterProvider', '$locationProvider', 'ShipsDB', function($provide, $stateProvider, $urlRouterProvider, $locationProvider, ships) {
|
||||||
// Use HTML5 push and replace state if possible
|
// Use HTML5 push and replace state if possible
|
||||||
$locationProvider.html5Mode({enabled: true, requireBase: false});
|
$locationProvider.html5Mode({ enabled: true, requireBase: false });
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set up all states and their routes.
|
* Set up all states and their routes.
|
||||||
*/
|
*/
|
||||||
@@ -11,13 +12,13 @@ angular.module('app').config(['$provide','$stateProvider', '$urlRouterProvider',
|
|||||||
.state('outfit', {
|
.state('outfit', {
|
||||||
url: '/outfit/:shipId/:code?bn',
|
url: '/outfit/:shipId/:code?bn',
|
||||||
params: {
|
params: {
|
||||||
shipId: { value: 'sidewinder', squash: false}, // Allow 'shipId' parameter to default to sidewinder
|
shipId: { value: 'sidewinder', squash: false }, // Allow 'shipId' parameter to default to sidewinder
|
||||||
code: { value: null, squash: true } // Allow 'code' parameter to be empty/optional
|
code: { value: null, squash: true } // Allow 'code' parameter to be empty/optional
|
||||||
},
|
},
|
||||||
templateUrl: 'views/page-outfit.html',
|
templateUrl: 'views/page-outfit.html',
|
||||||
controller: 'OutfitController',
|
controller: 'OutfitController',
|
||||||
resolve: {
|
resolve: {
|
||||||
shipId: ['$stateParams',function ($p) { // Ensure ship exists before loading controller
|
shipId: ['$stateParams', function($p) { // Ensure ship exists before loading controller
|
||||||
if (!ships[$p.shipId]) {
|
if (!ships[$p.shipId]) {
|
||||||
throw { type: 'no-ship', message: $p.shipId };
|
throw { type: 'no-ship', message: $p.shipId };
|
||||||
}
|
}
|
||||||
@@ -28,7 +29,7 @@ angular.module('app').config(['$provide','$stateProvider', '$urlRouterProvider',
|
|||||||
.state('compare', {
|
.state('compare', {
|
||||||
url: '/compare/:name',
|
url: '/compare/:name',
|
||||||
params: {
|
params: {
|
||||||
name: {value: null, squash: true }
|
name: { value: null, squash: true }
|
||||||
},
|
},
|
||||||
templateUrl: 'views/page-comparison.html',
|
templateUrl: 'views/page-comparison.html',
|
||||||
controller: 'ComparisonController',
|
controller: 'ComparisonController',
|
||||||
@@ -41,26 +42,26 @@ angular.module('app').config(['$provide','$stateProvider', '$urlRouterProvider',
|
|||||||
sticky: true
|
sticky: true
|
||||||
})
|
})
|
||||||
.state('shipyard', { url: '/', templateUrl: 'views/page-shipyard.html', controller: 'ShipyardController', sticky: true })
|
.state('shipyard', { url: '/', templateUrl: 'views/page-shipyard.html', controller: 'ShipyardController', sticky: true })
|
||||||
.state('error', { params: {type:null, message:null, details: null }, templateUrl: 'views/page-error.html', controller: 'ErrorController', sticky: true })
|
.state('error', { params: { type: null, message: null, details: null }, templateUrl: 'views/page-error.html', controller: 'ErrorController', sticky: true })
|
||||||
|
|
||||||
// Modal States and views
|
// Modal States and views
|
||||||
.state('modal', { abstract: true, views:{ "modal": { templateUrl: "views/_modal.html", controller: 'ModalController' } } })
|
.state('modal', { abstract: true, views: { 'modal': { templateUrl: 'views/_modal.html', controller: 'ModalController' } } })
|
||||||
.state('modal.about', { views: { "modal-content": { templateUrl: "views/modal-about.html" } } })
|
.state('modal.about', { views: { 'modal-content': { templateUrl: 'views/modal-about.html' } } })
|
||||||
.state('modal.export', { params: {title:null, data: null, promise: null}, views: { "modal-content": { templateUrl: "views/modal-export.html", controller: 'ExportController' } } })
|
.state('modal.export', { params: { title: null, data: null, promise: null, description: null }, views: { 'modal-content': { templateUrl: 'views/modal-export.html', controller: 'ExportController' } } })
|
||||||
.state('modal.import', { params: {obj:null}, views: { "modal-content": { templateUrl: "views/modal-import.html", controller: 'ImportController' } } })
|
.state('modal.import', { params: { obj: null }, views: { 'modal-content': { templateUrl: 'views/modal-import.html', controller: 'ImportController' } } })
|
||||||
.state('modal.link', { params: {url:null}, views: { "modal-content": { templateUrl: "views/modal-link.html", controller: 'LinkController' } } })
|
.state('modal.link', { params: { url: null }, views: { 'modal-content': { templateUrl: 'views/modal-link.html', controller: 'LinkController' } } })
|
||||||
.state('modal.delete', { views: { "modal-content": { templateUrl: "views/modal-delete.html", controller: 'DeleteController' } } });
|
.state('modal.delete', { views: { 'modal-content': { templateUrl: 'views/modal-delete.html', controller: 'DeleteController' } } });
|
||||||
|
|
||||||
|
|
||||||
// Redirects
|
// Redirects
|
||||||
$urlRouterProvider.when('/outfit','/outfit/sidewinder');
|
$urlRouterProvider.when('/outfit', '/outfit/sidewinder');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 404 Handler - Keep current URL/ do not redirect, change to error state.
|
* 404 Handler - Keep current URL/ do not redirect, change to error state.
|
||||||
*/
|
*/
|
||||||
$urlRouterProvider.otherwise(function ($injector, $location) {
|
$urlRouterProvider.otherwise(function($injector, $location) {
|
||||||
// Go to error state, reload the controller, keep the current URL
|
// Go to error state, reload the controller, keep the current URL
|
||||||
$injector.get('$state').go('error', { type: 404, message: null, details: null }, {location:false, reload:true});
|
$injector.get('$state').go('error', { type: 404, message: null, details: null }, { location: false, reload: true });
|
||||||
return $location.path;
|
return $location.path;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -69,10 +70,10 @@ angular.module('app').config(['$provide','$stateProvider', '$urlRouterProvider',
|
|||||||
* redirects uncaught errors to the error page.
|
* redirects uncaught errors to the error page.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$provide.decorator('$exceptionHandler', ['$delegate', '$injector', function ($delegate, $injector) {
|
$provide.decorator('$exceptionHandler', ['$delegate', '$injector', function($delegate, $injector) {
|
||||||
return function(err, cause) {
|
return function(err, cause) {
|
||||||
// Go to error state, reload the controller, keep the current URL
|
// Go to error state, reload the controller, keep the current URL
|
||||||
$injector.get('$state').go('error', {type:null, message: err.message, details: err.stack }, {location:false, reload:true});
|
$injector.get('$state').go('error', { type: null, message: err.message, details: err.stack }, { location: false, reload: true });
|
||||||
$delegate(err, cause);
|
$delegate(err, cause);
|
||||||
};
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
@@ -1,48 +1,54 @@
|
|||||||
angular.module('app').controller('ComparisonController', ['lodash', '$rootScope', '$filter', '$scope', '$state', '$stateParams', 'Utils', 'ShipFacets', 'ShipsDB', 'Ship', 'Persist', 'Serializer', function (_, $rootScope, $filter, $scope, $state, $stateParams, Utils, ShipFacets, Ships, Ship, Persist, Serializer) {
|
angular.module('app').controller('ComparisonController', ['lodash', '$rootScope', '$filter', '$scope', '$state', '$stateParams', '$translate', 'Utils', 'ShipFacets', 'ShipsDB', 'Ship', 'Persist', 'Serializer', function(_, $rootScope, $filter, $scope, $state, $stateParams, $translate, Utils, ShipFacets, Ships, Ship, Persist, Serializer) {
|
||||||
$rootScope.title = 'Coriolis - Compare';
|
$rootScope.title = 'Coriolis - Compare';
|
||||||
$scope.predicate = 'name'; // Sort by ship name as default
|
$scope.predicate = 'name'; // Sort by ship name as default
|
||||||
$scope.desc = false;
|
$scope.desc = false;
|
||||||
$scope.facetSortOpts = { containment: '#facet-container', orderChanged: function () { $scope.saved = false; } };
|
$scope.facetSortOpts = { containment: '#facet-container', orderChanged: function() { $scope.saved = false; } };
|
||||||
$scope.builds = [];
|
$scope.builds = [];
|
||||||
$scope.unusedBuilds = [];
|
$scope.unusedBuilds = [];
|
||||||
$scope.name = $stateParams.name;
|
$scope.name = $stateParams.name;
|
||||||
$scope.compareMode = !$stateParams.code;
|
$scope.compareMode = !$stateParams.code;
|
||||||
$scope.importObj = {}; // Used for importing comparison builds (from permalinked comparison)
|
$scope.importObj = {}; // Used for importing comparison builds (from permalinked comparison)
|
||||||
var defaultFacets = [9,6,4,1,3,2]; // Reverse order of Armour, Shields, Speed, Jump Range, Cargo Capacity, Cost
|
var defaultFacets = [9, 6, 4, 1, 3, 2]; // Reverse order of Armour, Shields, Speed, Jump Range, Cargo Capacity, Cost
|
||||||
var facets = $scope.facets = angular.copy(ShipFacets);
|
var facets = $scope.facets = angular.copy(ShipFacets);
|
||||||
|
var shipId, buildName, comparisonData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add an existing build to the comparison. The build must be saved locally.
|
* Add an existing build to the comparison. The build must be saved locally.
|
||||||
* @param {string} shipId The unique ship key/id
|
* @param {string} id The unique ship key/id
|
||||||
* @param {string} buildName The build name
|
* @param {string} name The build name
|
||||||
*/
|
*/
|
||||||
$scope.addBuild = function (shipId, buildName, code) {
|
$scope.addBuild = function(id, name, code) {
|
||||||
var data = Ships[shipId]; // Get ship properties
|
var data = Ships[id]; // Get ship properties
|
||||||
code = code? code : Persist.builds[shipId][buildName]; // Retrieve build code if not passed
|
code = code ? code : Persist.builds[id][name]; // Retrieve build code if not passed
|
||||||
var b = new Ship(shipId, data.properties, data.slots); // Create a new Ship instance
|
|
||||||
|
if (!code) { // No build found
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var b = new Ship(id, data.properties, data.slots); // Create a new Ship instance
|
||||||
Serializer.toShip(b, code); // Populate components from code
|
Serializer.toShip(b, code); // Populate components from code
|
||||||
// Extend ship instance and add properties below
|
// Extend ship instance and add properties below
|
||||||
b.buildName = buildName;
|
b.buildName = name;
|
||||||
b.code = code;
|
b.code = code;
|
||||||
b.pctRetracted = b.powerRetracted / b.powerAvailable;
|
b.pctRetracted = b.powerRetracted / b.powerAvailable;
|
||||||
b.pctDeployed = b.powerDeployed / b.powerAvailable;
|
b.pctDeployed = b.powerDeployed / b.powerAvailable;
|
||||||
$scope.builds.push(b); // Add ship build to comparison
|
$scope.builds.push(b); // Add ship build to comparison
|
||||||
$scope.builds = $filter('orderBy')($scope.builds, $scope.predicate, $scope.desc); // Resort
|
$scope.builds = $filter('orderBy')($scope.builds, $scope.predicate, $scope.desc); // Resort
|
||||||
_.remove($scope.unusedBuilds, function (b) { // Remove from unused builds
|
_.remove($scope.unusedBuilds, function(o) { // Remove from unused builds
|
||||||
return b.id == shipId && b.buildName == buildName;
|
return o.id == id && o.buildName == name;
|
||||||
});
|
});
|
||||||
$scope.saved = false;
|
$scope.saved = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a build from the comparison
|
* Removes a build from the comparison
|
||||||
* @param {string} shipId The unique ship key/id
|
* @param {string} id The unique ship key/id
|
||||||
* @param {string} buildName The build name
|
* @param {string} name The build name
|
||||||
*/
|
*/
|
||||||
$scope.removeBuild = function (shipId, buildName) {
|
$scope.removeBuild = function(id, name) {
|
||||||
_.remove($scope.builds, function (b) {
|
_.remove($scope.builds, function(s) {
|
||||||
if (b.id == shipId && b.buildName == buildName) {
|
if (s.id == id && s.buildName == name) {
|
||||||
$scope.unusedBuilds.push({id: shipId, buildName: buildName, name: b.name}); // Add build back to unused builds
|
$scope.unusedBuilds.push({ id: id, buildName: name, name: s.name }); // Add build back to unused builds
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@@ -54,7 +60,7 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
* Toggles the selected the set of facets used in the comparison
|
* Toggles the selected the set of facets used in the comparison
|
||||||
* @param {number} i The index of the facet in facets
|
* @param {number} i The index of the facet in facets
|
||||||
*/
|
*/
|
||||||
$scope.toggleFacet = function (i) {
|
$scope.toggleFacet = function(i) {
|
||||||
facets[i].active = !facets[i].active;
|
facets[i].active = !facets[i].active;
|
||||||
$scope.tblUpdate = !$scope.tblUpdate; // Simple switch to trigger the table to update
|
$scope.tblUpdate = !$scope.tblUpdate; // Simple switch to trigger the table to update
|
||||||
$scope.saved = false;
|
$scope.saved = false;
|
||||||
@@ -64,12 +70,12 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
* Click handler for sorting by facets in the table
|
* Click handler for sorting by facets in the table
|
||||||
* @param {object} e Event object
|
* @param {object} e Event object
|
||||||
*/
|
*/
|
||||||
$scope.handleClick = function (e) {
|
$scope.handleClick = function(e) {
|
||||||
var elem = angular.element(e.target);
|
var elem = angular.element(e.target);
|
||||||
if(elem.attr('prop')) { // Get component ID
|
if (elem.attr('prop')) { // Get component ID
|
||||||
$scope.sort(elem.attr('prop'));
|
$scope.sort(elem.attr('prop'));
|
||||||
}
|
|
||||||
else if (elem.attr('del')) { // Delete index
|
} else if (elem.attr('del')) { // Delete index
|
||||||
$scope.removeBuild(elem.attr('del'));
|
$scope.removeBuild(elem.attr('del'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -78,8 +84,8 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
* Sort the comparison array based on the selected facet / ship property
|
* Sort the comparison array based on the selected facet / ship property
|
||||||
* @param {string} key Ship property
|
* @param {string} key Ship property
|
||||||
*/
|
*/
|
||||||
$scope.sort = function (key) {
|
$scope.sort = function(key) {
|
||||||
$scope.desc = ($scope.predicate == key)? !$scope.desc : $scope.desc;
|
$scope.desc = $scope.predicate == key ? !$scope.desc : $scope.desc;
|
||||||
$scope.predicate = key;
|
$scope.predicate = key;
|
||||||
$scope.builds = $filter('orderBy')($scope.builds, $scope.predicate, $scope.desc);
|
$scope.builds = $filter('orderBy')($scope.builds, $scope.predicate, $scope.desc);
|
||||||
};
|
};
|
||||||
@@ -94,12 +100,12 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
}
|
}
|
||||||
var selectedFacets = [];
|
var selectedFacets = [];
|
||||||
facets.forEach(function(f) {
|
facets.forEach(function(f) {
|
||||||
if(f.active) {
|
if (f.active) {
|
||||||
selectedFacets.unshift(f.index);
|
selectedFacets.unshift(f.index);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Persist.saveComparison($scope.name, $scope.builds, selectedFacets);
|
Persist.saveComparison($scope.name, $scope.builds, selectedFacets);
|
||||||
$state.go('compare', {name: $scope.name}, {location:'replace', notify:false});
|
$state.go('compare', { name: $scope.name }, { location: 'replace', notify: false });
|
||||||
$scope.saved = true;
|
$scope.saved = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -108,7 +114,7 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
*/
|
*/
|
||||||
$scope.delete = function() {
|
$scope.delete = function() {
|
||||||
Persist.deleteComparison($scope.name);
|
Persist.deleteComparison($scope.name);
|
||||||
$state.go('compare', {name: null}, {location:'replace', reload:true});
|
$state.go('compare', { name: null }, { location: 'replace', reload: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -134,7 +140,7 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
*/
|
*/
|
||||||
$scope.permalink = function(e) {
|
$scope.permalink = function(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
$state.go('modal.link', {url: genPermalink()});
|
$state.go('modal.link', { url: genPermalink() });
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -147,14 +153,14 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
// Make a request to goo.gl to shorten the URL, returns a promise
|
// Make a request to goo.gl to shorten the URL, returns a promise
|
||||||
var promise = Utils.shortenUrl( genPermalink()).then(
|
var promise = Utils.shortenUrl( genPermalink()).then(
|
||||||
function (shortUrl) {
|
function(shortUrl) {
|
||||||
return Utils.comparisonBBCode(facets, $scope.builds, shortUrl);
|
return Utils.comparisonBBCode(facets, $scope.builds, shortUrl);
|
||||||
},
|
},
|
||||||
function (e) {
|
function(err) {
|
||||||
return 'Error - ' + e.statusText;
|
return 'Error - ' + err.statusText;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
$state.go('modal.export', {promise: promise, title:'Forum BBCode'});
|
$state.go('modal.export', { promise: promise, title: $translate.instant('FORUM') + ' BBCode' });
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -164,7 +170,7 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
function genPermalink() {
|
function genPermalink() {
|
||||||
var selectedFacets = [];
|
var selectedFacets = [];
|
||||||
facets.forEach(function(f) {
|
facets.forEach(function(f) {
|
||||||
if(f.active) {
|
if (f.active) {
|
||||||
selectedFacets.unshift(f.index);
|
selectedFacets.unshift(f.index);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -175,7 +181,7 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
$scope.predicate,
|
$scope.predicate,
|
||||||
$scope.desc
|
$scope.desc
|
||||||
);
|
);
|
||||||
return $state.href('comparison', {code: code}, {absolute:true});
|
return $state.href('comparison', { code: code }, { absolute: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Event listeners */
|
/* Event listeners */
|
||||||
@@ -183,8 +189,11 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
$scope.showBuilds = false;
|
$scope.showBuilds = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$scope.$on('languageChanged', function() {
|
||||||
|
$scope.tblUpdate = !$scope.tblUpdate; // Simple switch to trigger the table to update
|
||||||
|
});
|
||||||
|
|
||||||
/* Initialization */
|
/* Initialization */
|
||||||
var shipId, buildName, comparisonData;
|
|
||||||
if ($scope.compareMode) {
|
if ($scope.compareMode) {
|
||||||
if ($scope.name == 'all') {
|
if ($scope.name == 'all') {
|
||||||
for (shipId in Persist.builds) {
|
for (shipId in Persist.builds) {
|
||||||
@@ -195,13 +204,13 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
} else {
|
} else {
|
||||||
for (shipId in Persist.builds) {
|
for (shipId in Persist.builds) {
|
||||||
for (buildName in Persist.builds[shipId]) {
|
for (buildName in Persist.builds[shipId]) {
|
||||||
$scope.unusedBuilds.push({id: shipId, buildName: buildName, name: Ships[shipId].properties.name});
|
$scope.unusedBuilds.push({ id: shipId, buildName: buildName, name: Ships[shipId].properties.name });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
comparisonData = Persist.getComparison($scope.name);
|
comparisonData = Persist.getComparison($scope.name);
|
||||||
if (comparisonData) {
|
if (comparisonData) {
|
||||||
defaultFacets = comparisonData.facets;
|
defaultFacets = comparisonData.facets;
|
||||||
comparisonData.builds.forEach(function (b) {
|
comparisonData.builds.forEach(function(b) {
|
||||||
$scope.addBuild(b.shipId, b.buildName);
|
$scope.addBuild(b.shipId, b.buildName);
|
||||||
});
|
});
|
||||||
$scope.saved = true;
|
$scope.saved = true;
|
||||||
@@ -214,9 +223,9 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
$scope.name = comparisonData.n;
|
$scope.name = comparisonData.n;
|
||||||
$scope.predicate = comparisonData.p;
|
$scope.predicate = comparisonData.p;
|
||||||
$scope.desc = comparisonData.d;
|
$scope.desc = comparisonData.d;
|
||||||
comparisonData.b.forEach(function (build) {
|
comparisonData.b.forEach(function(build) {
|
||||||
$scope.addBuild(build.s, build.n, build.c);
|
$scope.addBuild(build.s, build.n, build.c);
|
||||||
if(!$scope.importObj[build.s]) {
|
if (!$scope.importObj[build.s]) {
|
||||||
$scope.importObj[build.s] = {};
|
$scope.importObj[build.s] = {};
|
||||||
}
|
}
|
||||||
$scope.importObj[build.s][build.n] = build.c;
|
$scope.importObj[build.s][build.n] = build.c;
|
||||||
@@ -226,9 +235,9 @@ angular.module('app').controller('ComparisonController', ['lodash', '$rootScope'
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Replace fmt with actual format function as defined in rootScope and retain original index
|
// Replace fmt with actual format function as defined in rootScope and retain original index
|
||||||
facets.forEach(function(f,i) { f.fmt = $rootScope[f.fmt]; f.index = i; });
|
facets.forEach(function(f, i) { f.index = i; });
|
||||||
// Remove default facets, mark as active, and add them back in selected order
|
// Remove default facets, mark as active, and add them back in selected order
|
||||||
_.pullAt(facets, defaultFacets).forEach(function (f) { f.active = true; facets.unshift(f); });
|
_.pullAt(facets, defaultFacets).forEach(function(f) { f.active = true; facets.unshift(f); });
|
||||||
$scope.builds = $filter('orderBy')($scope.builds, $scope.predicate, $scope.desc);
|
$scope.builds = $filter('orderBy')($scope.builds, $scope.predicate, $scope.desc);
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
angular.module('app').controller('DeleteController', ['$scope', 'Persist', function ($scope, Persist) {
|
angular.module('app').controller('DeleteController', ['$scope', 'Persist', function($scope, Persist) {
|
||||||
$scope.deleteAll = function () {
|
$scope.deleteAll = function() {
|
||||||
Persist.deleteAll();
|
Persist.deleteAll();
|
||||||
$scope.$parent.dismiss();
|
$scope.$parent.dismiss();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
angular.module('app')
|
angular.module('app')
|
||||||
.controller('ErrorController', ['$window','$rootScope','$scope','$stateParams', '$location', function ($window, $rootScope, $scope, $p, $location) {
|
.controller('ErrorController', ['$window', '$rootScope', '$scope', '$stateParams', '$location', function($window, $rootScope, $scope, $p, $location) {
|
||||||
$rootScope.title = 'Error';
|
$rootScope.title = 'Error';
|
||||||
$scope.path = $location.path();
|
$scope.path = $location.path();
|
||||||
$scope.type = $p.type || 'unknown';
|
$scope.type = $p.type || 'unknown';
|
||||||
@@ -21,7 +21,7 @@ angular.module('app')
|
|||||||
$scope.details = $p.details;
|
$scope.details = $p.details;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$scope.msgPre = "Uh, Jameson, we have a problem..";
|
$scope.msgPre = 'Uh, Jameson, we have a problem..';
|
||||||
$scope.errorMessage = $p.message;
|
$scope.errorMessage = $p.message;
|
||||||
$scope.details = $p.details;
|
$scope.details = $p.details;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
angular.module('app').controller('ExportController', ['$scope', '$stateParams', function ($scope, $stateParams) {
|
angular.module('app').controller('ExportController', ['$scope', '$stateParams', function($scope, $stateParams) {
|
||||||
|
|
||||||
$scope.title = $stateParams.title || 'Export';
|
$scope.title = $stateParams.title || 'Export';
|
||||||
|
$scope.description = $stateParams.description;
|
||||||
|
|
||||||
if ($stateParams.promise) {
|
if ($stateParams.promise) {
|
||||||
$scope.export = 'Generating...';
|
$scope.export = 'Generating...';
|
||||||
$stateParams.promise.then(function(data){
|
$stateParams.promise.then(function(data) {
|
||||||
$scope.export = data;
|
$scope.export = (typeof data === 'object') ? angular.toJson(data, true) : data;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$scope.export = angular.toJson($stateParams.data, true);
|
$scope.export = angular.toJson($stateParams.data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.onTextClick = function ($event) {
|
$scope.onTextClick = function($event) {
|
||||||
$event.target.select();
|
$event.target.select();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,67 +1,246 @@
|
|||||||
angular.module('app').controller('ImportController', ['$scope', '$stateParams', 'ShipsDB', 'Ship', 'Persist', 'Serializer', function ($scope, $stateParams, Ships, Ship, Persist, Serializer) {
|
angular.module('app').controller('ImportController', ['lodash', '$rootScope', '$scope', '$stateParams', 'ShipsDB', 'Ship', 'Components', 'GroupMap', 'Persist', 'Serializer', function(_, $rootScope, $scope, $stateParams, Ships, Ship, Components, GroupMap, Persist, Serializer) {
|
||||||
$scope.jsonValid = false;
|
$scope.importValid = false;
|
||||||
$scope.importData = null;
|
$scope.importString = null;
|
||||||
$scope.errorMsg = null;
|
$scope.errorMsg = null;
|
||||||
$scope.canEdit = true;
|
$scope.canEdit = true;
|
||||||
$scope.builds = $stateParams.obj || null;
|
$scope.builds = $stateParams.obj || null;
|
||||||
$scope.ships = Ships;
|
$scope.ships = Ships;
|
||||||
|
|
||||||
$scope.validateJson = function() {
|
var textBuildRegex = new RegExp('^\\[([\\w \\-]+)\\]\n');
|
||||||
var importObj = null;
|
var lineRegex = new RegExp('^([\\dA-Z]{1,2}): (\\d)([A-I])[/]?([FGT])?([SD])? ([\\w\\- ]+)');
|
||||||
$scope.jsonValid = false;
|
var mountMap = { 'H': 4, 'L': 3, 'M': 2, 'S': 1, 'U': 0 };
|
||||||
$scope.errorMsg = null;
|
var standardMap = { 'RB': 0, 'TM': 1, 'FH': 2, 'EC': 3, 'PC': 4, 'SS': 5, 'FS': 6 };
|
||||||
$scope.builds = null;
|
var bhMap = { 'lightweight alloy': 0, 'reinforced alloy': 1, 'military grade composite': 2, 'mirrored surface composite': 3, 'reactive surface composite': 4 };
|
||||||
|
|
||||||
if (!$scope.importData) { return; }
|
function isEmptySlot(slot) {
|
||||||
|
return slot.maxClass == this && slot.c === null;
|
||||||
try {
|
|
||||||
importObj = angular.fromJson($scope.importData);
|
|
||||||
} catch (e) {
|
|
||||||
$scope.errorMsg = 'Cannot Parse JSON!';
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(typeof importObj != 'object') {
|
function equalsIgnoreCase(str) {
|
||||||
$scope.errorMsg = 'Must be an object!';
|
return str.toLowerCase() == this.toLowerCase();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!importObj.builds || !Object.keys(importObj.builds).length)) {
|
function validateBuild(shipId, code, name) {
|
||||||
$scope.errorMsg = 'No builds in data';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var shipId in importObj.builds) {
|
|
||||||
var shipData = Ships[shipId];
|
var shipData = Ships[shipId];
|
||||||
if (shipData) {
|
|
||||||
for (var buildName in importObj.builds[shipId]) {
|
if (!shipData) {
|
||||||
if (typeof importObj.builds[shipId][buildName] != 'string') {
|
throw '"' + shipId + '" is not a valid Ship Id!';
|
||||||
$scope.errorMsg = shipData.properties.name + ' build "' + buildName + '" must be a string!';
|
}
|
||||||
return;
|
if (typeof name != 'string' || name.length == 0) {
|
||||||
|
throw shipData.properties.name + ' build "' + name + '" must be a string at least 1 character long!';
|
||||||
|
}
|
||||||
|
if (typeof code != 'string' || code.length < 10) {
|
||||||
|
throw shipData.properties.name + ' build "' + name + '" is not valid!';
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
// Actually build the ship with the code to ensure it's valid
|
Serializer.toShip(new Ship(shipId, shipData.properties, shipData.slots), code);
|
||||||
Serializer.toShip(new Ship(shipId, shipData.properties, shipData.slots), importObj.builds[shipId][buildName]);
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
$scope.errorMsg = shipData.properties.name + ' build "' + buildName + '" is not valid!';
|
throw shipData.properties.name + ' build "' + name + '" is not valid!';
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function detailedJsonToBuild(detailedBuild) {
|
||||||
|
var ship;
|
||||||
|
if (!detailedBuild.name) {
|
||||||
|
throw 'Build Name missing!';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!detailedBuild.name.trim()) {
|
||||||
|
throw 'Build Name must be a string at least 1 character long!';
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
ship = Serializer.fromDetailedBuild(detailedBuild);
|
||||||
|
} catch (e) {
|
||||||
|
throw detailedBuild.ship + ' Build "' + detailedBuild.name + '": Invalid data';
|
||||||
|
}
|
||||||
|
|
||||||
|
return { shipId: ship.id, name: detailedBuild.name, code: Serializer.fromShip(ship) };
|
||||||
|
}
|
||||||
|
|
||||||
|
function importBackup(importData) {
|
||||||
|
if (importData.builds && typeof importData.builds == 'object') {
|
||||||
|
for (var shipId in importData.builds) {
|
||||||
|
for (var buildName in importData.builds[shipId]) {
|
||||||
|
validateBuild(shipId, importData.builds[shipId][buildName], buildName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$scope.builds = importData.builds;
|
||||||
|
} else {
|
||||||
|
throw 'builds must be an object!';
|
||||||
|
}
|
||||||
|
if (importData.comparisons) {
|
||||||
|
for (var compName in importData.comparisons) {
|
||||||
|
var comparison = importData.comparisons[compName];
|
||||||
|
for (var i = 0, l = comparison.builds.length; i < l; i++) {
|
||||||
|
var build = comparison.builds[i];
|
||||||
|
if (!importData.builds[build.shipId] || !importData.builds[build.shipId][build.buildName]) {
|
||||||
|
throw build.shipId + ' build "' + build.buildName + '" data is missing!';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$scope.comparisons = importData.comparisons;
|
||||||
|
}
|
||||||
|
if (importData.discounts instanceof Array && importData.discounts.length == 2) {
|
||||||
|
$scope.discounts = importData.discounts;
|
||||||
|
}
|
||||||
|
if (typeof importData.insurance == 'string' && importData.insurance.length > 3) {
|
||||||
|
$scope.insurance = importData.insurance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function importDetailedArray(importArr) {
|
||||||
|
var builds = {};
|
||||||
|
for (var i = 0, l = importArr.length; i < l; i++) {
|
||||||
|
var build = detailedJsonToBuild(importArr[i]);
|
||||||
|
if (!builds[build.shipId]) {
|
||||||
|
builds[build.shipId] = {};
|
||||||
|
}
|
||||||
|
builds[build.shipId][build.name] = build.code;
|
||||||
|
}
|
||||||
|
$scope.builds = builds;
|
||||||
|
}
|
||||||
|
|
||||||
|
function importTextBuild(buildStr) {
|
||||||
|
var buildName = textBuildRegex.exec(buildStr)[1].trim();
|
||||||
|
var shipName = buildName.toLowerCase();
|
||||||
|
var shipId = null;
|
||||||
|
|
||||||
|
for (var sId in Ships) {
|
||||||
|
if (Ships[sId].properties.name.toLowerCase() == shipName) {
|
||||||
|
shipId = sId;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!shipId) { throw 'No such ship found: "' + buildName + '"'; }
|
||||||
|
|
||||||
|
var lines = buildStr.split('\n');
|
||||||
|
var ship = new Ship(shipId, Ships[shipId].properties, Ships[shipId].slots);
|
||||||
|
ship.buildWith(null);
|
||||||
|
|
||||||
|
for (var i = 1; i < lines.length; i++) {
|
||||||
|
var line = lines[i].trim();
|
||||||
|
|
||||||
|
if (!line) { continue; }
|
||||||
|
if (line.substring(0, 3) == '---') { break; }
|
||||||
|
|
||||||
|
var parts = lineRegex.exec(line);
|
||||||
|
|
||||||
|
if (!parts) { throw 'Error parsing: "' + line + '"'; }
|
||||||
|
|
||||||
|
var typeSize = parts[1];
|
||||||
|
var cl = parts[2];
|
||||||
|
var rating = parts[3];
|
||||||
|
var mount = parts[4];
|
||||||
|
var missile = parts[5];
|
||||||
|
var name = parts[6].trim();
|
||||||
|
var slot, group;
|
||||||
|
|
||||||
|
if (isNaN(typeSize)) { // Standard or Hardpoint
|
||||||
|
if (typeSize.length == 1) { // Hardpoint
|
||||||
|
var slotClass = mountMap[typeSize];
|
||||||
|
|
||||||
|
if (cl > slotClass) { throw cl + rating + ' ' + name + ' exceeds slot size: "' + line + '"'; }
|
||||||
|
|
||||||
|
slot = _.find(ship.hardpoints, isEmptySlot, slotClass);
|
||||||
|
|
||||||
|
if (!slot) { throw 'No hardpoint slot available for: "' + line + '"'; }
|
||||||
|
|
||||||
|
group = _.find(GroupMap, equalsIgnoreCase, name);
|
||||||
|
|
||||||
|
var hp = Components.findHardpoint(group, cl, rating, group ? null : name, mount, missile);
|
||||||
|
|
||||||
|
if (!hp) { throw 'Unknown component: "' + line + '"'; }
|
||||||
|
|
||||||
|
ship.use(slot, hp.id, hp, true);
|
||||||
|
|
||||||
|
} else if (typeSize == 'BH') {
|
||||||
|
var bhId = bhMap[name.toLowerCase()];
|
||||||
|
|
||||||
|
if (bhId === undefined) { throw 'Unknown bulkhead: "' + line + '"'; }
|
||||||
|
|
||||||
|
ship.useBulkhead(bhId, true);
|
||||||
|
|
||||||
|
} else if (standardMap[typeSize] != undefined) {
|
||||||
|
var standardIndex = standardMap[typeSize];
|
||||||
|
|
||||||
|
if (ship.standard[standardIndex].maxClass < cl) { throw name + ' exceeds max class for the ' + ship.name; }
|
||||||
|
|
||||||
|
ship.use(ship.standard[standardIndex], cl + rating, Components.standard(standardIndex, cl + rating), true);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
throw 'Unknown component: "' + line + '"';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$scope.errorMsg = '"' + shipId + '" is not a valid Ship Id!';
|
if (cl > typeSize) { throw cl + rating + ' ' + name + ' exceeds slot size: "' + line + '"'; }
|
||||||
|
|
||||||
|
slot = _.find(ship.internal, isEmptySlot, typeSize);
|
||||||
|
|
||||||
|
if (!slot) { throw 'No internal slot available for: "' + line + '"'; }
|
||||||
|
|
||||||
|
group = _.find(GroupMap, equalsIgnoreCase, name);
|
||||||
|
|
||||||
|
var intComp = Components.findInternal(group, cl, rating, group ? null : name);
|
||||||
|
|
||||||
|
if (!intComp) { throw 'Unknown component: "' + line + '"'; }
|
||||||
|
|
||||||
|
ship.use(slot, intComp.id, intComp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var builds = {};
|
||||||
|
builds[shipId] = {};
|
||||||
|
builds[shipId]['Imported ' + buildName] = Serializer.fromShip(ship);
|
||||||
|
$scope.builds = builds;
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.validateImport = function() {
|
||||||
|
var importData = null;
|
||||||
|
var importString = $scope.importString.trim();
|
||||||
|
$scope.importValid = false;
|
||||||
|
$scope.errorMsg = null;
|
||||||
|
$scope.builds = $scope.discounts = $scope.comparisons = $scope.insurance = null;
|
||||||
|
|
||||||
|
if (!importString) { return; }
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (textBuildRegex.test(importString)) { // E:D Shipyard build text
|
||||||
|
importTextBuild(importString);
|
||||||
|
} else { // JSON Build data
|
||||||
|
importData = angular.fromJson($scope.importString);
|
||||||
|
|
||||||
|
if (!importData || typeof importData != 'object') {
|
||||||
|
throw 'Must be an object or array!';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (importData instanceof Array) { // Must be detailed export json
|
||||||
|
importDetailedArray(importData);
|
||||||
|
} else if (importData.ship && typeof importData.name !== undefined) { // Using JSON from a single ship build export
|
||||||
|
importDetailedArray([importData]); // Convert to array with singleobject
|
||||||
|
} else { // Using Backup JSON
|
||||||
|
importBackup(importData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
$scope.errorMsg = (typeof e == 'string') ? e : 'Cannot Parse the data!';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$scope.builds = importObj.builds;
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.jsonValid = true;
|
$scope.importValid = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.hasBuild = function (shipId, name) {
|
$scope.hasBuild = function(shipId, name) {
|
||||||
return Persist.getBuild(shipId, name) !== null;
|
return Persist.getBuild(shipId, name) !== null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.hasComparison = function(name) {
|
||||||
|
return Persist.getComparison(name) !== null;
|
||||||
|
};
|
||||||
|
|
||||||
$scope.process = function() {
|
$scope.process = function() {
|
||||||
|
if ($scope.builds) {
|
||||||
var builds = $scope.builds;
|
var builds = $scope.builds;
|
||||||
for (var shipId in builds) {
|
for (var shipId in builds) {
|
||||||
for (var buildName in builds[shipId]) {
|
for (var buildName in builds[shipId]) {
|
||||||
@@ -73,10 +252,21 @@ angular.module('app').controller('ImportController', ['$scope', '$stateParams',
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($scope.comparisons) {
|
||||||
|
var comparisons = $scope.comparisons;
|
||||||
|
for (var name in comparisons) {
|
||||||
|
comparisons[name].useName = name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.processed = true;
|
$scope.processed = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.import = function() {
|
$scope.import = function() {
|
||||||
|
|
||||||
|
if ($scope.builds) {
|
||||||
var builds = $scope.builds;
|
var builds = $scope.builds;
|
||||||
for (var shipId in builds) {
|
for (var shipId in builds) {
|
||||||
for (var buildName in builds[shipId]) {
|
for (var buildName in builds[shipId]) {
|
||||||
@@ -87,6 +277,31 @@ angular.module('app').controller('ImportController', ['$scope', '$stateParams',
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($scope.comparisons) {
|
||||||
|
var comparisons = $scope.comparisons;
|
||||||
|
for (var comp in comparisons) {
|
||||||
|
var comparison = comparisons[comp];
|
||||||
|
var useName = comparison.useName.trim();
|
||||||
|
if (useName) {
|
||||||
|
Persist.saveComparison(useName, comparison.builds, comparison.facets);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($scope.discounts) {
|
||||||
|
$rootScope.discounts.ship = $scope.discounts[0];
|
||||||
|
$rootScope.discounts.components = $scope.discounts[1];
|
||||||
|
$rootScope.$broadcast('discountChange');
|
||||||
|
Persist.setDiscount($scope.discounts);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($scope.insurance) {
|
||||||
|
$rootScope.insurance.current = $scope.insurance;
|
||||||
|
Persist.setInsurance($scope.insurance);
|
||||||
|
}
|
||||||
|
|
||||||
$scope.$parent.dismiss();
|
$scope.$parent.dismiss();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
angular.module('app').controller('LinkController', ['$scope', 'Utils', '$stateParams', function ($scope, Utils, $stateParams) {
|
angular.module('app').controller('LinkController', ['$scope', 'Utils', '$stateParams', function($scope, Utils, $stateParams) {
|
||||||
$scope.url = $stateParams.url;
|
$scope.url = $stateParams.url;
|
||||||
$scope.shortenedUrl = 'Shortening...';
|
$scope.shortenedUrl = 'Shortening...';
|
||||||
|
|
||||||
$scope.onTextClick = function ($event) {
|
$scope.onTextClick = function($event) {
|
||||||
$event.target.select();
|
$event.target.select();
|
||||||
};
|
};
|
||||||
|
|
||||||
Utils.shortenUrl($scope.url)
|
Utils.shortenUrl($scope.url)
|
||||||
.then(function(url) {
|
.then(function(url) {
|
||||||
$scope.shortenedUrl = url;
|
$scope.shortenedUrl = url;
|
||||||
},function(e) {
|
}, function(e) {
|
||||||
$scope.shortenedUrl = 'Error - ' + e.statusText;
|
$scope.shortenedUrl = 'Error - ' + e.statusText;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
angular.module('app').controller('ModalController', ['$rootScope','$scope', '$state', function ($rootScope, $scope, $state) {
|
angular.module('app').controller('ModalController', ['$rootScope', '$scope', '$state', function($rootScope, $scope, $state) {
|
||||||
|
|
||||||
$scope.dismiss = function() {
|
$scope.dismiss = function() {
|
||||||
if ($rootScope.prevState) {
|
if ($rootScope.prevState) {
|
||||||
var state = $rootScope.prevState;
|
var state = $rootScope.prevState;
|
||||||
$state.go(state.name, state.params, {location: 'replace', reload: false});
|
$state.go(state.name, state.params, { location: 'replace', reload: false });
|
||||||
} else {
|
} else {
|
||||||
$state.go('shipyard');
|
$state.go('shipyard');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
angular.module('app').controller('OutfitController', ['$window','$rootScope','$scope', '$state', '$stateParams', 'ShipsDB', 'Ship', 'Components', 'Serializer', 'Persist', function ($window, $rootScope, $scope, $state, $p, Ships, Ship, Components, Serializer, Persist) {
|
angular.module('app').controller('OutfitController', ['$window', '$rootScope', '$scope', '$state', '$stateParams', '$translate', 'ShipsDB', 'Ship', 'Components', 'Serializer', 'Persist', 'calcTotalRange', 'calcSpeed', function($window, $rootScope, $scope, $state, $p, $translate, Ships, Ship, Components, Serializer, Persist, calcTotalRange, calcSpeed) {
|
||||||
|
var win = angular.element($window); // Angularized window object for event triggering
|
||||||
var data = Ships[$p.shipId]; // Retrieve the basic ship properties, slots and defaults
|
var data = Ships[$p.shipId]; // Retrieve the basic ship properties, slots and defaults
|
||||||
var ship = new Ship($p.shipId, data.properties, data.slots); // Create a new Ship instance
|
var ship = new Ship($p.shipId, data.properties, data.slots); // Create a new Ship instance
|
||||||
|
var retrofitShip = new Ship($p.shipId, data.properties, data.slots); // Create a new Ship for retrofit comparison
|
||||||
|
|
||||||
// Update the ship instance with the code (if provided) or the 'factory' defaults.
|
// Update the ship instance with the code (if provided) or the 'factory' defaults.
|
||||||
if ($p.code) {
|
if ($p.code) {
|
||||||
@@ -10,46 +12,116 @@ angular.module('app').controller('OutfitController', ['$window','$rootScope','$s
|
|||||||
ship.buildWith(data.defaults); // Populate with default components
|
ship.buildWith(data.defaults); // Populate with default components
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.buildName = $p.bn;
|
$scope.buildName = $p.bn ? $window.decodeURIComponent($p.bn) : null;
|
||||||
$rootScope.title = ship.name + ($scope.buildName? ' - ' + $scope.buildName : '');
|
$scope.ships = Ships;
|
||||||
|
$rootScope.title = ship.name + ($scope.buildName ? ' - ' + $scope.buildName : '');
|
||||||
$scope.ship = ship;
|
$scope.ship = ship;
|
||||||
$scope.pp = ship.common[0]; // Power Plant
|
$scope.pp = ship.standard[0]; // Power Plant
|
||||||
$scope.th = ship.common[1]; // Thruster
|
$scope.th = ship.standard[1]; // Thruster
|
||||||
$scope.fsd = ship.common[2]; // Frame Shrift Drive
|
$scope.fsd = ship.standard[2]; // Frame Shrift Drive
|
||||||
$scope.ls = ship.common[3]; // Life Support
|
$scope.ls = ship.standard[3]; // Life Support
|
||||||
$scope.pd = ship.common[4]; // Power Distributor
|
$scope.pd = ship.standard[4]; // Power Distributor
|
||||||
$scope.ss = ship.common[5]; // Sensors
|
$scope.ss = ship.standard[5]; // Sensors
|
||||||
$scope.ft = ship.common[6]; // Fuel Tank
|
$scope.ft = ship.standard[6]; // Fuel Tank
|
||||||
$scope.hps = ship.hardpoints;
|
$scope.hps = ship.hardpoints;
|
||||||
$scope.internal = ship.internal;
|
$scope.internal = ship.internal;
|
||||||
$scope.availCS = Components.forShip(ship.id);
|
$scope.costList = ship.costList;
|
||||||
|
$scope.powerList = ship.powerList;
|
||||||
|
$scope.priorityBands = ship.priorityBands;
|
||||||
|
$scope.availCS = ship.getAvailableComponents();
|
||||||
$scope.selectedSlot = null;
|
$scope.selectedSlot = null;
|
||||||
$scope.savedCode = Persist.getBuild(ship.id, $scope.buildName);
|
$scope.savedCode = Persist.getBuild(ship.id, $scope.buildName);
|
||||||
$scope.canSave = Persist.isEnabled();
|
$scope.canSave = Persist.isEnabled();
|
||||||
|
$scope.allBuilds = Persist.builds;
|
||||||
$scope.fuel = 0;
|
$scope.fuel = 0;
|
||||||
|
$scope.pwrDesc = false;
|
||||||
|
$scope.pwrPredicate = 'type';
|
||||||
|
$scope.retroDesc = false;
|
||||||
|
$scope.retroPredicate = 'netCost';
|
||||||
|
$scope.costDesc = true;
|
||||||
|
$scope.costPredicate = 'c.cost';
|
||||||
|
$scope.ammoDesc = true;
|
||||||
|
$scope.ammoPredicate = 'ammoUnitCost';
|
||||||
|
$scope.costTab = Persist.getCostTab() || 'costs';
|
||||||
|
|
||||||
|
if ($scope.savedCode) {
|
||||||
|
Serializer.toShip(retrofitShip, $scope.savedCode); // Populate components from last save
|
||||||
|
$scope.retrofitBuild = $scope.buildName;
|
||||||
|
} else {
|
||||||
|
retrofitShip.buildWith(data.defaults);
|
||||||
|
$scope.retrofitBuild = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
ship.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components);
|
||||||
|
retrofitShip.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components);
|
||||||
|
updateRetrofitCosts();
|
||||||
|
|
||||||
$scope.jrSeries = {
|
$scope.jrSeries = {
|
||||||
xMin: 0,
|
xMin: 0,
|
||||||
xMax: ship.cargoCapacity,
|
xMax: ship.cargoCapacity,
|
||||||
// Slightly higher than actual based bacuse components are excluded
|
yMax: ship.unladenRange,
|
||||||
yMax: ship.jumpRangeWithMass(ship.unladenMass),
|
|
||||||
yMin: 0,
|
yMin: 0,
|
||||||
func: function(cargo) { // X Axis is Cargo
|
func: function(cargo) { // X Axis is Cargo
|
||||||
return ship.jumpRangeWithMass(ship.unladenMass + $scope.fuel + cargo, $scope.fuel);
|
return ship.getJumpRangeForMass(ship.unladenMass + $scope.fuel + cargo, $scope.fuel);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
$scope.jrChart = {
|
$scope.jrChart = {
|
||||||
labels: {
|
labels: {
|
||||||
xAxis: {
|
xAxis: {
|
||||||
title:'Cargo',
|
title: 'cargo',
|
||||||
unit: 'T'
|
unit: 'T'
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
title:'Jump Range',
|
title: 'jump range',
|
||||||
unit: 'LY'
|
unit: 'LY'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.trSeries = {
|
||||||
|
xMin: 0,
|
||||||
|
xMax: ship.cargoCapacity,
|
||||||
|
yMax: ship.unladenTotalRange,
|
||||||
|
yMin: 0,
|
||||||
|
func: function(cargo) { // X Axis is Cargo
|
||||||
|
return calcTotalRange(ship.unladenMass + cargo, $scope.fsd.c, $scope.fuel);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$scope.trChart = {
|
||||||
|
labels: {
|
||||||
|
xAxis: {
|
||||||
|
title: 'cargo',
|
||||||
|
unit: 'T'
|
||||||
},
|
},
|
||||||
watch: $scope.fsd
|
yAxis: {
|
||||||
|
title: 'total range',
|
||||||
|
unit: 'LY'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.speedSeries = {
|
||||||
|
xMin: 0,
|
||||||
|
xMax: ship.cargoCapacity,
|
||||||
|
yMax: calcSpeed(ship.unladenMass, ship.speed, ship.boost, $scope.th.c, ship.pipSpeed).boost,
|
||||||
|
yMin: 0,
|
||||||
|
series: ['boost', '4 Pips', '2 Pips', '0 Pips'],
|
||||||
|
colors: ['#0088d2', '#ff8c0d', '#D26D00', '#c06400'],
|
||||||
|
func: function(cargo) { // X Axis is Cargo
|
||||||
|
return calcSpeed(ship.unladenMass + $scope.fuel + cargo, ship.speed, ship.boost, $scope.th.c, ship.pipSpeed);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
$scope.speedChart = {
|
||||||
|
labels: {
|
||||||
|
xAxis: {
|
||||||
|
title: 'cargo',
|
||||||
|
unit: 'T'
|
||||||
|
},
|
||||||
|
yAxis: {
|
||||||
|
title: 'speed',
|
||||||
|
unit: 'm/s'
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -75,25 +147,33 @@ angular.module('app').controller('OutfitController', ['$window','$rootScope','$s
|
|||||||
* @param {[type]} slot The slot object belonging to the ship instance
|
* @param {[type]} slot The slot object belonging to the ship instance
|
||||||
* @param {[type]} e The event object
|
* @param {[type]} e The event object
|
||||||
*/
|
*/
|
||||||
$scope.select = function(type, slot, e) {
|
$scope.select = function(type, slot, e, id) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var id = angular.element(e.target).attr('cpid'); // Get component ID
|
|
||||||
|
if (!id) { // Find component id if not passed
|
||||||
|
var elem = e.target;
|
||||||
|
while (elem && elem !== e.currentTarget && !elem.getAttribute('cpid')) {
|
||||||
|
elem = elem.parentElement;
|
||||||
|
}
|
||||||
|
if (elem) {
|
||||||
|
id = elem.getAttribute('cpid');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (id) {
|
if (id) {
|
||||||
if (id == 'empty') {
|
if (id == 'empty') {
|
||||||
ship.use(slot, null, null);
|
ship.use(slot, null, null);
|
||||||
} else if(type == 'h') {
|
} else if (type == 'h') {
|
||||||
ship.use(slot, id, Components.hardpoints(id));
|
ship.use(slot, id, Components.hardpoints(id));
|
||||||
} else if (type == 'c') {
|
} else if (type == 'c') {
|
||||||
ship.use(slot, id, Components.common(ship.common.indexOf(slot), id));
|
ship.use(slot, id, Components.standard(ship.standard.indexOf(slot), id));
|
||||||
} else if (type == 'i') {
|
} else if (type == 'i') {
|
||||||
ship.use(slot, id, Components.internal(id));
|
ship.use(slot, id, Components.internal(id));
|
||||||
} else if (type == 'b') {
|
} else if (type == 'b') {
|
||||||
ship.useBulkhead(id);
|
ship.useBulkhead(id);
|
||||||
}
|
}
|
||||||
$scope.selectedSlot = null;
|
$scope.selectedSlot = null;
|
||||||
$scope.code = Serializer.fromShip(ship);
|
updateState(Serializer.fromShip(ship));
|
||||||
updateState();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -103,11 +183,165 @@ angular.module('app').controller('OutfitController', ['$window','$rootScope','$s
|
|||||||
$scope.reloadBuild = function() {
|
$scope.reloadBuild = function() {
|
||||||
if ($scope.buildName && $scope.savedCode) {
|
if ($scope.buildName && $scope.savedCode) {
|
||||||
Serializer.toShip(ship, $scope.savedCode); // Repopulate with components from last save
|
Serializer.toShip(ship, $scope.savedCode); // Repopulate with components from last save
|
||||||
$scope.code = $scope.savedCode;
|
updateState($scope.savedCode);
|
||||||
updateState();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.resetBuild = function() {
|
||||||
|
ship.buildWith(data.defaults); // Populate with default components
|
||||||
|
updateState(null);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optimize for the lower mass build that can still boost and power the ship
|
||||||
|
* without power management.
|
||||||
|
*/
|
||||||
|
$scope.optimizeMassBuild = function() {
|
||||||
|
updateState(Serializer.fromShip(ship.optimizeMass()));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optimize for the lower mass build that can still boost and power the ship
|
||||||
|
* without power management.
|
||||||
|
*/
|
||||||
|
$scope.optimizeStandard = function() {
|
||||||
|
updateState(Serializer.fromShip(ship.useLightestStandard()));
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.useStandard = function(rating) {
|
||||||
|
updateState(Serializer.fromShip(ship.useStandard(rating)));
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.useHardpoint = function(group, mount, clobber, missile) {
|
||||||
|
updateState(Serializer.fromShip(ship.useWeapon(group, mount, clobber, missile)));
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.useUtility = function(group, rating, clobber) {
|
||||||
|
updateState(Serializer.fromShip(ship.useUtility(group, rating, clobber)));
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.emptyInternal = function() {
|
||||||
|
updateState(Serializer.fromShip(ship.emptyInternal()));
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.emptyHardpoints = function() {
|
||||||
|
updateState(Serializer.fromShip(ship.emptyWeapons()));
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.emptyUtility = function() {
|
||||||
|
updateState(Serializer.fromShip(ship.emptyUtility()));
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.fillWithCargo = function() {
|
||||||
|
ship.internal.forEach(function(slot) {
|
||||||
|
var id = Components.findInternalId('cr', slot.maxClass, 'E');
|
||||||
|
if (!slot.c) {
|
||||||
|
ship.use(slot, id, Components.internal(id));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
updateState(Serializer.fromShip(ship));
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.fillWithCells = function() {
|
||||||
|
var chargeCap = 0; // Capacity of single activation
|
||||||
|
ship.internal.forEach(function(slot) {
|
||||||
|
var id = Components.findInternalId('scb', slot.maxClass, 'A');
|
||||||
|
if (!slot.c && (!slot.eligible || slot.eligible.scb)) { // Check eligibility because of Orca, don't overwrite generator
|
||||||
|
ship.use(slot, id, Components.internal(id));
|
||||||
|
chargeCap += Components.internal(id).recharge;
|
||||||
|
ship.setSlotEnabled(slot, chargeCap <= ship.shieldStrength); // Don't waste cell capacity on overcharge
|
||||||
|
}
|
||||||
|
});
|
||||||
|
updateState(Serializer.fromShip(ship));
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.fillWithArmor = function() {
|
||||||
|
ship.internal.forEach(function(slot) {
|
||||||
|
var hr = Components.findInternal('hr', Math.min(slot.maxClass, 5), 'D'); // Hull reinforcements top out at 5D
|
||||||
|
if (!slot.c && hr) {
|
||||||
|
ship.use(slot, hr.id, hr);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
updateState(Serializer.fromShip(ship));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fill all internal slots with Cargo Racks, and optmize internal components.
|
||||||
|
* Hardpoints are not altered.
|
||||||
|
*/
|
||||||
|
$scope.optimizeCargo = function() {
|
||||||
|
ship.internal.forEach(function(slot) {
|
||||||
|
var id = Components.findInternalId('cr', slot.maxClass, 'E');
|
||||||
|
ship.use(slot, id, Components.internal(id));
|
||||||
|
});
|
||||||
|
ship.useLightestStandard();
|
||||||
|
updateState(Serializer.fromShip(ship));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optimize standard and internal components, hardpoints for exploration
|
||||||
|
*/
|
||||||
|
$scope.optimizeExplorer = function() {
|
||||||
|
var intLength = ship.internal.length,
|
||||||
|
heatSinkCount = 2, // Fit 2 heat sinks if possible
|
||||||
|
afmUnitCount = 2, // Fit 2 AFM Units if possible
|
||||||
|
sgSlot,
|
||||||
|
fuelScoopSlot,
|
||||||
|
sgId = $scope.availCS.lightestShieldGenerator(ship.hullMass),
|
||||||
|
sg = Components.internal(sgId);
|
||||||
|
|
||||||
|
ship.setSlotEnabled(ship.cargoHatch, false)
|
||||||
|
.use(ship.internal[--intLength], '2f', Components.internal('2f')) // Advanced Discovery Scanner
|
||||||
|
.use(ship.internal[--intLength], '2i', Components.internal('2i')); // Detailed Surface Scanner
|
||||||
|
|
||||||
|
for (var i = 0; i < intLength; i++) {
|
||||||
|
var slot = ship.internal[i];
|
||||||
|
var nextSlot = (i + 1) < intLength ? ship.internal[i + 1] : null;
|
||||||
|
if (!fuelScoopSlot && (!slot.eligible || slot.eligible.fs)) { // Fit best possible Fuel Scoop
|
||||||
|
var fuelScoopId = Components.findInternalId('fs', slot.maxClass, 'A');
|
||||||
|
fuelScoopSlot = slot;
|
||||||
|
ship.use(fuelScoopSlot, fuelScoopId, Components.internal(fuelScoopId));
|
||||||
|
ship.setSlotEnabled(fuelScoopSlot, true);
|
||||||
|
|
||||||
|
// Mount a Shield generator if possible AND an AFM Unit has been mounted already (Guarantees at least 1 AFM Unit)
|
||||||
|
} else if (!sgSlot && afmUnitCount < 2 && sg.class <= slot.maxClass && (!slot.eligible || slot.eligible.sg) && (!nextSlot || nextSlot.maxClass < sg.class)) {
|
||||||
|
sgSlot = slot;
|
||||||
|
ship.use(sgSlot, sgId, sg);
|
||||||
|
ship.setSlotEnabled(sgSlot, true);
|
||||||
|
} else if (afmUnitCount > 0 && (!slot.eligible || slot.eligible.am)) {
|
||||||
|
afmUnitCount--;
|
||||||
|
var am = Components.findInternal('am', slot.maxClass, afmUnitCount ? 'B' : 'A');
|
||||||
|
ship.use(slot, am.id, am);
|
||||||
|
ship.setSlotEnabled(slot, false); // Disabled power for AFM Unit
|
||||||
|
|
||||||
|
} else {
|
||||||
|
ship.use(slot, null, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ship.hardpoints.forEach(function(s) {
|
||||||
|
if (s.maxClass == 0 && heatSinkCount) { // Mount up to 2 heatsinks
|
||||||
|
ship.use(s, '02', Components.hardpoints('02'));
|
||||||
|
ship.setSlotEnabled(s, heatSinkCount == 2); // Only enable a single Heatsink
|
||||||
|
heatSinkCount--;
|
||||||
|
} else {
|
||||||
|
ship.use(s, null, null);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (sgSlot) {
|
||||||
|
// The SG and Fuel scoop to not need to be powered at the same time
|
||||||
|
if (sgSlot.c.power > fuelScoopSlot.c.power) { // The Shield generator uses the most power
|
||||||
|
ship.setSlotEnabled(fuelScoopSlot, false);
|
||||||
|
} else { // The Fuel scoop uses the most power
|
||||||
|
ship.setSlotEnabled(sgSlot, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ship.useLightestStandard({ pd: '1D', ppRating: 'A' });
|
||||||
|
updateState(Serializer.fromShip(ship));
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save the current build. Will replace the saved build if there is one
|
* Save the current build. Will replace the saved build if there is one
|
||||||
* for this ship & with the exact name.
|
* for this ship & with the exact name.
|
||||||
@@ -124,7 +358,25 @@ angular.module('app').controller('OutfitController', ['$window','$rootScope','$s
|
|||||||
if ($scope.code != $scope.savedCode) {
|
if ($scope.code != $scope.savedCode) {
|
||||||
Persist.saveBuild(ship.id, $scope.buildName, $scope.code);
|
Persist.saveBuild(ship.id, $scope.buildName, $scope.code);
|
||||||
$scope.savedCode = $scope.code;
|
$scope.savedCode = $scope.code;
|
||||||
updateState();
|
if ($scope.retrofitBuild === $scope.buildName) {
|
||||||
|
Serializer.toShip(retrofitShip, $scope.code);
|
||||||
|
}
|
||||||
|
updateState($scope.code);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Export the build to detailed JSON
|
||||||
|
*/
|
||||||
|
$scope.exportBuild = function(e) {
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
|
if ($scope.buildName) {
|
||||||
|
$state.go('modal.export', {
|
||||||
|
title: $scope.buildName + ' ' + $translate.instant('export'),
|
||||||
|
description: $translate.instant('PHRASE_EXPORT_DESC'),
|
||||||
|
data: Serializer.toDetailedBuild($scope.buildName, ship, $scope.code || Serializer.fromShip(ship))
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -134,13 +386,13 @@ angular.module('app').controller('OutfitController', ['$window','$rootScope','$s
|
|||||||
*/
|
*/
|
||||||
$scope.deleteBuild = function() {
|
$scope.deleteBuild = function() {
|
||||||
Persist.deleteBuild(ship.id, $scope.buildName);
|
Persist.deleteBuild(ship.id, $scope.buildName);
|
||||||
$state.go('outfit', {shipId: ship.id, code: null, bn: null}, {location:'replace', reload:true});
|
$state.go('outfit', { shipId: ship.id, code: null, bn: null }, { location: 'replace', reload: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* On build name change, retrieve the existing saved code if there is one
|
* On build name change, retrieve the existing saved code if there is one
|
||||||
*/
|
*/
|
||||||
$scope.bnChange = function(){
|
$scope.bnChange = function() {
|
||||||
$scope.savedCode = Persist.getBuild(ship.id, $scope.buildName);
|
$scope.savedCode = Persist.getBuild(ship.id, $scope.buildName);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -149,40 +401,241 @@ angular.module('app').controller('OutfitController', ['$window','$rootScope','$s
|
|||||||
* @param {object} item The component being toggled
|
* @param {object} item The component being toggled
|
||||||
*/
|
*/
|
||||||
$scope.toggleCost = function(item) {
|
$scope.toggleCost = function(item) {
|
||||||
item.incCost = !item.incCost;
|
ship.setCostIncluded(item, !item.incCost);
|
||||||
ship.updateTotals();
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Toggle cost of the selected component for retrofitting comparison
|
||||||
|
* @param {object} item The component being toggled
|
||||||
|
*/
|
||||||
|
$scope.toggleRetrofitCost = function(item) {
|
||||||
|
retrofitShip.setCostIncluded(item, !item.incCost);
|
||||||
|
updateRetrofitCosts();
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [sortCost description]
|
||||||
|
* @param {[type]} key [description]
|
||||||
|
* @return {[type]} [description]
|
||||||
|
*/
|
||||||
|
$scope.sortCost = function(key) {
|
||||||
|
$scope.costDesc = $scope.costPredicate == key ? !$scope.costDesc : $scope.costDesc;
|
||||||
|
$scope.costPredicate = key;
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.sortPwr = function(key) {
|
||||||
|
$scope.pwrDesc = $scope.pwrPredicate == key ? !$scope.pwrDesc : $scope.pwrDesc;
|
||||||
|
$scope.pwrPredicate = key;
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.sortRetrofit = function(key) {
|
||||||
|
$scope.retroDesc = $scope.retroPredicate == key ? !$scope.retroDesc : $scope.retroDesc;
|
||||||
|
$scope.retroPredicate = key;
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.sortAmmo = function(key) {
|
||||||
|
$scope.ammoDesc = $scope.ammoPredicate == key ? !$scope.ammoDesc : $scope.ammoDesc;
|
||||||
|
$scope.ammoPredicate = key;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle the power on/off for the selected component
|
* Toggle the power on/off for the selected component
|
||||||
* @param {object} item The component being toggled
|
* @param {object} item The component being toggled
|
||||||
*/
|
*/
|
||||||
$scope.togglePwr = function(item) {
|
$scope.togglePwr = function(c) {
|
||||||
item.enabled = !item.enabled;
|
ship.setSlotEnabled(c, !c.enabled);
|
||||||
ship.updateTotals();
|
updateState(Serializer.fromShip(ship));
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.fuelChange = function (fuel) {
|
$scope.incPriority = function(c) {
|
||||||
|
if (ship.changePriority(c, c.priority + 1)) {
|
||||||
|
updateState(Serializer.fromShip(ship));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.decPriority = function(c) {
|
||||||
|
if (ship.changePriority(c, c.priority - 1)) {
|
||||||
|
updateState(Serializer.fromShip(ship));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.fuelChange = function(fuel) {
|
||||||
$scope.fuel = fuel;
|
$scope.fuel = fuel;
|
||||||
angular.element($window).triggerHandler('render');
|
updateAmmoCosts();
|
||||||
|
win.triggerHandler('render');
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.statusRetracted = function(slot) {
|
||||||
|
return ship.getSlotStatus(slot, false);
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.statusDeployed = function(slot) {
|
||||||
|
return ship.getSlotStatus(slot, true);
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.setRetrofitBase = function() {
|
||||||
|
if ($scope.retrofitBuild) {
|
||||||
|
Serializer.toShip(retrofitShip, Persist.getBuild(ship.id, $scope.retrofitBuild));
|
||||||
|
} else {
|
||||||
|
retrofitShip.buildWith(data.defaults);
|
||||||
|
}
|
||||||
|
updateRetrofitCosts();
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.updateCostTab = function(tab) {
|
||||||
|
Persist.setCostTab(tab);
|
||||||
|
$scope.costTab = tab;
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.ppWarning = function(pp) {
|
||||||
|
return pp.pGen < ship.powerRetracted;
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.pdWarning = function(pd) {
|
||||||
|
return pd.enginecapacity < ship.boostEnergy;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Utilify functions
|
// Utilify functions
|
||||||
function updateState() {
|
|
||||||
$state.go('outfit', {shipId: ship.id, code: $scope.code, bn: $scope.buildName}, {location:'replace', notify:false});
|
function updateState(code) {
|
||||||
$scope.jrSeries.xMax = ship.cargoCapacity;
|
$scope.code = code;
|
||||||
$scope.jrSeries.yMax = ship.jumpRangeWithMass(ship.unladenMass);
|
$state.go('outfit', { shipId: ship.id, code: $scope.code, bn: $scope.buildName }, { location: 'replace', notify: false });
|
||||||
$scope.jrSeries.mass = ship.unladenMass;
|
$scope.speedSeries.xMax = $scope.trSeries.xMax = $scope.jrSeries.xMax = ship.cargoCapacity;
|
||||||
|
$scope.jrSeries.yMax = ship.unladenRange;
|
||||||
|
$scope.trSeries.yMax = ship.unladenTotalRange;
|
||||||
|
$scope.speedSeries.yMax = calcSpeed(ship.unladenMass, ship.speed, ship.boost, $scope.th.c, ship.pipSpeed).boost;
|
||||||
|
updateRetrofitCosts();
|
||||||
|
win.triggerHandler('pwrchange');
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateRetrofitCosts() {
|
||||||
|
var costs = $scope.retrofitList = [];
|
||||||
|
var total = 0, i, l, item;
|
||||||
|
|
||||||
|
if (ship.bulkheads.id != retrofitShip.bulkheads.id) {
|
||||||
|
item = {
|
||||||
|
buyClassRating: ship.bulkheads.c.class + ship.bulkheads.c.rating,
|
||||||
|
buyName: ship.bulkheads.c.name,
|
||||||
|
sellClassRating: retrofitShip.bulkheads.c.class + retrofitShip.bulkheads.c.rating,
|
||||||
|
sellName: retrofitShip.bulkheads.c.name,
|
||||||
|
netCost: ship.bulkheads.discountedCost - retrofitShip.bulkheads.discountedCost,
|
||||||
|
retroItem: retrofitShip.bulkheads
|
||||||
|
};
|
||||||
|
costs.push(item);
|
||||||
|
if (retrofitShip.bulkheads.incCost) {
|
||||||
|
total += item.netCost;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var g in { standard: 1, internal: 1, hardpoints: 1 }) {
|
||||||
|
var retroSlotGroup = retrofitShip[g];
|
||||||
|
var slotGroup = ship[g];
|
||||||
|
for (i = 0, l = slotGroup.length; i < l; i++) {
|
||||||
|
if (slotGroup[i].id != retroSlotGroup[i].id) {
|
||||||
|
item = { netCost: 0, retroItem: retroSlotGroup[i] };
|
||||||
|
if (slotGroup[i].id) {
|
||||||
|
item.buyName = slotGroup[i].c.name || slotGroup[i].c.grp;
|
||||||
|
item.buyClassRating = slotGroup[i].c.class + slotGroup[i].c.rating;
|
||||||
|
item.netCost = slotGroup[i].discountedCost;
|
||||||
|
}
|
||||||
|
if (retroSlotGroup[i].id) {
|
||||||
|
item.sellName = retroSlotGroup[i].c.name || retroSlotGroup[i].c.grp;
|
||||||
|
item.sellClassRating = retroSlotGroup[i].c.class + retroSlotGroup[i].c.rating;
|
||||||
|
item.netCost -= retroSlotGroup[i].discountedCost;
|
||||||
|
}
|
||||||
|
costs.push(item);
|
||||||
|
if (retroSlotGroup[i].incCost) {
|
||||||
|
total += item.netCost;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$scope.retrofitTotal = total;
|
||||||
|
updateAmmoCosts();
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateAmmoCosts() {
|
||||||
|
var costs = $scope.ammoList = [];
|
||||||
|
var total = 0, i, l, item, q, limpets = 0, scoop = false;
|
||||||
|
|
||||||
|
for (var g in { standard: 1, internal: 1, hardpoints: 1 }) {
|
||||||
|
var slotGroup = ship[g];
|
||||||
|
for (i = 0, l = slotGroup.length; i < l; i++) {
|
||||||
|
if (slotGroup[i].id) {
|
||||||
|
//special cases needed for SCB, AFMU, and limpet controllers since they don't use standard ammo/clip
|
||||||
|
q = 0;
|
||||||
|
switch (slotGroup[i].c.grp) {
|
||||||
|
case 'fs': //skip fuel calculation if scoop present
|
||||||
|
scoop = true;
|
||||||
|
break;
|
||||||
|
case 'scb':
|
||||||
|
q = slotGroup[i].c.cells;
|
||||||
|
break;
|
||||||
|
case 'am':
|
||||||
|
q = slotGroup[i].c.ammo;
|
||||||
|
break;
|
||||||
|
case 'fx': case 'hb': case 'cc': case 'pc':
|
||||||
|
limpets = ship.cargoCapacity;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
q = slotGroup[i].c.clip + slotGroup[i].c.ammo;
|
||||||
|
}
|
||||||
|
//calculate ammo costs only if a cost is specified
|
||||||
|
if (slotGroup[i].c.ammocost > 0) {
|
||||||
|
item = {
|
||||||
|
ammoClassRating: slotGroup[i].c.class + slotGroup[i].c.rating,
|
||||||
|
ammoName: slotGroup[i].c.name || slotGroup[i].c.grp,
|
||||||
|
ammoMax: q,
|
||||||
|
ammoUnitCost: slotGroup[i].c.ammocost,
|
||||||
|
ammoTotalCost: q * slotGroup[i].c.ammocost
|
||||||
|
};
|
||||||
|
costs.push(item);
|
||||||
|
total += item.ammoTotalCost;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//limpets if controllers exist and cargo space available
|
||||||
|
if (limpets > 0) {
|
||||||
|
item = {
|
||||||
|
ammoName: 'limpets',
|
||||||
|
ammoMax: ship.cargoCapacity,
|
||||||
|
ammoUnitCost: 101,
|
||||||
|
ammoTotalCost: ship.cargoCapacity * 101
|
||||||
|
};
|
||||||
|
costs.push(item);
|
||||||
|
total += item.ammoTotalCost;
|
||||||
|
}
|
||||||
|
//calculate refuel costs if no scoop present
|
||||||
|
if (!scoop) {
|
||||||
|
item = {
|
||||||
|
ammoName: 'fuel',
|
||||||
|
ammoMax: $scope.fuel,
|
||||||
|
ammoUnitCost: 50,
|
||||||
|
ammoTotalCost: $scope.fuel * 50
|
||||||
|
};
|
||||||
|
costs.push(item);
|
||||||
|
total += item.ammoTotalCost;
|
||||||
|
}
|
||||||
|
$scope.ammoTotal = total;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide any open menu/slot/etc if escape key is pressed
|
|
||||||
$scope.$on('escape', function () {
|
|
||||||
$scope.selectedSlot = null;
|
|
||||||
$scope.$apply();
|
|
||||||
});
|
|
||||||
// Hide any open menu/slot/etc if the background is clicked
|
// Hide any open menu/slot/etc if the background is clicked
|
||||||
$scope.$on('close', function () {
|
$scope.$on('close', function() {
|
||||||
$scope.selectedSlot = null;
|
$scope.selectedSlot = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Hide any open menu/slot/etc if the background is clicked
|
||||||
|
$scope.$on('languageChanged', function() {
|
||||||
|
$scope.selectedSlot = null;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Hide any open menu/slot/etc if the background is clicked
|
||||||
|
$scope.$on('discountChange', function() {
|
||||||
|
ship.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components);
|
||||||
|
retrofitShip.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components);
|
||||||
|
updateRetrofitCosts();
|
||||||
|
});
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
@@ -1,4 +1,59 @@
|
|||||||
angular.module('app').controller('ShipyardController', ['$rootScope', 'ShipsDB', function ($rootScope, ships) {
|
angular.module('app').controller('ShipyardController', ['$rootScope', '$scope', 'ShipsDB', 'Ship', 'Components', function($rootScope, $scope, ShipsDB, Ship, Components) {
|
||||||
$rootScope.title = 'Coriolis';
|
$rootScope.title = 'Coriolis - Shipyard';
|
||||||
$rootScope.ships = ships;
|
$scope.shipPredicate = 'properties.name';
|
||||||
|
$scope.shipDesc = false;
|
||||||
|
|
||||||
|
function countHp(slot) {
|
||||||
|
this.hp[slot.maxClass]++;
|
||||||
|
this.hpCount++;
|
||||||
|
}
|
||||||
|
|
||||||
|
function countInt(slot) {
|
||||||
|
var crEligible = !slot.eligible || slot.eligible.cr;
|
||||||
|
this.int[slot.maxClass - 1]++; // Subtract 1 since there is no Class 0 Internal compartment
|
||||||
|
this.intCount++;
|
||||||
|
this.maxCargo += crEligible ? Components.findInternal('cr', slot.maxClass, 'E').capacity : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function shipSummary(shipId, shipData) {
|
||||||
|
var summary = angular.copy(shipData.properties);
|
||||||
|
var ship = new Ship(shipId, shipData.properties, shipData.slots);
|
||||||
|
summary.id = s;
|
||||||
|
summary.hpCount = 0;
|
||||||
|
summary.intCount = 0;
|
||||||
|
summary.maxCargo = 0;
|
||||||
|
summary.hp = [0, 0, 0, 0, 0]; // Utility, Small, Medium, Large, Huge
|
||||||
|
summary.int = [0, 0, 0, 0, 0, 0, 0, 0]; // Sizes 1 - 8
|
||||||
|
// Build Ship
|
||||||
|
ship.buildWith(shipData.defaults); // Populate with stock/default components
|
||||||
|
ship.hardpoints.forEach(countHp.bind(summary)); // Count Hardpoints by class
|
||||||
|
ship.internal.forEach(countInt.bind(summary)); // Count Internal Compartments by class
|
||||||
|
summary.retailCost = ship.totalCost; // Record Stock/Default/retail cost
|
||||||
|
ship.optimizeMass({ pd: '1D' }); // Optimize Mass with 1D PD for maximum possible jump range
|
||||||
|
summary.maxJumpRange = ship.unladenRange; // Record Jump Range
|
||||||
|
ship.optimizeMass({ th: ship.standard[1].maxClass + 'A' }); // Optmize mass with Max Thrusters
|
||||||
|
summary.topSpeed = ship.topSpeed;
|
||||||
|
summary.topBoost = ship.topBoost;
|
||||||
|
|
||||||
|
return summary;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Initialization */
|
||||||
|
|
||||||
|
if (!$rootScope.shipsOverview) { // Only generate this once
|
||||||
|
$rootScope.shipsOverview = [];
|
||||||
|
for (var s in ShipsDB) {
|
||||||
|
$scope.shipsOverview.push(shipSummary(s, ShipsDB[s]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sort ships
|
||||||
|
* @param {object} key Sort predicate
|
||||||
|
*/
|
||||||
|
$scope.sortShips = function(key) {
|
||||||
|
$scope.shipDesc = $scope.shipPredicate == key ? !$scope.shipDesc : $scope.shipDesc;
|
||||||
|
$scope.shipPredicate = key;
|
||||||
|
};
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
angular.module('app').directive('areaChart', ['$window', function ($window) {
|
angular.module('app').directive('areaChart', ['$window', '$translate', function($window, $translate) {
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
scope:{
|
scope: {
|
||||||
config: '=',
|
config: '=',
|
||||||
series: '='
|
series: '='
|
||||||
},
|
},
|
||||||
@@ -11,61 +9,88 @@ angular.module('app').directive('areaChart', ['$window', function ($window) {
|
|||||||
var series = scope.series,
|
var series = scope.series,
|
||||||
config = scope.config,
|
config = scope.config,
|
||||||
labels = config.labels,
|
labels = config.labels,
|
||||||
margin = {top: 15, right: 15, bottom: 35, left: 50},
|
margin = { top: 15, right: 15, bottom: 35, left: 60 },
|
||||||
fmt = d3.format('.3r'),
|
fmt = d3.format('.3r'),
|
||||||
fmtLong = d3.format('.2f'),
|
fmtLong = d3.format('.2f'),
|
||||||
|
func = series.func,
|
||||||
|
drag = d3.behavior.drag(),
|
||||||
|
dragging = false,
|
||||||
// Define Axes
|
// Define Axes
|
||||||
xAxis = d3.svg.axis().outerTickSize(0).orient("bottom").tickFormat(d3.format('.2r')),
|
xAxis = d3.svg.axis().outerTickSize(0).orient('bottom').tickFormat(d3.format('.2r')),
|
||||||
yAxis = d3.svg.axis().outerTickSize(0).orient("left").tickFormat(fmt),
|
yAxis = d3.svg.axis().ticks(6).outerTickSize(0).orient('left').tickFormat(fmt),
|
||||||
x = d3.scale.linear(),
|
x = d3.scale.linear(),
|
||||||
y = d3.scale.linear();
|
y = d3.scale.linear(),
|
||||||
|
data = [];
|
||||||
|
|
||||||
// Create chart
|
// Create chart
|
||||||
var svg = d3.select(element[0]).append("svg");
|
var svg = d3.select(element[0]).append('svg');
|
||||||
var vis = svg.append("g").attr("transform", "translate(" + margin.left + "," + margin.top + ")");
|
var vis = svg.append('g').attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
|
||||||
|
|
||||||
// Define Area
|
// Define Area
|
||||||
var area = d3.svg.area();
|
var area = d3.svg.area();
|
||||||
|
|
||||||
var gradient = vis.append("defs")
|
var gradient = vis.append('defs')
|
||||||
.append("linearGradient")
|
.append('linearGradient')
|
||||||
.attr("id", "gradient")
|
.attr('id', 'gradient')
|
||||||
.attr("x1", "0%").attr("y1", "0%")
|
.attr('x1', '0%').attr('y1', '0%')
|
||||||
.attr("x2", "100%").attr("y2", "100%")
|
.attr('x2', '100%').attr('y2', '100%')
|
||||||
.attr("spreadMethod", "pad");
|
.attr('spreadMethod', 'pad');
|
||||||
gradient.append("stop")
|
gradient.append('stop')
|
||||||
.attr("offset", "0%")
|
.attr('offset', '0%')
|
||||||
.attr("stop-color", "#ff8c0d")
|
.attr('stop-color', '#ff8c0d')
|
||||||
.attr("stop-opacity", 1);
|
.attr('stop-opacity', 1);
|
||||||
gradient.append("stop")
|
gradient.append('stop')
|
||||||
.attr("offset", "100%")
|
.attr('offset', '100%')
|
||||||
.attr("stop-color", "#ff3b00")
|
.attr('stop-color', '#ff3b00')
|
||||||
.attr("stop-opacity", 1);
|
.attr('stop-opacity', 1);
|
||||||
|
|
||||||
// Create Y Axis SVG Elements
|
// Create Y Axis SVG Elements
|
||||||
var yTxt = vis.append("g").attr("class", "y axis")
|
var yTxt = vis.append('g').attr('class', 'y axis')
|
||||||
.append("text")
|
.append('text')
|
||||||
.attr("transform", "rotate(-90)")
|
.attr('class', 'cap')
|
||||||
.attr("y", -40)
|
.attr('transform', 'rotate(-90)')
|
||||||
.attr("dy", ".1em")
|
.attr('y', -50)
|
||||||
.style("text-anchor", "middle")
|
.attr('dy', '.1em')
|
||||||
.text(labels.yAxis.title + ' (' + labels.yAxis.unit + ')');
|
.style('text-anchor', 'middle')
|
||||||
|
.text($translate.instant(labels.yAxis.title) + ' (' + $translate.instant(labels.yAxis.unit) + ')');
|
||||||
// Create X Axis SVG Elements
|
// Create X Axis SVG Elements
|
||||||
var xLbl = vis.append("g").attr("class", "x axis");
|
var xLbl = vis.append('g').attr('class', 'x axis');
|
||||||
var xTxt = xLbl.append("text")
|
var xTxt = xLbl.append('text')
|
||||||
.attr("y", 30)
|
.attr('y', 30)
|
||||||
.attr("dy", ".1em")
|
.attr('dy', '.1em')
|
||||||
.style("text-anchor", "middle")
|
.style('text-anchor', 'middle')
|
||||||
.text(labels.xAxis.title + ' (' + labels.xAxis.unit + ')');
|
.text($translate.instant(labels.xAxis.title) + ' (' + $translate.instant(labels.xAxis.unit) + ')');
|
||||||
|
|
||||||
// Create and Add tooltip
|
// Create and Add tooltip
|
||||||
var tip = vis.append("g").style("display", "none");
|
var tip = vis.append('g').style('display', 'none');
|
||||||
tip.append("rect").attr("width","4em").attr("height", "2em").attr("x", "0.5em").attr("y","-1em").attr("class","tip");
|
tip.append('rect').attr('width', '4.5em').attr('height', '2em').attr('x', '0.5em').attr('y', '-1em').attr('class', 'tip');
|
||||||
tip.append("circle")
|
tip.append('circle')
|
||||||
.attr("class", "marker")
|
.attr('class', 'marker')
|
||||||
.attr("r", 4);
|
.attr('r', 4);
|
||||||
tip.append("text").attr("class", 'label x').attr("y", "-0.1em");
|
tip.append('text').attr('class', 'label x').attr('y', '-0.25em');
|
||||||
tip.append("text").attr("class", 'label y').attr("y", '0.7em');
|
tip.append('text').attr('class', 'label y').attr('y', '0.85em');
|
||||||
|
|
||||||
|
vis.insert('path', ':first-child') // Area/Path to appear behind everything else
|
||||||
|
.data([data])
|
||||||
|
.attr('class', 'area')
|
||||||
|
.attr('fill', 'url(#gradient)')
|
||||||
|
.attr('d', area)
|
||||||
|
.on('mouseover', showTip)
|
||||||
|
.on('mouseout', hideTip)
|
||||||
|
.on('mousemove', moveTip)
|
||||||
|
.call(drag);
|
||||||
|
|
||||||
|
drag
|
||||||
|
.on('dragstart', function() {
|
||||||
|
dragging = true;
|
||||||
|
moveTip.call(this);
|
||||||
|
showTip();
|
||||||
|
})
|
||||||
|
.on('dragend', function() {
|
||||||
|
dragging = false;
|
||||||
|
hideTip();
|
||||||
|
})
|
||||||
|
.on('drag', moveTip);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Watch for changes in the series data (mass changes, etc)
|
* Watch for changes in the series data (mass changes, etc)
|
||||||
@@ -75,57 +100,65 @@ angular.module('app').directive('areaChart', ['$window', function ($window) {
|
|||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
var width = element[0].parentElement.offsetWidth,
|
var width = element[0].parentElement.offsetWidth,
|
||||||
height = width * 0.6,
|
height = width * 0.5,
|
||||||
w = width - margin.left - margin.right,
|
w = width - margin.left - margin.right,
|
||||||
h = height - margin.top - margin.bottom,
|
h = height - margin.top - margin.bottom;
|
||||||
data = [],
|
|
||||||
func = series.func;
|
data.length = 0; // Reset Data array
|
||||||
|
|
||||||
if (series.xMax == series.xMin) {
|
if (series.xMax == series.xMin) {
|
||||||
var yVal = func(series.xMin);
|
var yVal = func(series.xMin);
|
||||||
data.push([ series.xMin, yVal ]);
|
data.push([ series.xMin, yVal ]);
|
||||||
data.push([ series.xMin, yVal ]);
|
data.push([ series.xMin, yVal ]);
|
||||||
area.x(function(d,i) { return i * w; }).y0(h).y1(function(d) { return y(d[1]); });
|
area.x(function(d, i) { return i * w; }).y0(h).y1(function(d) { return y(d[1]); });
|
||||||
} else {
|
} else {
|
||||||
for (var d = series.xMin; d <= series.xMax; d += 1) {
|
for (var val = series.xMin; val <= series.xMax; val += 1) {
|
||||||
data.push([ d, func(d) ]);
|
data.push([ val, func(val) ]);
|
||||||
}
|
}
|
||||||
area.x(function(d) { return x(d[0]); }).y0(h).y1(function(d) { return y(d[1]); });
|
area.x(function(d) { return x(d[0]); }).y0(h).y1(function(d) { return y(d[1]); });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update Chart Size
|
// Update Chart Size
|
||||||
svg.attr("width", width).attr("height", height);
|
svg.attr('width', width).attr('height', height);
|
||||||
// Update domain and scale for axes;
|
// Update domain and scale for axes
|
||||||
x.range([0, w]).domain([series.xMin, series.xMax]);
|
x.range([0, w]).domain([series.xMin, series.xMax]).clamp(true);
|
||||||
xAxis.scale(x);
|
xAxis.scale(x);
|
||||||
xLbl.attr("transform", "translate(0," + h + ")");
|
xLbl.attr('transform', 'translate(0,' + h + ')');
|
||||||
xTxt.attr("x", w/2);
|
xTxt.attr('x', w / 2);
|
||||||
y.range([h, 0]).domain([series.yMin, series.yMax]);
|
y.range([h, 0]).domain([series.yMin, series.yMax]);
|
||||||
yAxis.scale(y);
|
yAxis.scale(y);
|
||||||
yTxt.attr("x", -h/2);
|
yTxt.attr('x', -h / 2);
|
||||||
vis.selectAll(".y.axis").call(yAxis);
|
vis.selectAll('.y.axis').call(yAxis);
|
||||||
vis.selectAll(".x.axis").call(xAxis);
|
vis.selectAll('.x.axis').call(xAxis);
|
||||||
|
|
||||||
// Remove existing elements
|
vis.selectAll('path.area') // Area/Path to appear behind everything else
|
||||||
vis.selectAll('path.area').remove();
|
.data([data])
|
||||||
|
.attr('d', area);
|
||||||
vis.insert("path",':first-child') // Area/Path to appear behind everything else
|
|
||||||
.datum(data)
|
|
||||||
.attr("class", "area")
|
|
||||||
.attr('fill', 'url(#gradient)')
|
|
||||||
.attr("d", area)
|
|
||||||
.on("mouseover", function() { tip.style("display", null); })
|
|
||||||
.on("mouseout", function() { tip.style("display", "none"); })
|
|
||||||
.on('mousemove', function() {
|
|
||||||
var xPos = d3.mouse(this)[0], x0 = x.invert(xPos), y0 = func(x0), flip = (xPos > w * 0.75);
|
|
||||||
tip.attr("transform", "translate(" + xPos + "," + y(y0) + ")");
|
|
||||||
tip.selectAll('rect').attr("x", flip? '-4.5em' : "0.5em").style("text-anchor", flip? 'end' : 'start');
|
|
||||||
tip.selectAll('text.label').attr("x", flip? "-1em" : "1em").style("text-anchor", flip? 'end' : 'start');
|
|
||||||
tip.select('text.label.x').text(fmtLong(x0) + ' ' + labels.xAxis.unit);
|
|
||||||
tip.select('text.label.y').text(fmtLong(y0) + ' ' + labels.yAxis.unit);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showTip() {
|
||||||
|
tip.style('display', null);
|
||||||
|
}
|
||||||
|
|
||||||
|
function hideTip() {
|
||||||
|
if (!dragging) {
|
||||||
|
tip.style('display', 'none');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function moveTip() {
|
||||||
|
var xPos = d3.mouse(this)[0], x0 = x.invert(xPos), y0 = func(x0), flip = (x0 / x.domain()[1] > 0.65);
|
||||||
|
tip.attr('transform', 'translate(' + x(x0) + ',' + y(y0) + ')');
|
||||||
|
tip.selectAll('rect').attr('x', flip ? '-5.75em' : '0.5em').style('text-anchor', flip ? 'end' : 'start');
|
||||||
|
tip.selectAll('text.label').attr('x', flip ? '-2em' : '1em').style('text-anchor', flip ? 'end' : 'start');
|
||||||
|
tip.select('text.label.x').text(fmtLong(x0) + ' ' + $translate.instant(labels.xAxis.unit));
|
||||||
|
tip.select('text.label.y').text(fmtLong(y0) + ' ' + $translate.instant(labels.yAxis.unit));
|
||||||
|
}
|
||||||
|
|
||||||
|
scope.$on('$destroy', function() {
|
||||||
|
angular.element($window).unbind('orientationchange resize render', render);
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}]);
|
}]);
|
||||||
@@ -1,89 +1,90 @@
|
|||||||
angular.module('app').directive('barChart', function () {
|
angular.module('app').directive('barChart', ['$window', '$translate', '$rootScope', function($window, $translate, $rootScope) {
|
||||||
|
|
||||||
function bName (build) {
|
function bName(build) {
|
||||||
return build.buildName + '\n' + build.name;
|
return build.buildName + '\n' + build.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
var insertLinebreaks = function (d) {
|
function insertLinebreaks(d) {
|
||||||
var el = d3.select(this);
|
var el = d3.select(this);
|
||||||
var words = d.split('\n');
|
var lines = d.split('\n');
|
||||||
el.text('').attr('y', -5);
|
el.text('').attr('y', -6);
|
||||||
for (var i = 0; i < words.length; i++) {
|
for (var i = 0; i < lines.length; i++) {
|
||||||
var tspan = el.append('tspan').text(words[i]);
|
var tspan = el.append('tspan').text(lines[i].length > 18 ? lines[i].substring(0, 15) + '...' : lines[i]);
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
tspan.attr('x', -9).attr('dy', 10);
|
tspan.attr('x', -9).attr('dy', '1em');
|
||||||
|
} else {
|
||||||
|
tspan.attr('class', 'primary');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
scope:{
|
scope: {
|
||||||
data: '=',
|
data: '=',
|
||||||
facet: '=',
|
facet: '='
|
||||||
height: '=',
|
|
||||||
width: '='
|
|
||||||
},
|
},
|
||||||
link: function(scope, element) {
|
link: function(scope, element) {
|
||||||
var color = d3.scale.ordinal().range([ '#7b6888', '#6b486b', '#3182bd', '#a05d56', '#d0743c']),
|
var color = d3.scale.ordinal().range([ '#7b6888', '#6b486b', '#3182bd', '#a05d56', '#d0743c']),
|
||||||
width = scope.width,
|
|
||||||
labels = scope.facet.lbls,
|
labels = scope.facet.lbls,
|
||||||
fmt = scope.facet.fmt,
|
fmt = null,
|
||||||
|
unit = null,
|
||||||
properties = scope.facet.props,
|
properties = scope.facet.props,
|
||||||
unit = scope.facet.unit,
|
margin = { top: 10, right: 20, bottom: 40, left: 150 },
|
||||||
margin = {top: 10, right: 20, bottom: 35, left: 150},
|
y0 = d3.scale.ordinal(),
|
||||||
w = width - margin.left - margin.right;
|
y1 = d3.scale.ordinal(),
|
||||||
|
x = d3.scale.linear(),
|
||||||
|
yAxis = d3.svg.axis().scale(y0).outerTickSize(0).orient('left'),
|
||||||
|
xAxis = d3.svg.axis().scale(x).ticks(5).outerTickSize(0).orient('bottom');
|
||||||
|
|
||||||
// Create chart
|
// Create chart
|
||||||
var svg = d3.select(element[0]).append('svg').attr('width', width);
|
var svg = d3.select(element[0]).append('svg');
|
||||||
var vis = svg.append('g').attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
|
var vis = svg.append('g').attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
|
||||||
|
|
||||||
// Create and Add tooltip
|
// Create and Add tooltip
|
||||||
var tip = d3.tip()
|
var tip = d3.tip()
|
||||||
.attr('class', 'd3-tip')
|
.attr('class', 'd3-tip')
|
||||||
.html(function(property, propertyIndex) {
|
.html(function(property, propertyIndex) {
|
||||||
return (labels? (labels[propertyIndex] + ': ') : '') + fmt(property.value) + ' ' + unit;
|
return (labels ? ($translate.instant(labels[propertyIndex]) + ': ') : '') + fmt(property.value) + ' ' + unit;
|
||||||
});
|
});
|
||||||
|
|
||||||
vis.call(tip);
|
vis.call(tip);
|
||||||
|
|
||||||
// Create Y Axis SVG Elements
|
// Create Y Axis SVG Elements
|
||||||
vis.append('g').attr('class', 'y axis');
|
vis.append('g').attr('class', 'y axis');
|
||||||
vis.selectAll('g.y.axis g text').each(insertLinebreaks);
|
vis.selectAll('g.y.axis g text').each(insertLinebreaks);
|
||||||
// Create X Axis SVG Elements
|
// Create X Axis SVG Elements
|
||||||
vis.append('g')
|
var xAxisLbl = vis.append('g')
|
||||||
.attr('class', 'x axis')
|
.attr('class', 'x axis cap')
|
||||||
.append('text')
|
.append('text')
|
||||||
.attr('y', 30)
|
.attr('y', 33)
|
||||||
.attr('x', w/2)
|
|
||||||
.attr('dy', '.1em')
|
.attr('dy', '.1em')
|
||||||
.style('text-anchor', 'middle')
|
.style('text-anchor', 'middle');
|
||||||
.text(scope.facet.title + (unit? (' (' + unit + ')') : ''));
|
|
||||||
|
|
||||||
|
updateFormats();
|
||||||
|
|
||||||
/**
|
function render() {
|
||||||
* Watch for changes in the comparison array (ships added/removed, sorting)
|
|
||||||
*/
|
|
||||||
scope.$watchCollection('data', function() {
|
|
||||||
var data = scope.data,
|
var data = scope.data,
|
||||||
height = 45 + (25 * data.length),
|
width = element[0].offsetWidth,
|
||||||
|
w = width - margin.left - margin.right,
|
||||||
|
height = 50 + (30 * data.length * $rootScope.sizeRatio),
|
||||||
h = height - margin.top - margin.bottom,
|
h = height - margin.top - margin.bottom,
|
||||||
maxVal = d3.max(data, function(d) { return d3.max(properties, function(p) {return d[p]; }); }),
|
maxVal = d3.max(data, function(d) { return d3.max(properties, function(p) {return d[p]; }); });
|
||||||
y0 = d3.scale.ordinal().domain(data.map(bName)).rangeRoundBands([0, h],0.3),
|
|
||||||
y1 = d3.scale.ordinal().domain(properties).rangeRoundBands([0, y0.rangeBand()]),
|
|
||||||
x = d3.scale.linear().range([0, w]).domain([0, maxVal]),
|
|
||||||
yAxis = d3.svg.axis().scale(y0).outerTickSize(0).orient('left'),
|
|
||||||
xAxis = d3.svg.axis().scale(x).outerTickSize(0).orient('bottom').tickFormat(d3.format('.2s'));
|
|
||||||
|
|
||||||
// Update chart size
|
// Update chart size
|
||||||
svg.attr('height', height);
|
svg.attr('width', width).attr('height', height);
|
||||||
|
|
||||||
// Remove existing elements
|
// Remove existing elements
|
||||||
vis.selectAll('.ship').remove();
|
vis.selectAll('.ship').remove();
|
||||||
vis.selectAll('rect').remove();
|
vis.selectAll('rect').remove();
|
||||||
|
|
||||||
// Update X & Y Axis
|
// Update X & Y Axis
|
||||||
|
x.range([0, w]).domain([0, maxVal]);
|
||||||
|
y0.domain(data.map(bName)).rangeRoundBands([0, h], 0.3);
|
||||||
|
y1.domain(properties).rangeRoundBands([0, y0.rangeBand()]);
|
||||||
vis.selectAll('.y.axis').call(yAxis);
|
vis.selectAll('.y.axis').call(yAxis);
|
||||||
vis.selectAll('.x.axis').attr('transform', 'translate(0,' + h + ')').call(xAxis);
|
vis.selectAll('.x.axis').attr('transform', 'translate(0,' + h + ')').call(xAxis);
|
||||||
|
xAxisLbl.attr('x', w / 2);
|
||||||
// Update Y-Axis labels
|
// Update Y-Axis labels
|
||||||
vis.selectAll('g.y.axis g text').each(insertLinebreaks);
|
vis.selectAll('g.y.axis g text').each(insertLinebreaks);
|
||||||
|
|
||||||
@@ -97,25 +98,37 @@ angular.module('app').directive('barChart', function () {
|
|||||||
.data(function(build) {
|
.data(function(build) {
|
||||||
var o = [];
|
var o = [];
|
||||||
for (var i = 0; i < properties.length; i++) {
|
for (var i = 0; i < properties.length; i++) {
|
||||||
o.push({name: properties[i], value:build[properties[i]]});
|
o.push({ name: properties[i], value: build[properties[i]] });
|
||||||
}
|
}
|
||||||
return o;
|
return o;
|
||||||
})
|
})
|
||||||
.enter().append('rect')
|
.enter().append('rect')
|
||||||
.attr('height', y1.rangeBand())
|
.attr('height', y1.rangeBand())
|
||||||
.attr('x',0)
|
.attr('x', 0)
|
||||||
.attr('y', function(d) {return y1(d.name); })
|
.attr('y', function(d) {return y1(d.name); })
|
||||||
.attr('width', function(d) { return x(d.value); })
|
.attr('width', function(d) { return x(d.value); })
|
||||||
.on('mouseover', tip.show)
|
.on('mouseover', tip.show)
|
||||||
.on('mouseout', tip.hide)
|
.on('mouseout', tip.hide)
|
||||||
.style('fill', function(d) { return color(d.name); });
|
.style('fill', function(d) { return color(d.name); });
|
||||||
|
|
||||||
});
|
}
|
||||||
|
|
||||||
|
function updateFormats() {
|
||||||
|
fmt = $rootScope[scope.facet.fmt];
|
||||||
|
unit = $translate.instant(scope.facet.unit);
|
||||||
|
xAxisLbl.text($translate.instant(scope.facet.title) + (unit ? (' (' + $translate.instant(unit) + ')') : ''));
|
||||||
|
xAxis.tickFormat($rootScope.localeFormat.numberFormat('.2s'));
|
||||||
|
render();
|
||||||
|
}
|
||||||
|
|
||||||
|
angular.element($window).bind('orientationchange resize render', render);
|
||||||
|
scope.$watchCollection('data', render); // Watch for changes in the comparison array
|
||||||
|
scope.$on('languageChanged', updateFormats);
|
||||||
scope.$on('$destroy', function() {
|
scope.$on('$destroy', function() {
|
||||||
|
angular.element($window).unbind('orientationchange resize render', render);
|
||||||
tip.destroy(); // Remove the tooltip from the DOM
|
tip.destroy(); // Remove the tooltip from the DOM
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
}]);
|
||||||
|
|||||||
@@ -1,24 +1,24 @@
|
|||||||
angular.module('app').directive('comparisonTable', ['$state', function ($state) {
|
angular.module('app').directive('comparisonTable', ['$state', '$translate', '$rootScope', function($state, $translate, $rootScope) {
|
||||||
|
|
||||||
function tblHeader(facets) {
|
function tblHeader(facets) {
|
||||||
var r1 = ['<tr class="main"><th rowspan="2" class="prop" prop="name">Ship</th><th rowspan="2" class="prop" prop="buildName">Build</th>'];
|
var r1 = ['<tr class="main"><th rowspan="2" class="prop" prop="name">', $translate.instant('SHIP'), '</th><th rowspan="2" class="prop" prop="buildName">', $translate.instant('BUILD'), '</th>'];
|
||||||
var r2 = [];
|
var r2 = [];
|
||||||
for (var i = 0, l = facets.length; i < l; i++) {
|
for (var i = 0, l = facets.length; i < l; i++) {
|
||||||
if (facets[i].active) {
|
if (facets[i].active) {
|
||||||
var f = facets[i];
|
var f = facets[i];
|
||||||
var p = f.props;
|
var p = f.props;
|
||||||
var pl = p.length;
|
var pl = p.length;
|
||||||
r1.push('<th rowspan="', f.props.length == 1 ? 2 : 1,'" colspan="',pl,'"');
|
r1.push('<th rowspan="', f.props.length == 1 ? 2 : 1, '" colspan="', pl, '"');
|
||||||
|
|
||||||
if (pl == 1) {
|
if (pl == 1) {
|
||||||
r1.push(' prop="',p[0],'" class="prop"');
|
r1.push(' prop="', p[0], '" class="prop"');
|
||||||
} else {
|
} else {
|
||||||
for (var j = 0; j < pl; j++) {
|
for (var j = 0; j < pl; j++) {
|
||||||
r2.push('<th prop="', p[j], '" class="prop ', j === 0? 'lft' : '', ' ">' , f.lbls[j], '</th>');
|
r2.push('<th prop="', p[j], '" class="prop ', j === 0 ? 'lft' : '', '">', $translate.instant(f.lbls[j]), '</th>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
r1.push('>', f.title ,'</th>');
|
r1.push('>', $translate.instant(f.title), '</th>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
r1.push('</tr><tr>');
|
r1.push('</tr><tr>');
|
||||||
@@ -30,23 +30,23 @@ angular.module('app').directive('comparisonTable', ['$state', function ($state)
|
|||||||
function tblBody(facets, builds) {
|
function tblBody(facets, builds) {
|
||||||
var body = [];
|
var body = [];
|
||||||
|
|
||||||
if(builds.length === 0) {
|
if (builds.length === 0) {
|
||||||
return '<td colspan="100" class="cen">No builds added to comparison!</td';
|
return '<td colspan="100" class="cen">No builds added to comparison!</td';
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0, l = builds.length; i < l; i++) {
|
for (var i = 0, l = builds.length; i < l; i++) {
|
||||||
var b = builds[i];
|
var b = builds[i];
|
||||||
body.push('<tr class="tr">');
|
body.push('<tr class="tr">');
|
||||||
var href = $state.href('outfit',{shipId: b.id, code: b.code, bn: b.buildName});
|
var href = $state.href('outfit', { shipId: b.id, code: b.code, bn: b.buildName });
|
||||||
body.push('<td class="tl"><a href="', href,'">', b.name,'</a></td>');
|
body.push('<td class="tl"><a href="', href, '">', b.name, '</a></td>');
|
||||||
body.push('<td class="tl"><a href="', href,'">', b.buildName,'</a></td>');
|
body.push('<td class="tl"><a href="', href, '">', b.buildName, '</a></td>');
|
||||||
|
|
||||||
for (var j = 0, fl = facets.length; j < fl; j++) {
|
for (var j = 0, fl = facets.length; j < fl; j++) {
|
||||||
if (facets[j].active) {
|
if (facets[j].active) {
|
||||||
var f = facets[j];
|
var f = facets[j];
|
||||||
var p = f.props;
|
var p = f.props;
|
||||||
for (var k = 0, pl = p.length; k < pl; k++) {
|
for (var k = 0, pl = p.length; k < pl; k++) {
|
||||||
body.push('<td>', f.fmt(b[p[k]]), '<u> ', f.unit, '</u></td>');
|
body.push('<td>', $rootScope[f.fmt](b[p[k]]), '<u> ', $translate.instant(f.unit), '</u></td>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,13 +59,13 @@ angular.module('app').directive('comparisonTable', ['$state', function ($state)
|
|||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
|
|
||||||
link: function (scope, element) {
|
link: function(scope, element) {
|
||||||
var header = angular.element('<thead></thead>');
|
var header = angular.element('<thead></thead>');
|
||||||
var body = angular.element('<tbody></tbody>');
|
var body = angular.element('<tbody></tbody>');
|
||||||
element.append(header);
|
element.append(header);
|
||||||
element.append(body);
|
element.append(body);
|
||||||
|
|
||||||
var updateAll = function (){
|
var updateAll = function() {
|
||||||
header.html(tblHeader(scope.facets));
|
header.html(tblHeader(scope.facets));
|
||||||
body.html(tblBody(scope.facets, scope.builds));
|
body.html(tblBody(scope.facets, scope.builds));
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,53 +1,58 @@
|
|||||||
angular.module('app').directive('componentSelect', function () {
|
angular.module('app').directive('componentSelect', ['$translate', function($translate) {
|
||||||
|
|
||||||
// Generting the HTML in this manner is MUCH faster than using an angular template.
|
// Generting the HTML in this manner is MUCH faster than using an angular template.
|
||||||
|
|
||||||
function appendGroup(list, opts, cid, mass) {
|
function appendGroup(list, opts, cid, mass, checkWarning) {
|
||||||
var prevClass = null, prevRating = null;
|
var prevClass = null, prevRating = null;
|
||||||
for (var i = 0; i < opts.length; i++) {
|
for (var i = 0; i < opts.length; i++) {
|
||||||
var o = opts[i];
|
var o = opts[i];
|
||||||
var id = o.id || (o.class + o.rating); // Common components' ID is their class and rating
|
var id = o.id || (o.class + o.rating); // Standard components' ID is their class and rating
|
||||||
|
|
||||||
if(i > 0 && opts.length > 3 && o.class != prevClass && (!o.grp || o.rating != prevRating || o.mode)) {
|
if (i > 0 && opts.length > 3 && o.class != prevClass && (o.rating != prevRating || o.mode) && o.grp != 'pa') {
|
||||||
list.push('<br/>');
|
list.push('<br/>');
|
||||||
}
|
}
|
||||||
|
|
||||||
list.push('<li class="', o.name? 'lc' : 'c');
|
list.push('<li class="', o.name ? 'lc' : 'c');
|
||||||
|
|
||||||
if (cid == id) {
|
if (cid == id) {
|
||||||
list.push(' active');
|
list.push(' active');
|
||||||
}
|
}
|
||||||
|
|
||||||
list.push((o.maxmass && mass > o.maxmass)? ' disabled"' : '" cpid="', id, '">');
|
if (checkWarning && checkWarning(opts[i])) {
|
||||||
|
list.push(' warning');
|
||||||
if(o.mode) {
|
|
||||||
list.push('<svg cpid="', id, '" class="icon lg"><use xlink:href="#mount-', o.mode , '"></use></svg> ');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
list.push(o.class, o.rating);
|
list.push(((o.maxmass && (mass + (o.mass ? o.mass : 0)) > o.maxmass) ? ' disabled"' : '" cpid="' + id + '"'), '>');
|
||||||
|
|
||||||
if(o.missile) {
|
if (o.mode) {
|
||||||
|
list.push('<svg class="icon lg"><use xlink:href="#mount-', o.mode, '"></use></svg> ');
|
||||||
|
}
|
||||||
|
|
||||||
|
list.push('<span>', o.class, o.rating);
|
||||||
|
|
||||||
|
if (o.missile) {
|
||||||
list.push('/' + o.missile);
|
list.push('/' + o.missile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(o.name) {
|
if (o.name) {
|
||||||
list.push(' ' + o.name);
|
list.push(' ' + $translate.instant(o.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
list.push('</li>');
|
list.push('</span></li>');
|
||||||
prevClass = o.class;
|
prevClass = o.class;
|
||||||
prevRating= o.rating;
|
prevRating = o.rating;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
scope:{
|
scope: {
|
||||||
opts: '=', // Component Options object
|
opts: '=', // Component Options object
|
||||||
groups: '=', // Groups of Component Options
|
groups: '=', // Groups of Component Options
|
||||||
mass: '=', // Current ship unladen mass
|
mass: '=', // Current ship mass
|
||||||
s: '=' // Current Slot
|
s: '=', // Current Slot
|
||||||
|
warning: '=' // Check warning function
|
||||||
},
|
},
|
||||||
link: function(scope, element) {
|
link: function(scope, element) {
|
||||||
var list = [];
|
var list = [];
|
||||||
@@ -55,21 +60,21 @@ angular.module('app').directive('componentSelect', function () {
|
|||||||
var component = scope.s.c; // Slot's Current Component (may be null/undefined)
|
var component = scope.s.c; // Slot's Current Component (may be null/undefined)
|
||||||
var opts = scope.opts;
|
var opts = scope.opts;
|
||||||
var groups = scope.groups;
|
var groups = scope.groups;
|
||||||
var mass = scope.mass || 0;
|
var mass = (scope.mass ? scope.mass : 0) - (component && component.mass ? component.mass : 0); // Mass minus the currently selected component
|
||||||
|
|
||||||
if(groups) {
|
if (groups) {
|
||||||
// At present time slots with grouped options (Hardpoints and Internal) can be empty
|
// At present time slots with grouped options (Hardpoints and Internal) can be empty
|
||||||
list.push('<div class="empty-c" cpid="empty">EMPTY</div>');
|
list.push('<div class="empty-c upp" cpid="empty">', $translate.instant('empty'), '</div>');
|
||||||
for (var g in groups) {
|
for (var g in groups) {
|
||||||
var grp = groups[g];
|
var grp = groups[g];
|
||||||
var grpCode = grp[Object.keys(grp)[0]].grp; // Nasty operation to get the grp property of the first/any single component
|
var grpCode = grp[Object.keys(grp)[0]].grp; // Nasty operation to get the grp property of the first/any single component
|
||||||
list.push('<div id="', grpCode ,'" class="select-group">', g, '</div><ul>');
|
list.push('<div id="', grpCode, '" class="select-group cap">', $translate.instant(g), '</div><ul>');
|
||||||
appendGroup(list, grp, cid, mass);
|
appendGroup(list, grp, cid, mass, scope.warning);
|
||||||
list.push('</ul>');
|
list.push('</ul>');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
list.push('<ul>');
|
list.push('<ul>');
|
||||||
appendGroup(list, opts, cid, mass);
|
appendGroup(list, opts, cid, mass, scope.warning);
|
||||||
list.push('</ul>');
|
list.push('</ul>');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,4 +87,4 @@ angular.module('app').directive('componentSelect', function () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
}]);
|
||||||
|
|||||||
14
app/js/directives/directive-context-menu.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
angular.module('app').directive('contextMenu', ['$parse', function($parse) {
|
||||||
|
return function(scope, element, attrs) {
|
||||||
|
var fn = $parse(attrs.contextMenu);
|
||||||
|
|
||||||
|
element.bind('contextmenu', function(e) {
|
||||||
|
if (!e.shiftKey) {
|
||||||
|
scope.$apply(function() {
|
||||||
|
e.preventDefault();
|
||||||
|
fn(scope, { $event: e });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}]);
|
||||||
@@ -1,50 +1,69 @@
|
|||||||
angular.module('app').directive('shipyardHeader', ['lodash', '$rootScope', 'Persist', 'ShipsDB', function (_, $rootScope, Persist, ships) {
|
angular.module('app').directive('shipyardHeader', ['lodash', '$window', '$rootScope', '$state', 'Persist', 'Serializer', 'ShipsDB', function(_, $window, $rootScope, $state, Persist, Serializer, ships) {
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
templateUrl: 'views/_header.html',
|
templateUrl: 'views/_header.html',
|
||||||
scope: true,
|
scope: true,
|
||||||
link: function (scope) {
|
link: function(scope) {
|
||||||
scope.openedMenu = null;
|
scope.openedMenu = null;
|
||||||
scope.ships = ships;
|
scope.ships = ships;
|
||||||
scope.allBuilds = Persist.builds;
|
scope.allBuilds = Persist.builds;
|
||||||
scope.buildsList = Object.keys(scope.allBuilds).sort();
|
scope.buildsList = Object.keys(scope.allBuilds).sort();
|
||||||
scope.allComparisons = Persist.comparisons;
|
scope.allComparisons = Object.keys(Persist.comparisons).sort();
|
||||||
scope.bs = Persist.state;
|
scope.bs = Persist.state;
|
||||||
|
|
||||||
// Insurance options and management here for now.
|
var win = angular.element($window); // Angularized window object for event triggering
|
||||||
$rootScope.insurance = {
|
|
||||||
opts: [
|
|
||||||
{ name:'Standard', pct: 0.05 },
|
|
||||||
{ name:'Alpha', pct: 0.025 },
|
|
||||||
{ name:'Beta', pct: 0.035 }
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
var insIndex = _.findIndex($rootScope.insurance.opts, 'name', Persist.getInsurance());
|
var insIndex = _.findIndex($rootScope.insurance.opts, 'name', Persist.getInsurance());
|
||||||
$rootScope.insurance.current = $rootScope.insurance.opts[insIndex != -1? insIndex : 0];
|
var savedDiscounts = Persist.getDiscount() || [1, 1];
|
||||||
|
$rootScope.insurance.current = $rootScope.insurance.opts[insIndex != -1 ? insIndex : 0];
|
||||||
// Close menus if a navigation change event occurs
|
$rootScope.discounts.ship = savedDiscounts[0];
|
||||||
$rootScope.$on('$stateChangeStart',function(){
|
$rootScope.discounts.components = savedDiscounts[1];
|
||||||
scope.openedMenu = null;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Listen to close event to close opened menus or modals
|
|
||||||
$rootScope.$on('close', function () {
|
|
||||||
scope.openedMenu = null;
|
|
||||||
$rootScope.showAbout = false;
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save selected insurance option
|
* Save selected insurance option
|
||||||
*/
|
*/
|
||||||
scope.updateInsurance = function(){
|
scope.updateInsurance = function() {
|
||||||
Persist.setInsurance($rootScope.insurance.current.name);
|
Persist.setInsurance($rootScope.insurance.current.name);
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.openMenu = function (e, menu) {
|
/**
|
||||||
|
* Save selected discount option
|
||||||
|
*/
|
||||||
|
scope.updateDiscount = function() {
|
||||||
|
Persist.setDiscount([$rootScope.discounts.ship, $rootScope.discounts.components]);
|
||||||
|
$rootScope.$broadcast('discountChange');
|
||||||
|
};
|
||||||
|
|
||||||
|
scope.backup = function(e) {
|
||||||
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if(menu == scope.openedMenu) {
|
scope.openedMenu = null;
|
||||||
|
$state.go('modal.export', {
|
||||||
|
title: 'backup',
|
||||||
|
data: Persist.getAll(),
|
||||||
|
description: 'PHRASE_BACKUP_DESC'
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
scope.detailedExport = function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
scope.openedMenu = null;
|
||||||
|
$state.go('modal.export', {
|
||||||
|
title: 'detailed export',
|
||||||
|
data: Serializer.toDetailedExport(scope.allBuilds),
|
||||||
|
description: 'PHRASE_EXPORT_DESC'
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
scope.cleanedBuildList = function(shipId) {
|
||||||
|
return Object.keys(scope.allBuilds[shipId]);
|
||||||
|
};
|
||||||
|
|
||||||
|
scope.openMenu = function(e, menu) {
|
||||||
|
e.stopPropagation();
|
||||||
|
if (menu == scope.openedMenu) {
|
||||||
scope.openedMenu = null;
|
scope.openedMenu = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -53,18 +72,38 @@ angular.module('app').directive('shipyardHeader', ['lodash', '$rootScope', 'Pers
|
|||||||
scope.openedMenu = null;
|
scope.openedMenu = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (menu == 'comp') {
|
||||||
|
scope.allComparisons = Object.keys(Persist.comparisons).sort();
|
||||||
|
}
|
||||||
|
|
||||||
scope.openedMenu = menu;
|
scope.openedMenu = menu;
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.about = function(e) {
|
// Close menus if a navigation change event occurs
|
||||||
e.preventDefault();
|
$rootScope.$on('$stateChangeStart', function() {
|
||||||
e.stopPropagation();
|
|
||||||
scope.openedMenu = null;
|
scope.openedMenu = null;
|
||||||
$rootScope.showAbout = true;
|
});
|
||||||
|
|
||||||
|
// Listen to close event to close opened menus or modals
|
||||||
|
$rootScope.$on('close', function() {
|
||||||
|
scope.openedMenu = null;
|
||||||
|
});
|
||||||
|
|
||||||
|
scope.textSizeChange = function(size) {
|
||||||
|
if (size != $rootScope.sizeRatio) {
|
||||||
|
$rootScope.sizeRatio = size;
|
||||||
|
document.getElementById('main').style.fontSize = size + 'em';
|
||||||
|
Persist.setSizeRatio(size);
|
||||||
|
win.triggerHandler('resize');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$rootScope.hideAbout = function (){
|
scope.resetTextSize = function() {
|
||||||
$rootScope.showAbout = false;
|
if ($rootScope.sizeRatio != 1) {
|
||||||
|
scope.textSizeChange(1);
|
||||||
|
scope.$broadcast('reset', 1);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.$watchCollection('allBuilds', function() {
|
scope.$watchCollection('allBuilds', function() {
|
||||||
|
|||||||
247
app/js/directives/directive-line-chart.js
Normal file
@@ -0,0 +1,247 @@
|
|||||||
|
angular.module('app').directive('lineChart', ['$window', '$translate', '$rootScope', function($window, $translate, $rootScope) {
|
||||||
|
|
||||||
|
var RENDER_POINTS = 20; // Only render 20 points on the graph
|
||||||
|
|
||||||
|
return {
|
||||||
|
restrict: 'A',
|
||||||
|
scope: {
|
||||||
|
config: '=',
|
||||||
|
series: '='
|
||||||
|
},
|
||||||
|
link: function(scope, element) {
|
||||||
|
var seriesConfig = scope.series,
|
||||||
|
series = seriesConfig.series,
|
||||||
|
color = d3.scale.ordinal().range(scope.series.colors ? scope.series.colors : ['#ff8c0d']),
|
||||||
|
config = scope.config,
|
||||||
|
labels = config.labels,
|
||||||
|
margin = { top: 15, right: 15, bottom: 35, left: 60 },
|
||||||
|
fmtLong = null,
|
||||||
|
func = seriesConfig.func,
|
||||||
|
drag = d3.behavior.drag(),
|
||||||
|
dragging = false,
|
||||||
|
// Define Scales
|
||||||
|
x = d3.scale.linear(),
|
||||||
|
y = d3.scale.linear(),
|
||||||
|
// Define Axes
|
||||||
|
xAxis = d3.svg.axis().scale(x).outerTickSize(0).orient('bottom'),
|
||||||
|
yAxis = d3.svg.axis().scale(y).ticks(6).outerTickSize(0).orient('left'),
|
||||||
|
data = [];
|
||||||
|
|
||||||
|
// Create chart
|
||||||
|
var svg = d3.select(element[0]).append('svg');
|
||||||
|
var vis = svg.append('g').attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
|
||||||
|
var lines = vis.append('g');
|
||||||
|
|
||||||
|
// Define Area
|
||||||
|
var line = d3.svg.line().y(function(d) { return y(d[1]); });
|
||||||
|
|
||||||
|
// Create Y Axis SVG Elements
|
||||||
|
var yTxt = vis.append('g').attr('class', 'y axis')
|
||||||
|
.append('text')
|
||||||
|
.attr('class', 'cap')
|
||||||
|
.attr('transform', 'rotate(-90)')
|
||||||
|
.attr('y', -50)
|
||||||
|
.attr('dy', '.1em')
|
||||||
|
.style('text-anchor', 'middle');
|
||||||
|
|
||||||
|
// Create X Axis SVG Elements
|
||||||
|
var xLbl = vis.append('g').attr('class', 'x axis');
|
||||||
|
var xTxt = xLbl.append('text')
|
||||||
|
.attr('class', 'cap')
|
||||||
|
.attr('y', 30)
|
||||||
|
.attr('dy', '.1em')
|
||||||
|
.style('text-anchor', 'middle');
|
||||||
|
|
||||||
|
// xTxt.append('tspan').attr('class', 'metric');
|
||||||
|
// yTxt.append('tspan').attr('class', 'metric');
|
||||||
|
|
||||||
|
// Create and Add tooltip
|
||||||
|
var tipHeight = 2 + (1.25 * (series ? series.length : 0.75));
|
||||||
|
var tips = vis.append('g').style('display', 'none').attr('class', 'tooltip');
|
||||||
|
var markers = vis.append('g').style('display', 'none');
|
||||||
|
|
||||||
|
tips.append('rect')
|
||||||
|
.attr('height', tipHeight + 'em')
|
||||||
|
.attr('y', (-tipHeight / 2) + 'em')
|
||||||
|
.attr('class', 'tip');
|
||||||
|
|
||||||
|
tips.append('text')
|
||||||
|
.attr('class', 'label x')
|
||||||
|
.attr('dy', (-tipHeight / 2) + 'em')
|
||||||
|
.attr('y', '1.25em');
|
||||||
|
|
||||||
|
var background = vis.append('rect') // Background to capture hover/drag
|
||||||
|
.attr('fill-opacity', 0)
|
||||||
|
.on('mouseover', showTip)
|
||||||
|
.on('mouseout', hideTip)
|
||||||
|
.on('mousemove', moveTip)
|
||||||
|
.call(drag);
|
||||||
|
|
||||||
|
drag
|
||||||
|
.on('dragstart', function() {
|
||||||
|
dragging = true;
|
||||||
|
moveTip.call(this);
|
||||||
|
showTip();
|
||||||
|
})
|
||||||
|
.on('dragend', function() {
|
||||||
|
dragging = false;
|
||||||
|
hideTip();
|
||||||
|
})
|
||||||
|
.on('drag', moveTip);
|
||||||
|
|
||||||
|
updateFormats();
|
||||||
|
|
||||||
|
function render() {
|
||||||
|
var width = element[0].parentElement.offsetWidth,
|
||||||
|
height = width * 0.5 * $rootScope.sizeRatio,
|
||||||
|
xMax = seriesConfig.xMax,
|
||||||
|
xMin = seriesConfig.xMin,
|
||||||
|
yMax = seriesConfig.yMax,
|
||||||
|
yMin = seriesConfig.yMin,
|
||||||
|
w = width - margin.left - margin.right,
|
||||||
|
h = height - margin.top - margin.bottom,
|
||||||
|
c, s, val, yVal, delta;
|
||||||
|
|
||||||
|
data.length = 0; // Reset Data array
|
||||||
|
|
||||||
|
if (seriesConfig.xMax == seriesConfig.xMin) {
|
||||||
|
line.x(function(d, i) { return i * w; });
|
||||||
|
} else {
|
||||||
|
line.x(function(d) { return x(d[0]); });
|
||||||
|
}
|
||||||
|
|
||||||
|
if (series) {
|
||||||
|
for (s = 0; s < series.length; s++) {
|
||||||
|
data.push([]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xMax == xMin) {
|
||||||
|
yVal = func(xMin);
|
||||||
|
for (s = 0; s < series.length; s++) {
|
||||||
|
data[s].push( [ xMin, yVal[ series[s] ] ], [ 1, yVal[ series[s] ] ]);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
delta = (xMax - xMin) / RENDER_POINTS;
|
||||||
|
val = 0;
|
||||||
|
for (c = 0; c <= RENDER_POINTS; c++) {
|
||||||
|
yVal = func(val);
|
||||||
|
for (s = 0; s < series.length; s++) {
|
||||||
|
data[s].push([ val, yVal[ series[s] ] ]);
|
||||||
|
}
|
||||||
|
val += delta;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
var seriesData = [];
|
||||||
|
if (xMax == xMin) {
|
||||||
|
yVal = func(xMin);
|
||||||
|
seriesData.push([ xMin, yVal ], [ 1, yVal ]);
|
||||||
|
} else {
|
||||||
|
delta = (xMax - xMin) / RENDER_POINTS;
|
||||||
|
val = 0;
|
||||||
|
for (c = 0; c <= RENDER_POINTS; c++) {
|
||||||
|
seriesData.push([val, func(val) ]);
|
||||||
|
val += delta;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
data.push(seriesData);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update Chart Size
|
||||||
|
svg.attr('width', width).attr('height', height);
|
||||||
|
background.attr('height', h).attr('width', w);
|
||||||
|
|
||||||
|
// Update domain and scale for axes
|
||||||
|
x.range([0, w]).domain([xMin, xMax]).clamp(true);
|
||||||
|
xLbl.attr('transform', 'translate(0,' + h + ')');
|
||||||
|
xTxt.attr('x', w / 2);
|
||||||
|
y.range([h, 0]).domain([yMin, yMax]);
|
||||||
|
yTxt.attr('x', -h / 2);
|
||||||
|
vis.selectAll('.y.axis').call(yAxis);
|
||||||
|
vis.selectAll('.x.axis').call(xAxis);
|
||||||
|
|
||||||
|
lines.selectAll('path.line')
|
||||||
|
.data(data)
|
||||||
|
.attr('d', line) // Update existing series
|
||||||
|
.enter() // Add new series
|
||||||
|
.append('path')
|
||||||
|
.attr('class', 'line')
|
||||||
|
.attr('stroke', function(d, i) { return color(i); })
|
||||||
|
.attr('stroke-width', 2)
|
||||||
|
.attr('d', line);
|
||||||
|
|
||||||
|
tips.selectAll('text.label.y').data(data).enter()
|
||||||
|
.append('text')
|
||||||
|
.attr('class', 'label y')
|
||||||
|
.attr('dy', (-tipHeight / 2) + 'em')
|
||||||
|
.attr('y', function(d, i) { return 1.25 * (i + 2) + 'em'; });
|
||||||
|
|
||||||
|
markers.selectAll('circle.marker').data(data).enter().append('circle').attr('class', 'marker').attr('r', 4);
|
||||||
|
}
|
||||||
|
|
||||||
|
function showTip() {
|
||||||
|
tips.style('display', null);
|
||||||
|
markers.style('display', null);
|
||||||
|
}
|
||||||
|
|
||||||
|
function hideTip() {
|
||||||
|
if (!dragging) {
|
||||||
|
tips.style('display', 'none');
|
||||||
|
markers.style('display', 'none');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function moveTip() {
|
||||||
|
var xPos = d3.mouse(this)[0],
|
||||||
|
x0 = x.invert(xPos),
|
||||||
|
y0 = func(x0),
|
||||||
|
yTotal = 0,
|
||||||
|
flip = (x0 / x.domain()[1] > 0.65),
|
||||||
|
tipWidth = 0,
|
||||||
|
minTransY = (tips.selectAll('rect').node().getBoundingClientRect().height / 2) - margin.top;
|
||||||
|
|
||||||
|
tips.selectAll('text.label.y').text(function(d, i) {
|
||||||
|
var yVal = series ? y0[series[i]] : y0;
|
||||||
|
yTotal += yVal;
|
||||||
|
return (series ? $translate.instant(series[i]) : '') + ' ' + fmtLong(yVal);
|
||||||
|
}).append('tspan').attr('class', 'metric').text(' ' + $translate.instant(labels.yAxis.unit));
|
||||||
|
|
||||||
|
tips.selectAll('text').each(function() {
|
||||||
|
if (this.getBBox().width > tipWidth) {
|
||||||
|
tipWidth = Math.ceil(this.getBBox().width);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
tipWidth += 8;
|
||||||
|
markers.selectAll('circle.marker').attr('cx', x(x0)).attr('cy', function(d, i) { return y(series ? y0[series[i]] : y0); });
|
||||||
|
tips.selectAll('text.label').attr('x', flip ? -12 : 12).style('text-anchor', flip ? 'end' : 'start');
|
||||||
|
tips.selectAll('text.label.x').text(fmtLong(x0)).append('tspan').attr('class', 'metric').text(' ' + $translate.instant(labels.xAxis.unit));
|
||||||
|
tips.attr('transform', 'translate(' + x(x0) + ',' + Math.max(minTransY, y(yTotal / (series ? series.length : 1))) + ')');
|
||||||
|
tips.selectAll('rect')
|
||||||
|
.attr('width', tipWidth + 4)
|
||||||
|
.attr('x', flip ? -tipWidth - 12 : 8)
|
||||||
|
.style('text-anchor', flip ? 'end' : 'start');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateFormats() {
|
||||||
|
xTxt.text($translate.instant(labels.xAxis.title)).append('tspan').attr('class', 'metric').text(' (' + $translate.instant(labels.xAxis.unit) + ')');
|
||||||
|
yTxt.text($translate.instant(labels.yAxis.title)).append('tspan').attr('class', 'metric').text(' (' + $translate.instant(labels.yAxis.unit) + ')');
|
||||||
|
fmtLong = $rootScope.localeFormat.numberFormat('.2f');
|
||||||
|
xAxis.tickFormat($rootScope.localeFormat.numberFormat('.2r'));
|
||||||
|
yAxis.tickFormat($rootScope.localeFormat.numberFormat('.3r'));
|
||||||
|
render();
|
||||||
|
}
|
||||||
|
|
||||||
|
angular.element($window).bind('orientationchange resize render', render);
|
||||||
|
scope.$watchCollection('series', render); // Watch for changes in the series data
|
||||||
|
scope.$on('languageChanged', updateFormats);
|
||||||
|
scope.$on('$destroy', function() {
|
||||||
|
angular.element($window).unbind('orientationchange resize render', render);
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}]);
|
||||||
9
app/js/directives/directive-loader.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
angular.module('app').directive('loader', function() {
|
||||||
|
return {
|
||||||
|
restrict: 'A',
|
||||||
|
link: function(scope, element) {
|
||||||
|
element.addClass('loader');
|
||||||
|
element.html('<svg viewbox="0 0 40 40" width="100%" height="100%"><path d="m5,8l5,8l5,-8z" class="l1 d1" /><path d="m5,8l5,-8l5,8z" class="l1 d2" /><path d="m10,0l5,8l5,-8z" class="l1 d3" /><path d="m15,8l5,-8l5,8z" class="l1 d4" /><path d="m20,0l5,8l5,-8z" class="l1 d5" /><path d="m25,8l5,-8l5,8z" class="l1 d6" /><path d="m25,8l5,8l5,-8z" class="l1 d7" /><path d="m30,16l5,-8l5,8z" class="l1 d8" /><path d="m30,16l5,8l5,-8z" class="l1 d9" /><path d="m25,24l5,-8l5,8z" class="l1 d10" /><path d="m25,24l5,8l5,-8z" class="l1 d11" /><path d="m20,32l5,-8l5,8z" class="l1 d13" /><path d="m15,24l5,8l5,-8z" class="l1 d14" /><path d="m10,32l5,-8l5,8z" class="l1 d15" /><path d="m5,24l5,8l5,-8z" class="l1 d16" /><path d="m5,24l5,-8l5,8z" class="l1 d17" /><path d="m0,16l5,8l5,-8z" class="l1 d18" /><path d="m0,16l5,-8l5,8z" class="l1 d20" /><path d="m10,16l5,-8l5,8z" class="l2 d0" /><path d="m15,8l5,8l5,-8z" class="l2 d3" /><path d="m20,16l5,-8l5,8z" class="l2 d6" /><path d="m20,16l5,8l5,-8z" class="l2 d9" /><path d="m15,24l5,-8l5,8z" class="l2 d12" /><path d="m10,16l5,8l5,-8z" class="l2 d15" /></svg>');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
209
app/js/directives/directive-power-bands.js
Normal file
@@ -0,0 +1,209 @@
|
|||||||
|
angular.module('app').directive('powerBands', ['$window', '$translate', '$rootScope', function($window, $translate, $rootScope) {
|
||||||
|
return {
|
||||||
|
restrict: 'A',
|
||||||
|
scope: {
|
||||||
|
bands: '=',
|
||||||
|
available: '='
|
||||||
|
},
|
||||||
|
link: function(scope, element) {
|
||||||
|
var bands = null,
|
||||||
|
available = 0,
|
||||||
|
maxBand,
|
||||||
|
maxPwr,
|
||||||
|
deployedSum = 0,
|
||||||
|
retractedSum = 0,
|
||||||
|
retBandsSelected = false,
|
||||||
|
depBandsSelected = false,
|
||||||
|
wattScale = d3.scale.linear(),
|
||||||
|
pctScale = d3.scale.linear().domain([0, 1]),
|
||||||
|
wattFmt,
|
||||||
|
pctFmt,
|
||||||
|
wattAxis = d3.svg.axis().scale(wattScale).outerTickSize(0).orient('top'),
|
||||||
|
pctAxis = d3.svg.axis().scale(pctScale).outerTickSize(0).orient('bottom'),
|
||||||
|
// Create chart
|
||||||
|
svg = d3.select(element[0]).append('svg'),
|
||||||
|
vis = svg.append('g'),
|
||||||
|
deployed = vis.append('g').attr('class', 'power-band'),
|
||||||
|
retracted = vis.append('g').attr('class', 'power-band');
|
||||||
|
|
||||||
|
svg.on('contextmenu', function() {
|
||||||
|
if (!d3.event.shiftKey) {
|
||||||
|
d3.event.preventDefault();
|
||||||
|
for (var i = 0, l = bands.length; i < l; i++) {
|
||||||
|
bands[i].retSelected = false;
|
||||||
|
bands[i].depSelected = false;
|
||||||
|
}
|
||||||
|
dataChange();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Create Y Axis SVG Elements
|
||||||
|
var wattAxisGroup = vis.append('g').attr('class', 'watt axis');
|
||||||
|
vis.append('g').attr('class', 'pct axis');
|
||||||
|
var retText = vis.append('text').attr('x', -3).style('text-anchor', 'end').attr('dy', '0.5em').attr('class', 'primary upp');
|
||||||
|
var depText = vis.append('text').attr('x', -3).style('text-anchor', 'end').attr('dy', '0.5em').attr('class', 'primary upp');
|
||||||
|
var retLbl = vis.append('text').attr('dy', '0.5em');
|
||||||
|
var depLbl = vis.append('text').attr('dy', '0.5em');
|
||||||
|
|
||||||
|
updateFormats(true);
|
||||||
|
|
||||||
|
function dataChange() {
|
||||||
|
bands = scope.bands;
|
||||||
|
available = scope.available;
|
||||||
|
maxBand = bands[bands.length - 1];
|
||||||
|
deployedSum = 0;
|
||||||
|
retractedSum = 0;
|
||||||
|
retBandsSelected = false;
|
||||||
|
depBandsSelected = false;
|
||||||
|
maxPwr = Math.max(available, maxBand.retractedSum, maxBand.deployedSum);
|
||||||
|
|
||||||
|
for (var b = 0, l = bands.length; b < l; b++) {
|
||||||
|
if (bands[b].retSelected) {
|
||||||
|
retractedSum += bands[b].retracted + bands[b].retOnly;
|
||||||
|
retBandsSelected = true;
|
||||||
|
}
|
||||||
|
if (bands[b].depSelected) {
|
||||||
|
deployedSum += bands[b].deployed + bands[b].retracted;
|
||||||
|
depBandsSelected = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
render();
|
||||||
|
}
|
||||||
|
|
||||||
|
function render() {
|
||||||
|
var size = $rootScope.sizeRatio,
|
||||||
|
mTop = Math.round(25 * size),
|
||||||
|
mRight = Math.round(130 * size),
|
||||||
|
mBottom = Math.round(25 * size),
|
||||||
|
mLeft = Math.round(45 * size),
|
||||||
|
barHeight = Math.round(20 * size),
|
||||||
|
width = element[0].offsetWidth,
|
||||||
|
innerHeight = (barHeight * 2) + 2,
|
||||||
|
height = innerHeight + mTop + mBottom,
|
||||||
|
w = width - mLeft - mRight,
|
||||||
|
repY = (barHeight / 2),
|
||||||
|
depY = (barHeight * 1.5) - 1;
|
||||||
|
|
||||||
|
// Update chart size
|
||||||
|
svg.attr('width', width).attr('height', height);
|
||||||
|
vis.attr('transform', 'translate(' + mLeft + ',' + mTop + ')');
|
||||||
|
|
||||||
|
// Remove existing elements
|
||||||
|
retracted.selectAll('rect').remove();
|
||||||
|
retracted.selectAll('text').remove();
|
||||||
|
deployed.selectAll('rect').remove();
|
||||||
|
deployed.selectAll('text').remove();
|
||||||
|
wattAxisGroup.selectAll('line.threshold').remove();
|
||||||
|
|
||||||
|
// Update X & Y Axis
|
||||||
|
wattScale.range([0, w]).domain([0, maxPwr]).clamp(true);
|
||||||
|
pctScale.range([0, w]).domain([0, maxPwr / available]).clamp(true);
|
||||||
|
wattAxisGroup.call(wattAxis);
|
||||||
|
vis.selectAll('.pct.axis').attr('transform', 'translate(0,' + innerHeight + ')').call(pctAxis);
|
||||||
|
|
||||||
|
var pwrWarningClass = 'threshold' + (bands[0].retractedSum * 2 >= available ? ' exceeded' : '');
|
||||||
|
vis.select('.pct.axis g:nth-child(6)').selectAll('line, text').attr('class', pwrWarningClass);
|
||||||
|
|
||||||
|
wattAxisGroup.append('line')
|
||||||
|
.attr('x1', pctScale(0.5))
|
||||||
|
.attr('x2', pctScale(0.5))
|
||||||
|
.attr('y1', 0)
|
||||||
|
.attr('y2', innerHeight)
|
||||||
|
.attr('class', pwrWarningClass);
|
||||||
|
|
||||||
|
retText.attr('y', repY);
|
||||||
|
depText.attr('y', depY);
|
||||||
|
updateLabel(retLbl, w, repY, retBandsSelected, retBandsSelected ? retractedSum : maxBand.retractedSum, available);
|
||||||
|
updateLabel(depLbl, w, depY, depBandsSelected, depBandsSelected ? deployedSum : maxBand.deployedSum, available);
|
||||||
|
|
||||||
|
retracted.selectAll('rect').data(bands).enter().append('rect')
|
||||||
|
.attr('height', barHeight)
|
||||||
|
.attr('width', function(d) { return Math.ceil(Math.max(wattScale(d.retracted + d.retOnly), 0)); })
|
||||||
|
.attr('x', function(d) { return Math.floor(Math.max(wattScale(d.retractedSum) - wattScale(d.retracted + d.retOnly), 0)); })
|
||||||
|
.attr('y', 1)
|
||||||
|
.on('click', function(d) {
|
||||||
|
d.retSelected = !d.retSelected;
|
||||||
|
dataChange();
|
||||||
|
})
|
||||||
|
.attr('class', function(d) { return getClass(d.retSelected, d.retractedSum, available); });
|
||||||
|
|
||||||
|
retracted.selectAll('text').data(bands).enter().append('text')
|
||||||
|
.attr('x', function(d) { return wattScale(d.retractedSum) - (wattScale(d.retracted + d.retOnly) / 2); })
|
||||||
|
.attr('y', repY)
|
||||||
|
.attr('dy', '0.5em')
|
||||||
|
.style('text-anchor', 'middle')
|
||||||
|
.attr('class', 'primary-bg')
|
||||||
|
.on('click', function(d) {
|
||||||
|
d.retSelected = !d.retSelected;
|
||||||
|
dataChange();
|
||||||
|
})
|
||||||
|
.text(function(d, i) { return bandText(d.retracted + d.retOnly, i); });
|
||||||
|
|
||||||
|
deployed.selectAll('rect').data(bands).enter().append('rect')
|
||||||
|
.attr('height', barHeight)
|
||||||
|
.attr('width', function(d) { return Math.ceil(Math.max(wattScale(d.deployed + d.retracted), 0)); })
|
||||||
|
.attr('x', function(d) { return Math.floor(Math.max(wattScale(d.deployedSum) - wattScale(d.retracted) - wattScale(d.deployed), 0)); })
|
||||||
|
.attr('y', barHeight + 1)
|
||||||
|
.on('click', function(d) {
|
||||||
|
d.depSelected = !d.depSelected;
|
||||||
|
dataChange();
|
||||||
|
})
|
||||||
|
.attr('class', function(d) { return getClass(d.depSelected, d.deployedSum, available); });
|
||||||
|
|
||||||
|
deployed.selectAll('text').data(bands).enter().append('text')
|
||||||
|
.attr('x', function(d) { return wattScale(d.deployedSum) - ((wattScale(d.retracted) + wattScale(d.deployed)) / 2); })
|
||||||
|
.attr('y', depY)
|
||||||
|
.attr('dy', '0.5em')
|
||||||
|
.style('text-anchor', 'middle')
|
||||||
|
.attr('class', 'primary-bg')
|
||||||
|
.on('click', function(d) {
|
||||||
|
d.depSelected = !d.depSelected;
|
||||||
|
dataChange();
|
||||||
|
})
|
||||||
|
.text(function(d, i) { return bandText(d.deployed + d.retracted, i); });
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateLabel(lbl, width, y, selected, sum, avail) {
|
||||||
|
lbl
|
||||||
|
.attr('x', width + 5 )
|
||||||
|
.attr('y', y)
|
||||||
|
.attr('class', getClass(selected, sum, avail))
|
||||||
|
.text(wattFmt(Math.max(0, sum)) + ' (' + pctFmt(Math.max(0, sum / avail)) + ')');
|
||||||
|
}
|
||||||
|
|
||||||
|
function getClass(selected, sum, avail) {
|
||||||
|
// Round to avoid floating point precision errors
|
||||||
|
return selected ? 'secondary' : ((Math.round(sum * 100) / 100) >= avail) ? 'warning' : 'primary';
|
||||||
|
}
|
||||||
|
|
||||||
|
function bandText(val, index) {
|
||||||
|
if (val > 0 && wattScale(val) > 13) {
|
||||||
|
return index + 1;
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateFormats(preventRender) {
|
||||||
|
retText.text($translate.instant('ret'));
|
||||||
|
depText.text($translate.instant('dep'));
|
||||||
|
wattFmt = $rootScope.localeFormat.numberFormat('.2f');
|
||||||
|
pctFmt = $rootScope.localeFormat.numberFormat('.1%');
|
||||||
|
wattAxis.tickFormat($rootScope.localeFormat.numberFormat('.2r'));
|
||||||
|
pctAxis.tickFormat($rootScope.localeFormat.numberFormat('%'));
|
||||||
|
if (!preventRender) {
|
||||||
|
render();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Watch for changes to data and events
|
||||||
|
angular.element($window).bind('pwrchange', dataChange);
|
||||||
|
angular.element($window).bind('orientationchange resize', render);
|
||||||
|
scope.$watchCollection('available', dataChange);
|
||||||
|
scope.$on('languageChanged', updateFormats);
|
||||||
|
scope.$on('$destroy', function() {
|
||||||
|
angular.element($window).unbind('orientationchange resize pwrchange', render);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}]);
|
||||||
@@ -1,74 +1,90 @@
|
|||||||
angular.module('app').directive('slider', ['$window', function ($window) {
|
angular.module('app').directive('slider', ['$window', function($window) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
scope:{
|
scope: {
|
||||||
|
min: '=',
|
||||||
|
def: '=',
|
||||||
max: '=',
|
max: '=',
|
||||||
unit: '=',
|
unit: '=',
|
||||||
change: '&onChange'
|
change: '&onChange',
|
||||||
|
ignoreResize: '='
|
||||||
},
|
},
|
||||||
link: function(scope, element) {
|
link: function(scope, element) {
|
||||||
var margin = {top: -10, right: 130, bottom: 0, left: 50},
|
var unit = scope.unit,
|
||||||
height = 40, // Height is fixed
|
margin = unit ? { top: -10, right: 145, left: 50 } : { top: 0, right: 10, left: 10 },
|
||||||
h = height - margin.top - margin.bottom,
|
height = unit ? 40 : 20, // Height is fixed
|
||||||
|
h = height - margin.top,
|
||||||
fmt = d3.format('.2f'),
|
fmt = d3.format('.2f'),
|
||||||
pct = d3.format('.1%'),
|
pct = d3.format('.1%'),
|
||||||
unit = scope.unit,
|
def = scope.def !== undefined ? scope.def : scope.max,
|
||||||
val = scope.max,
|
val = def,
|
||||||
svg = d3.select(element[0]).append("svg"),
|
svg = d3.select(element[0]).append('svg'),
|
||||||
vis = svg.append("g").attr("transform", "translate(" + margin.left + "," + margin.top + ")"),
|
vis = svg.append('g').attr('transform', 'translate(' + margin.left + ',' + margin.top + ')'),
|
||||||
xAxis = vis.append("g").attr("class", "x slider-axis").attr("transform", "translate(0," + h / 2 + ")"),
|
xAxisContainer = vis.append('g').attr('class', 'x slider-axis').attr('transform', 'translate(0,' + h / 2 + ')'),
|
||||||
x = d3.scale.linear(),
|
x = d3.scale.linear(),
|
||||||
slider = vis.append("g").attr("class", "slider"),
|
xAxis = d3.svg.axis().scale(x).orient('bottom').tickFormat(function(d) { return d + unit; }).tickSize(0).tickPadding(12),
|
||||||
filled = slider.append('path').attr('class', 'filled').attr("transform", "translate(0," + h/2 + ")"),
|
slider = vis.append('g').attr('class', 'slider'),
|
||||||
brush = d3.svg.brush().x(x).extent([scope.max, scope.max]).on("brush", brushed),
|
filled = slider.append('path').attr('class', 'filled').attr('transform', 'translate(0,' + h / 2 + ')'),
|
||||||
handle = slider.append("circle").attr("class", "handle").attr("r", '0.75em'),
|
brush = d3.svg.brush().x(x).extent([scope.max, scope.max]).on('brush', brushed),
|
||||||
lbl = slider.append("g").append("text").attr("y", h/2);
|
handle = slider.append('circle').attr('class', 'handle').attr('r', '0.6em'),
|
||||||
|
lbl = unit ? slider.append('g').append('text').attr('y', h / 2) : null;
|
||||||
|
|
||||||
slider.call(brush);
|
slider.call(brush);
|
||||||
slider.select(".background").attr("height", h);
|
slider.select('.background').attr('height', h);
|
||||||
handle.attr("transform", "translate(0," + h / 2 + ")");
|
handle.attr('transform', 'translate(0,' + h / 2 + ')');
|
||||||
|
|
||||||
|
function render() {
|
||||||
|
var width = element[0].offsetWidth, w = width - margin.left - margin.right;
|
||||||
|
svg.attr('width', width).attr('height', height);
|
||||||
|
x.domain([scope.min || 0, scope.max]).range([0, w]).clamp(true);
|
||||||
|
handle.attr('cx', x(val));
|
||||||
|
if (unit) {
|
||||||
|
xAxisContainer.call(xAxis.tickValues([0, scope.max / 4, scope.max / 2, (3 * scope.max) / 4, scope.max]));
|
||||||
|
lbl.attr('x', w + 20);
|
||||||
|
}
|
||||||
|
slider.call(brush.extent([val, val]));
|
||||||
|
drawBrush();
|
||||||
|
slider.selectAll('.extent,.resize').remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
function brushed() {
|
||||||
|
val = x.invert(d3.mouse(this)[0]);
|
||||||
|
brush.extent([val, val]);
|
||||||
|
scope.change({ val: val });
|
||||||
|
drawBrush();
|
||||||
|
}
|
||||||
|
|
||||||
|
function drawBrush() {
|
||||||
|
if (unit) {
|
||||||
|
lbl.text(fmt(val) + ' ' + unit + ' ' + pct(val / scope.max));
|
||||||
|
}
|
||||||
|
handle.attr('cx', x(val));
|
||||||
|
filled.attr('d', 'M0,0V0H' + x(val) + 'V0');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Watch for changes in the max, window size
|
* Watch for changes in the max, window size
|
||||||
*/
|
*/
|
||||||
scope.$watch('max', function(newMax, oldMax) {
|
scope.$watch('max', function(newMax, oldMax) {
|
||||||
val = newMax * (val / oldMax); // Retain percentage filled
|
val = newMax * (val / oldMax); // Retain percentage filled
|
||||||
|
scope.change({ val: val });
|
||||||
render();
|
render();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!scope.ignoreResize) {
|
||||||
angular.element($window).bind('orientationchange resize', render);
|
angular.element($window).bind('orientationchange resize', render);
|
||||||
|
|
||||||
function render() {
|
|
||||||
var width = element[0].offsetWidth, w = width - margin.left - margin.right;
|
|
||||||
|
|
||||||
svg.attr("width", width).attr("height", height);
|
|
||||||
x.domain([0, scope.max]).range([0, w]).clamp(true);
|
|
||||||
handle.attr("cx", x(val));
|
|
||||||
xAxis
|
|
||||||
.call(d3.svg.axis()
|
|
||||||
.scale(x)
|
|
||||||
.orient("bottom")
|
|
||||||
.tickFormat(function(d) { return d + unit; })
|
|
||||||
.tickSize(0)
|
|
||||||
.tickPadding(12))
|
|
||||||
.select(".domain");
|
|
||||||
lbl.attr('x', w + 20).text(fmt(val) + ' ' + unit + ' (' + pct(val / scope.max) + ')');
|
|
||||||
slider.call(brush.extent([val, val])).call(brush.event);
|
|
||||||
slider.selectAll(".extent,.resize").remove();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function brushed() {
|
scope.$on('reset', function(e, resetVal) {
|
||||||
val = brush.extent()[0];
|
val = resetVal;
|
||||||
if (d3.event.sourceEvent) { // not a programmatic event
|
drawBrush();
|
||||||
val = x.invert(d3.mouse(this)[0]);
|
});
|
||||||
brush.extent([val, val]);
|
|
||||||
}
|
scope.$on('$destroy', function() {
|
||||||
lbl.text(fmt(val) + ' ' + unit + ' (' + pct(val / scope.max) + ')');
|
angular.element($window).unbind('orientationchange resize render', render);
|
||||||
scope.change({val: val});
|
});
|
||||||
handle.attr("cx", x(val));
|
|
||||||
filled.attr("d", "M0,0V0H" + x(val) + "V0");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}]);
|
}]);
|
||||||
@@ -1,13 +1,12 @@
|
|||||||
angular.module('app').directive('slotHardpoint', ['$rootScope', function ($r) {
|
angular.module('app').directive('slotHardpoint', ['$rootScope', function($r) {
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
scope:{
|
scope: {
|
||||||
hp: '=',
|
hp: '=',
|
||||||
size: '=',
|
size: '='
|
||||||
lbl: '=',
|
|
||||||
},
|
},
|
||||||
templateUrl: 'views/_slot-hardpoint.html',
|
templateUrl: 'views/_slot-hardpoint.html',
|
||||||
link: function (scope) {
|
link: function(scope) {
|
||||||
scope.$r = $r;
|
scope.$r = $r;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
angular.module('app').directive('slotInternal', ['$rootScope', function ($r) {
|
angular.module('app').directive('slotInternal', ['$rootScope', function($r) {
|
||||||
return {
|
return {
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
scope:{
|
scope: {
|
||||||
c: '=slot',
|
c: '=slot',
|
||||||
lbl: '=',
|
fuel: '='
|
||||||
ft: '=',
|
|
||||||
|
|
||||||
},
|
},
|
||||||
templateUrl: 'views/_slot-internal.html',
|
templateUrl: 'views/_slot-internal.html',
|
||||||
link: function(scope) {
|
link: function(scope) {
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
/**
|
/**
|
||||||
* BBCode Generator functions for embedding in the Elite Dangerous Forums
|
* BBCode Generator functions for embedding in the Elite Dangerous Forums
|
||||||
*/
|
*/
|
||||||
angular.module('app').factory('Utils', ['$window','$state','$http', '$q', function ($window, $state, $http, $q) {
|
angular.module('app').factory('Utils', ['$window', '$state', '$http', '$q', '$translate', '$rootScope', function($window, $state, $http, $q, $translate, $rootScope) {
|
||||||
|
|
||||||
var shortenAPI = 'https://www.googleapis.com/urlshortener/v1/url?key=';
|
var shortenAPI = 'https://www.googleapis.com/urlshortener/v1/url?key=';
|
||||||
|
|
||||||
function shortenUrl(url) {
|
function shortenUrl(url) {
|
||||||
if ($window.navigator.onLine) {
|
if ($window.navigator.onLine) {
|
||||||
return $http.post(shortenAPI + GAPI_KEY, {longUrl:url}).then(function(response) {
|
return $http.post(shortenAPI + GAPI_KEY, { longUrl: url }).then(function(response) {
|
||||||
return response.data.id;
|
return response.data.id;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return $q.reject({statusText: 'Not Online'});
|
return $q.reject({ statusText: 'Not Online' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -24,11 +24,11 @@ angular.module('app').factory('Utils', ['$window','$state','$http', '$q', functi
|
|||||||
p = f.props;
|
p = f.props;
|
||||||
|
|
||||||
if (p.length == 1) {
|
if (p.length == 1) {
|
||||||
l.push('[th][B][COLOR=#FF8C0D]', f.title, '[/COLOR][/B][/th]');
|
l.push('[th][B][COLOR=#FF8C0D]', $translate.instant(f.title).toUpperCase(), '[/COLOR][/B][/th]');
|
||||||
colCount++;
|
colCount++;
|
||||||
} else {
|
} else {
|
||||||
for (j = 0; j < p.length; j++) {
|
for (j = 0; j < p.length; j++) {
|
||||||
l.push('[th][B][COLOR=#FF8C0D]', f.title, '\n', f.lbls[j], '[/COLOR][/B][/th]');
|
l.push('[th][B][COLOR=#FF8C0D]', $translate.instant(f.title).toUpperCase(), '\n', $translate.instant(f.lbls[j]).toUpperCase(), '[/COLOR][/B][/th]');
|
||||||
colCount++;
|
colCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -39,21 +39,21 @@ angular.module('app').factory('Utils', ['$window','$state','$http', '$q', functi
|
|||||||
for (i = 0; i < builds.length; i++) {
|
for (i = 0; i < builds.length; i++) {
|
||||||
b = builds[i];
|
b = builds[i];
|
||||||
//var href = $state.href('outfit',{shipId: b.id, code: b.code, bn: b.buildName}, {absolute: true});
|
//var href = $state.href('outfit',{shipId: b.id, code: b.code, bn: b.buildName}, {absolute: true});
|
||||||
l.push('[tr][td]', b.name,'[/td][td]', b.buildName ,'[/td]');
|
l.push('[tr][td]', b.name, '[/td][td]', b.buildName, '[/td]');
|
||||||
|
|
||||||
for (j = 0, fl = facets.length; j < fl; j++) {
|
for (j = 0, fl = facets.length; j < fl; j++) {
|
||||||
if (facets[j].active) {
|
if (facets[j].active) {
|
||||||
f = facets[j];
|
f = facets[j];
|
||||||
p = f.props;
|
p = f.props;
|
||||||
for (k = 0, pl = p.length; k < pl; k++) {
|
for (k = 0, pl = p.length; k < pl; k++) {
|
||||||
l.push('[td="align: right"]', f.fmt(b[p[k]]), ' [size=-2]', f.unit, '[/size][/td]');
|
l.push('[td="align: right"]', $rootScope[f.fmt](b[p[k]]), ' [size=-2]', $translate.instant(f.unit), '[/size][/td]');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
l.push('[/tr]\n');
|
l.push('[/tr]\n');
|
||||||
}
|
}
|
||||||
l.push('[tr][td="align: center, colspan:',colCount,'"][size=-3]\n[url=', link,']Interactive Comparison at Coriolis.io[/url][/td][/tr]\n[/size][/table]');
|
l.push('[tr][td="align: center, colspan:', colCount, '"][size=-3]\n[url=', link, ']Interactive Comparison at Coriolis.io[/url][/td][/tr]\n[/size][/table]');
|
||||||
l.unshift('[table="width:', colCount * 90,',align: center"]\n[tr][th][B][COLOR=#FF8C0D]Ship[/COLOR][/B][/th][th][B][COLOR="#FF8C0D"]Build[/COLOR][/B][/th]');
|
l.unshift('[table="width:', colCount * 90, ',align: center"]\n[tr][th][B][COLOR=#FF8C0D]Ship[/COLOR][/B][/th][th][B][COLOR="#FF8C0D"]Build[/COLOR][/B][/th]');
|
||||||
return l.join('');
|
return l.join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
220
app/js/i18n/de.js
Normal file
@@ -0,0 +1,220 @@
|
|||||||
|
angular.module('app').config(['$translateProvider', 'localeFormatProvider', function($translateProvider, localeFormatProvider) {
|
||||||
|
// Declare number format settings
|
||||||
|
localeFormatProvider.addFormat('de', {
|
||||||
|
decimal: ',',
|
||||||
|
thousands: '.',
|
||||||
|
grouping: [3],
|
||||||
|
currency: ['', ' €'],
|
||||||
|
dateTime: '%A, der %e. %B %Y, %X',
|
||||||
|
date: '%d.%m.%Y',
|
||||||
|
time: '%H:%M:%S',
|
||||||
|
periods: ['AM', 'PM'], // unused
|
||||||
|
days: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
|
||||||
|
shortDays: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
|
||||||
|
months: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],
|
||||||
|
shortMonths: ['Jan', 'Feb', 'Mrz', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez']
|
||||||
|
});
|
||||||
|
$translateProvider.translations('de', {
|
||||||
|
PHRASE_EXPORT_DESC: 'Ein detaillierter JSON-Export Ihrer Konfiguration für die Verwendung in anderen Websites und Tools',
|
||||||
|
'A-Rated': 'A-Klasse',
|
||||||
|
about: 'Über',
|
||||||
|
action: 'Aktion',
|
||||||
|
added: 'Hinzugefügt',
|
||||||
|
Advanced: 'Verbessert',
|
||||||
|
'Advanced Discovery Scanner': 'Fortgeschrittener Aufklärungsscanner',
|
||||||
|
agility: 'Manövrierbarkeit',
|
||||||
|
ammo: 'Munition',
|
||||||
|
PHRASE_CONFIRMATION: 'Sind Sie sicher?',
|
||||||
|
armour: 'Panzerung',
|
||||||
|
am: 'Automatische Feldwartungs-Einheit',
|
||||||
|
available: 'Verfügbar',
|
||||||
|
backup: 'Sicherungsdatei',
|
||||||
|
'Basic Discovery Scanner': 'Einfacher Aufklärungsscanner',
|
||||||
|
bl: 'Strahlenlaser',
|
||||||
|
beta: 'Beta',
|
||||||
|
bins: 'Behälter',
|
||||||
|
boost: 'Boost',
|
||||||
|
build: 'Ausstattung',
|
||||||
|
'build name': 'Ausstattungsname',
|
||||||
|
builds: 'Ausstattungen',
|
||||||
|
bh: 'Rumpfhüllenverstärkung',
|
||||||
|
ul: 'Salvenlaser',
|
||||||
|
buy: 'Kaufen',
|
||||||
|
cancel: 'Abbrechen',
|
||||||
|
c: 'Kanone',
|
||||||
|
capital: 'Kapital',
|
||||||
|
cargo: 'Fracht',
|
||||||
|
'Cargo Hatch': 'Frachtluke',
|
||||||
|
cr: 'Frachtgestell',
|
||||||
|
cs: 'Frachtscanner',
|
||||||
|
cells: 'Zellen',
|
||||||
|
'Chaff Launcher': 'Düppel-Werfer',
|
||||||
|
close: 'Schließen',
|
||||||
|
cc: 'Krallensteuerung: Sammler',
|
||||||
|
compare: 'Vergleichen',
|
||||||
|
'compare all': 'Alles Vergleichen',
|
||||||
|
comparison: 'Vergleich',
|
||||||
|
comparisons: 'Vergleiche',
|
||||||
|
component: 'Komponente',
|
||||||
|
cost: 'Preis',
|
||||||
|
costs: 'Kosten',
|
||||||
|
cm: 'Gegenmaßnahme',
|
||||||
|
create: 'Erstellen',
|
||||||
|
'create new': 'Neu Erstellen',
|
||||||
|
Cytoscrambler: 'Zytostreuer',
|
||||||
|
damage: 'Schaden',
|
||||||
|
delete: 'Löschen',
|
||||||
|
'delete all': 'Alles Löschen',
|
||||||
|
dep: 'Ausg',
|
||||||
|
deployed: 'Ausgefahren',
|
||||||
|
'detailed export': 'Detailierter Export',
|
||||||
|
'Detailed Surface Scanner': 'Detailoberflächenscanner',
|
||||||
|
disabled: 'Deaktiviert',
|
||||||
|
discount: 'Rabatt',
|
||||||
|
Distruptor: 'Disruptor',
|
||||||
|
dc: 'Standard-Landecomputer',
|
||||||
|
done: 'Fertig',
|
||||||
|
'edit data': 'Bearbeiten',
|
||||||
|
efficiency: 'Effizienz',
|
||||||
|
'Electronic Countermeasure': 'Elektronische Gegenmaßnahme',
|
||||||
|
empty: 'leer',
|
||||||
|
Enforcer: 'Vollstrecker',
|
||||||
|
ENG: 'ANT',
|
||||||
|
'enter name': 'Namen eingeben',
|
||||||
|
export: 'Export',
|
||||||
|
fixed: 'Fixiert',
|
||||||
|
forum: 'Forum',
|
||||||
|
fc: 'Splitterkanone',
|
||||||
|
fd: 'Frameshiftantrieb',
|
||||||
|
ws: 'Frameshift-Sogwolkenscanner',
|
||||||
|
FSD: 'FSA',
|
||||||
|
fi: 'FSA-Unterbrecher',
|
||||||
|
fuel: 'Treibstoff',
|
||||||
|
fs: 'Treibstoffsammler',
|
||||||
|
ft: 'Treibstofftank',
|
||||||
|
fx: 'Krallensteuerung Treibstoffstransfer',
|
||||||
|
'full tank': 'Tank voll',
|
||||||
|
Gimballed: 'Kardanisch',
|
||||||
|
H: 'R',
|
||||||
|
hardpoints: 'Waffenaufhängungen',
|
||||||
|
hb: 'Krallen-Steuereinheit (Ladelukenöffner)',
|
||||||
|
'Heat Sink Launcher': 'Kühlkörperwerfer',
|
||||||
|
huge: 'Riesig',
|
||||||
|
hull: 'Hülle',
|
||||||
|
hr: 'Rumpfhüllenverstärkung (Paket)',
|
||||||
|
'Imperial Hammer': 'Imperialer Hammer',
|
||||||
|
import: 'Importieren',
|
||||||
|
'import all': 'Alles Importieren',
|
||||||
|
insurance: 'Versicherung',
|
||||||
|
'Intermediate Discovery Scanner': 'Mittlerer Aufklärungsscanner',
|
||||||
|
'internal compartments': 'Innenbereichskabine',
|
||||||
|
'jump range': 'Sprungreichweite',
|
||||||
|
jumps: 'Sprünge',
|
||||||
|
kw: 'Tötungsbefehl-Scanner',
|
||||||
|
L: 'G',
|
||||||
|
laden: 'Beladen',
|
||||||
|
language: 'Sprache',
|
||||||
|
large: 'Groß',
|
||||||
|
limpets: 'Krallen',
|
||||||
|
ls: 'Lebenserhaltung',
|
||||||
|
'Lightweight Alloy': 'Leichte Legierung',
|
||||||
|
'lock factor': 'Massensperrefaktor',
|
||||||
|
LS: 'Ls',
|
||||||
|
LY: 'Lj',
|
||||||
|
mass: 'Masse',
|
||||||
|
'max mass': 'maximale Masse',
|
||||||
|
medium: 'Mittel',
|
||||||
|
'Military Grade Composite': 'Militär-Komposit',
|
||||||
|
nl: 'Minenwerfer',
|
||||||
|
'Mining Lance': 'Lanzenabbaulaser',
|
||||||
|
ml: 'Abbaulaser',
|
||||||
|
'Mirrored Surface Composite': 'Gespiegelte-Oberfläche-Komposit',
|
||||||
|
mr: 'Raketenbatterie',
|
||||||
|
mc: 'Mehrfachgeschütz',
|
||||||
|
'net cost': 'Nettokosten',
|
||||||
|
no: 'Nein',
|
||||||
|
PHRASE_NO_BUILDS: 'Keine Konfigurationen zum Vergleich ausgewählt!',
|
||||||
|
PHRASE_NO_RETROCH: 'Keine Umrüständerungen',
|
||||||
|
none: 'Nichts',
|
||||||
|
'none created': 'Leer',
|
||||||
|
off: 'Aus',
|
||||||
|
on: 'An',
|
||||||
|
'optimal mass': 'optimale Masse',
|
||||||
|
'optimize mass': 'Masse optimieren',
|
||||||
|
overwrite: 'Überschreiben',
|
||||||
|
Pacifier: 'Friedensstifter',
|
||||||
|
'Pack-Hound': 'Schwarmwerfer',
|
||||||
|
PHRASE_IMPORT: 'JSON hier einfügen oder importieren',
|
||||||
|
pen: 'Durchdr.',
|
||||||
|
penetration: 'Durchdringung',
|
||||||
|
permalink: 'Permalink',
|
||||||
|
pa: 'Plasmabeschleuniger',
|
||||||
|
'Point Defence': 'Punktverteidigung',
|
||||||
|
power: 'Energie',
|
||||||
|
pd: 'Energieverteiler',
|
||||||
|
pp: 'Kraftwerk',
|
||||||
|
pri: 'Prio',
|
||||||
|
priority: 'Priorität',
|
||||||
|
psg: 'Prismaschildgenerator',
|
||||||
|
proceed: 'Fortfahren',
|
||||||
|
pc: 'Krallensteuerung: Erzsucher',
|
||||||
|
pl: 'Impulslaser',
|
||||||
|
PWR: 'En',
|
||||||
|
rg: 'Schienenkanone',
|
||||||
|
range: 'Reichweite',
|
||||||
|
rate: 'Rate',
|
||||||
|
'Reactive Surface Composite': 'Reaktive-Oberfläche-Komposit',
|
||||||
|
recharge: 'Aufladen',
|
||||||
|
rf: 'Raffinerie',
|
||||||
|
'refuel time': 'Auftankzeit',
|
||||||
|
'Reinforced Alloy': 'Verstärkte Legierung',
|
||||||
|
reload: 'Aktualisieren',
|
||||||
|
rename: 'Umbenennen',
|
||||||
|
repair: 'Reparieren',
|
||||||
|
reset: 'Zurücksetzen',
|
||||||
|
ret: 'Eing',
|
||||||
|
retracted: 'Eingefahren',
|
||||||
|
'retrofit costs': 'Änderungskosten',
|
||||||
|
'retrofit from': 'Nachrüsten von',
|
||||||
|
ROF: 'Kad',
|
||||||
|
S: 'K',
|
||||||
|
save: 'Speichern',
|
||||||
|
sc: 'Scanner',
|
||||||
|
PHRASE_SELECT_BUILDS: 'Ausstattung zum Vergleich auswählen',
|
||||||
|
sell: 'Verkaufen',
|
||||||
|
s: 'Sensoren',
|
||||||
|
settings: 'Einstellungen',
|
||||||
|
sb: 'Schild-Booster',
|
||||||
|
scb: 'Schildzellenbank',
|
||||||
|
sg: 'Schildgenerator',
|
||||||
|
shields: 'Schilde',
|
||||||
|
ship: 'Schiff',
|
||||||
|
ships: 'Schiffe',
|
||||||
|
shortened: 'Gekürzt',
|
||||||
|
size: 'Größe',
|
||||||
|
skip: 'Überspringen',
|
||||||
|
small: 'Klein',
|
||||||
|
speed: 'Geschwindigkeit',
|
||||||
|
standard: 'Standard',
|
||||||
|
'Standard Docking Computer': 'Standard-Landecomputer',
|
||||||
|
Stock: 'Standard',
|
||||||
|
T: 't',
|
||||||
|
T_LOAD: 'T-Lad',
|
||||||
|
'The Retributor': 'Retributor',
|
||||||
|
t: 'Schubdüsen',
|
||||||
|
time: 'Dauer',
|
||||||
|
tp: 'Torpedoaufhängung',
|
||||||
|
total: 'Gesamt',
|
||||||
|
'total range': 'Maximale Reichweite',
|
||||||
|
turret: 'Geschützturm',
|
||||||
|
type: 'Typ',
|
||||||
|
U: 'W',
|
||||||
|
unladen: 'Unbeladen',
|
||||||
|
PHRASE_UPDATE_RDY: 'Update verfügbar! Klicken zum Aktualisieren',
|
||||||
|
utility: 'Werkzeug',
|
||||||
|
'utility mounts': 'Werkzeug-Steckplätze',
|
||||||
|
WEP: 'WAF',
|
||||||
|
yes: 'Ja',
|
||||||
|
PHRASE_BACKUP_DESC: 'Export aller Coriolis-Daten, um sie zu sichern oder oder um sie zu einem anderen Browser/Gerät zu übertragen.'
|
||||||
|
});
|
||||||
|
}]);
|
||||||
218
app/js/i18n/en.js
Normal file
@@ -0,0 +1,218 @@
|
|||||||
|
angular.module('app').config(['$translateProvider', function($translateProvider) {
|
||||||
|
$translateProvider.translations('en', {
|
||||||
|
PHRASE_EXPORT_DESC: 'A detailed JSON export of your build for use in other sites and tools',
|
||||||
|
'A-Rated': 'A-Rated',
|
||||||
|
about: 'about',
|
||||||
|
action: 'action',
|
||||||
|
added: 'added',
|
||||||
|
Advanced: 'Advanced',
|
||||||
|
'Advanced Discovery Scanner': 'Advanced Discovery Scanner',
|
||||||
|
agility: 'agility',
|
||||||
|
alpha: 'alpha',
|
||||||
|
ammo: 'ammo',
|
||||||
|
PHRASE_CONFIRMATION: 'Are You Sure?',
|
||||||
|
armour: 'armour',
|
||||||
|
am: 'Auto Field-Maintenance Unit',
|
||||||
|
available: 'available',
|
||||||
|
backup: 'backup',
|
||||||
|
'Basic Discovery Scanner': 'Basic Discovery Scanner',
|
||||||
|
bl: 'Beam Laser',
|
||||||
|
beta: 'beta',
|
||||||
|
bins: 'bins',
|
||||||
|
boost: 'boost',
|
||||||
|
build: 'build',
|
||||||
|
'build name': 'Build Name',
|
||||||
|
builds: 'builds',
|
||||||
|
bh: 'bulkheads',
|
||||||
|
'bsg': 'Bi-Weave Shield Generator',
|
||||||
|
ul: 'Burst Laser',
|
||||||
|
buy: 'buy',
|
||||||
|
cancel: 'cancel',
|
||||||
|
c: 'Cannon',
|
||||||
|
capital: 'capital',
|
||||||
|
cargo: 'cargo',
|
||||||
|
'Cargo Hatch': 'Cargo Hatch',
|
||||||
|
cr: 'Cargo Rack',
|
||||||
|
cs: 'Cargo Scanner',
|
||||||
|
cells: 'cells',
|
||||||
|
'Chaff Launcher': 'Chaff Launcher',
|
||||||
|
close: 'close',
|
||||||
|
cc: 'Collector Limpet Controller',
|
||||||
|
compare: 'compare',
|
||||||
|
'compare all': 'compare all',
|
||||||
|
comparison: 'comparison',
|
||||||
|
comparisons: 'comparisons',
|
||||||
|
component: 'component',
|
||||||
|
cost: 'cost',
|
||||||
|
costs: 'costs',
|
||||||
|
cm: 'Countermeasure',
|
||||||
|
CR: 'CR',
|
||||||
|
create: 'create',
|
||||||
|
'create new': 'create new',
|
||||||
|
credits: 'credits',
|
||||||
|
Cytoscrambler: 'Cytoscrambler',
|
||||||
|
damage: 'damage',
|
||||||
|
delete: 'delete',
|
||||||
|
'delete all': 'delete all',
|
||||||
|
dep: 'dep',
|
||||||
|
deployed: 'deployed',
|
||||||
|
'detailed export': 'detailed export',
|
||||||
|
'Detailed Surface Scanner': 'Detailed Surface Scanner',
|
||||||
|
disabled: 'disabled',
|
||||||
|
discount: 'discount',
|
||||||
|
Distruptor: 'Distruptor',
|
||||||
|
dc: 'Docking Computer',
|
||||||
|
done: 'done',
|
||||||
|
DPS: 'DPS',
|
||||||
|
'edit data': 'edit data',
|
||||||
|
efficiency: 'efficiency',
|
||||||
|
'Electronic Countermeasure': 'Electronic Countermeasure',
|
||||||
|
empty: 'empty',
|
||||||
|
Enforcer: 'Enforcer',
|
||||||
|
ENG: 'ENG',
|
||||||
|
'enter name': 'Enter Name',
|
||||||
|
EPS: 'EPS',
|
||||||
|
export: 'export',
|
||||||
|
fixed: 'fixed',
|
||||||
|
forum: 'forum',
|
||||||
|
fc: 'Fragment Cannon',
|
||||||
|
fd: 'Frame Shift Drive',
|
||||||
|
ws: 'Frame Shift Wake Scanner',
|
||||||
|
FSD: 'FSD',
|
||||||
|
fi: 'FSD Interdictor',
|
||||||
|
fuel: 'fuel',
|
||||||
|
fs: 'Fuel Scoop',
|
||||||
|
ft: 'Fuel Tank',
|
||||||
|
fx: 'Fuel Transfer Limpet Controller',
|
||||||
|
'full tank': 'full tank',
|
||||||
|
Gimballed: 'Gimballed',
|
||||||
|
H: 'H',
|
||||||
|
hardpoints: 'hardpoints',
|
||||||
|
hb: 'Hatch Breaker Limpet Controller',
|
||||||
|
'Heat Sink Launcher': 'Heat Sink Launcher',
|
||||||
|
huge: 'huge',
|
||||||
|
hull: 'hull',
|
||||||
|
hr: 'Hull Reinforcement Package',
|
||||||
|
'Imperial Hammer': 'Imperial Hammer',
|
||||||
|
import: 'import',
|
||||||
|
'import all': 'import all',
|
||||||
|
insurance: 'insurance',
|
||||||
|
'Intermediate Discovery Scanner': 'Intermediate Discovery Scanner',
|
||||||
|
'internal compartments': 'internal compartments',
|
||||||
|
'jump range': 'jump range',
|
||||||
|
jumps: 'jumps',
|
||||||
|
kw: 'Kill Warrant Scanner',
|
||||||
|
L: 'L',
|
||||||
|
laden: 'laden',
|
||||||
|
language: 'language',
|
||||||
|
large: 'large',
|
||||||
|
'limpets': 'Limpets',
|
||||||
|
ls: 'life support',
|
||||||
|
'Lightweight Alloy': 'Lightweight Alloy',
|
||||||
|
'lock factor': 'lock factor',
|
||||||
|
LS: 'Ls',
|
||||||
|
LY: 'LY',
|
||||||
|
M: 'M',
|
||||||
|
'm/s': 'm/s',
|
||||||
|
mass: 'mass',
|
||||||
|
max: 'max',
|
||||||
|
'max mass': 'max mass',
|
||||||
|
medium: 'medium',
|
||||||
|
'Military Grade Composite': 'Military Grade Composite',
|
||||||
|
nl: 'Mine Launcher',
|
||||||
|
'Mining Lance': 'Mining Lance',
|
||||||
|
ml: 'Mining Laser',
|
||||||
|
'Mirrored Surface Composite': 'Mirrored Surface Composite',
|
||||||
|
mr: 'Missile Rack',
|
||||||
|
mc: 'Multi-cannon',
|
||||||
|
'net cost': 'net cost',
|
||||||
|
no: 'no',
|
||||||
|
PHRASE_NO_BUILDS: 'No builds added to comparison!',
|
||||||
|
PHRASE_NO_RETROCH: 'No Retrofitting changes',
|
||||||
|
none: 'none',
|
||||||
|
'none created': 'none created',
|
||||||
|
off: 'off',
|
||||||
|
on: 'on',
|
||||||
|
optimal: 'optimal',
|
||||||
|
'optimal mass': 'optimal mass',
|
||||||
|
'optimize mass': 'optimize mass',
|
||||||
|
overwrite: 'overwrite',
|
||||||
|
Pacifier: 'Pacifier',
|
||||||
|
'Pack-Hound': 'Pack-Hound',
|
||||||
|
PHRASE_IMPORT: 'Paste JSON or import here',
|
||||||
|
pen: 'pen',
|
||||||
|
penetration: 'penetration',
|
||||||
|
permalink: 'permalink',
|
||||||
|
pa: 'Plasma Accelerator',
|
||||||
|
'Point Defence': 'Point Defence',
|
||||||
|
power: 'power',
|
||||||
|
pd: 'power distributor',
|
||||||
|
pp: 'power plant',
|
||||||
|
pri: 'pri',
|
||||||
|
priority: 'priority',
|
||||||
|
psg: 'Prismatic Shield Generator',
|
||||||
|
proceed: 'proceed',
|
||||||
|
pc: 'Prospector Limpet Controller',
|
||||||
|
pl: 'Pulse Laser',
|
||||||
|
PWR: 'PWR',
|
||||||
|
rg: 'Rail Gun',
|
||||||
|
range: 'range',
|
||||||
|
rate: 'rate',
|
||||||
|
'Reactive Surface Composite': 'Reactive Surface Composite',
|
||||||
|
recharge: 'recharge',
|
||||||
|
rf: 'Refinery',
|
||||||
|
'refuel time': 'refuel time',
|
||||||
|
'Reinforced Alloy': 'Reinforced Alloy',
|
||||||
|
reload: 'reload',
|
||||||
|
rename: 'rename',
|
||||||
|
repair: 'repair',
|
||||||
|
reset: 'reset',
|
||||||
|
ret: 'ret',
|
||||||
|
retracted: 'retracted',
|
||||||
|
'retrofit costs': 'retrofit costs',
|
||||||
|
'retrofit from': 'retrofit from',
|
||||||
|
ROF: 'ROF',
|
||||||
|
S: 'S',
|
||||||
|
save: 'save',
|
||||||
|
sc: 'scanner',
|
||||||
|
PHRASE_SELECT_BUILDS: 'Select Builds to Compare',
|
||||||
|
sell: 'sell',
|
||||||
|
s: 'sensors',
|
||||||
|
settings: 'settings',
|
||||||
|
sb: 'Shield Booster',
|
||||||
|
scb: 'Shield Cell Bank',
|
||||||
|
sg: 'Shield Generator',
|
||||||
|
shields: 'shields',
|
||||||
|
ship: 'ship',
|
||||||
|
ships: 'ships',
|
||||||
|
shortened: 'shortened',
|
||||||
|
size: 'size',
|
||||||
|
skip: 'skip',
|
||||||
|
small: 'small',
|
||||||
|
speed: 'speed',
|
||||||
|
standard: 'standard',
|
||||||
|
'Standard Docking Computer': 'Standard Docking Computer',
|
||||||
|
Stock: 'Stock',
|
||||||
|
SYS: 'SYS',
|
||||||
|
T: 'T',
|
||||||
|
T_LOAD: 't-load',
|
||||||
|
'The Retributor': 'The Retributor',
|
||||||
|
t: 'thrusters',
|
||||||
|
time: 'time',
|
||||||
|
tp: 'Torpedo Pylon',
|
||||||
|
total: 'total',
|
||||||
|
'total range': 'total range',
|
||||||
|
turret: 'turret',
|
||||||
|
type: 'type',
|
||||||
|
U: 'U',
|
||||||
|
unladen: 'unladen',
|
||||||
|
PHRASE_UPDATE_RDY: 'Update Available! Click to Refresh',
|
||||||
|
URL: 'URL',
|
||||||
|
utility: 'utility',
|
||||||
|
'utility mounts': 'utility mounts',
|
||||||
|
version: 'version',
|
||||||
|
WEP: 'WEP',
|
||||||
|
yes: 'yes',
|
||||||
|
PHRASE_BACKUP_DESC: 'Backup of all Coriolis data to save or transfer to another browser/device'
|
||||||
|
});
|
||||||
|
}]);
|
||||||
212
app/js/i18n/es.js
Normal file
@@ -0,0 +1,212 @@
|
|||||||
|
angular.module('app').config(['$translateProvider', 'localeFormatProvider', function($translateProvider, localeFormatProvider) {
|
||||||
|
|
||||||
|
// Declare number format settings
|
||||||
|
localeFormatProvider.addFormat('es', {
|
||||||
|
decimal: ',',
|
||||||
|
thousands: '.',
|
||||||
|
grouping: [3],
|
||||||
|
currency: ['', ' €'],
|
||||||
|
dateTime: '%A, %e de %B de %Y, %X',
|
||||||
|
date: '%d/%m/%Y',
|
||||||
|
time: '%H:%M:%S',
|
||||||
|
periods: ['AM', 'PM'],
|
||||||
|
days: ['domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'],
|
||||||
|
shortDays: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', 'sáb'],
|
||||||
|
months: ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'],
|
||||||
|
shortMonths: ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic']
|
||||||
|
});
|
||||||
|
|
||||||
|
$translateProvider.translations('es', {
|
||||||
|
'PHRASE_EXPORT_DESC': 'Una detallada exportaci\u00f3n JSON de tu construcci\u00f3n para usarlo en otros sitios web y herramientas',
|
||||||
|
'A-Rated': 'Calidad-A',
|
||||||
|
'about': 'Acerca',
|
||||||
|
'action': 'Acci\u00f3n',
|
||||||
|
'added': 'A\u00f1adido',
|
||||||
|
'Advanced Discovery Scanner': 'Esc\u00e1ner de exploraci\u00f3n avanzado',
|
||||||
|
'agility': 'Maniobrabilidad',
|
||||||
|
'alpha': 'Alfa',
|
||||||
|
'ammo': 'Munici\u00f3n',
|
||||||
|
'PHRASE_CONFIRMATION': '\u00bfEst\u00e1s seguro?',
|
||||||
|
'armour': 'Blindaje',
|
||||||
|
'am': 'Unidad de auto-reparaciones',
|
||||||
|
'available': 'Disponible',
|
||||||
|
'backup': 'Reserva',
|
||||||
|
'Basic Discovery Scanner': 'Esc\u00e1ner de exploraci\u00f3n b\u00e1sico',
|
||||||
|
'bl': 'L\u00e1ser de haz',
|
||||||
|
'bins': 'contenedores',
|
||||||
|
'boost': 'incrementar',
|
||||||
|
'build': 'Construcci\u00f3n',
|
||||||
|
'build name': 'Nombre de la construcci\u00f3n',
|
||||||
|
'builds': 'Construcciones',
|
||||||
|
'bh': 'mamparos',
|
||||||
|
'ul': 'Laser de r\u00e1fagas',
|
||||||
|
'buy': 'Comprar',
|
||||||
|
'cancel': 'Cancelar',
|
||||||
|
'c': 'Ca\u00f1\u00f3n',
|
||||||
|
'capital': 'capital',
|
||||||
|
'cargo': 'Carga',
|
||||||
|
'Cargo Hatch': 'Compuerta de carga',
|
||||||
|
'cr': 'Compartimento de carga',
|
||||||
|
'cs': 'Esc\u00e1ner de carga',
|
||||||
|
'cells': 'celdas',
|
||||||
|
'Chaff Launcher': 'Lanzador de birutas',
|
||||||
|
'close': 'Cerrar',
|
||||||
|
'cc': 'Controlador de Drones de Recogida',
|
||||||
|
'compare': 'Comparar',
|
||||||
|
'compare all': 'comparar todas',
|
||||||
|
'comparison': 'Comparativa',
|
||||||
|
'comparisons': 'Comparativas',
|
||||||
|
'component': 'Componente',
|
||||||
|
'cost': 'Coste',
|
||||||
|
'costs': 'Costes',
|
||||||
|
'cm': 'Contramedidas',
|
||||||
|
'create': 'Crear',
|
||||||
|
'create new': 'Crear nuevo',
|
||||||
|
'credits': 'Cr\u00e9ditos',
|
||||||
|
'damage': 'Da\u00f1o',
|
||||||
|
'delete': 'Borrar',
|
||||||
|
'delete all': 'Borrar todo',
|
||||||
|
'dep': 'desp',
|
||||||
|
'deployed': 'Desplegado',
|
||||||
|
'detailed export': 'Exportacion detallada',
|
||||||
|
'Detailed Surface Scanner': 'Escaner de exploraci\u00f3n detallada',
|
||||||
|
'disabled': 'Desactivado',
|
||||||
|
'discount': 'Descuento',
|
||||||
|
'dc': 'Ordenador de aterrizaje',
|
||||||
|
'done': 'Hecho',
|
||||||
|
'DPS': 'DPS (Da\u00f1o Por Segundo)',
|
||||||
|
'edit data': 'Editar datos',
|
||||||
|
'efficiency': 'Eficiencia',
|
||||||
|
'Electronic Countermeasure': 'Contramedidas electr\u00f3nicas',
|
||||||
|
'empty': 'Vac\u00edo',
|
||||||
|
'ENG': 'MOT',
|
||||||
|
'enter name': 'Introduce el nombre',
|
||||||
|
'export': 'exportar',
|
||||||
|
'fixed': 'fijo',
|
||||||
|
'forum': 'Foro',
|
||||||
|
'fc': 'Ca\u00f1\u00f3n de fragmentaci\u00f3n',
|
||||||
|
'fd': 'Motor de salto',
|
||||||
|
'ws': 'Esc\u00e1ner de Salto',
|
||||||
|
'fi': 'Interdictor FSD',
|
||||||
|
'fuel': 'Combustible',
|
||||||
|
'fs': 'Recolector de Combustible',
|
||||||
|
'ft': 'Tanque de combustible',
|
||||||
|
'fx': 'Sistema de Transferencia de Combustilble',
|
||||||
|
'full tank': 'Tanque lleno',
|
||||||
|
'Gimballed': 'Card\u00e1n',
|
||||||
|
'H': 'E',
|
||||||
|
'hardpoints': 'Montura de armas',
|
||||||
|
'hb': 'Controlador de Apertura de Bah\u00eda de Carga',
|
||||||
|
'Heat Sink Launcher': 'Eyector de Acumulador de Calor',
|
||||||
|
'huge': 'enorme',
|
||||||
|
'hull': 'Casco',
|
||||||
|
'hr': 'Sistema de Casco Reforzado',
|
||||||
|
'import': 'Importar',
|
||||||
|
'import all': 'Importar todo',
|
||||||
|
'insurance': 'Seguro',
|
||||||
|
'Intermediate Discovery Scanner': 'Esc\u00e1ner de exploraci\u00f3n media',
|
||||||
|
'internal compartments': 'Compartimentos internos',
|
||||||
|
'jump range': 'Rango de salto',
|
||||||
|
'jumps': 'Saltos',
|
||||||
|
'kw': 'Esc\u00e1ner Detector de Recompensas',
|
||||||
|
'L': 'G',
|
||||||
|
'laden': 'Cargada',
|
||||||
|
'language': 'Idioma',
|
||||||
|
'large': 'Grande',
|
||||||
|
'ls': 'Soporte vital',
|
||||||
|
'Lightweight Alloy': 'Aleaci\u00f3n ligera',
|
||||||
|
'limpets': 'Drones',
|
||||||
|
'lock factor': 'factor de bloqueo',
|
||||||
|
'mass': 'Masa',
|
||||||
|
'max': 'm\u00e1x',
|
||||||
|
'max mass': 'Masa m\u00e1xima',
|
||||||
|
'medium': 'medio',
|
||||||
|
'Military Grade Composite': 'Blindaje Militar',
|
||||||
|
'nl': 'Lanzaminas',
|
||||||
|
'Mining Lance': 'Lanza de miner\u00eda',
|
||||||
|
'ml': 'L\u00e1ser de miner\u00eda',
|
||||||
|
'Mirrored Surface Composite': 'Blindaje Reflectante',
|
||||||
|
'mr': 'Bah\u00eda de Misiles',
|
||||||
|
'mc': 'Ca\u00f1\u00f3n m\u00faltiple',
|
||||||
|
'net cost': 'Coste neto',
|
||||||
|
'PHRASE_NO_BUILDS': '\u00a1No se a\u00f1adieron plantillas para comparaci\u00f3n!',
|
||||||
|
'PHRASE_NO_RETROCH': 'No hay cambios en los ajutes',
|
||||||
|
'none': 'Nada',
|
||||||
|
'none created': 'Nada creado',
|
||||||
|
'off': 'apagado',
|
||||||
|
'on': 'encendido',
|
||||||
|
'optimal': '\u00f3ptimo',
|
||||||
|
'optimal mass': 'masa \u00f3ptima',
|
||||||
|
'optimize mass': 'optimizar masa',
|
||||||
|
'overwrite': 'Sobreescribir',
|
||||||
|
'PHRASE_IMPORT': 'Pega el JSON o imp\u00f3rtalo aqu\u00ed',
|
||||||
|
'penetration': 'penetraci\u00f3n',
|
||||||
|
'permalink': 'enlace permanente',
|
||||||
|
'pa': 'Acelerador de Plasma',
|
||||||
|
'Point Defence': 'Punto de Defensa',
|
||||||
|
'power': 'energ\u00eda',
|
||||||
|
'pd': 'distribuidor de energ\u00eda',
|
||||||
|
'pp': 'Planta de Energ\u00eda',
|
||||||
|
'priority': 'prioridad',
|
||||||
|
'proceed': 'Proceder',
|
||||||
|
'pc': 'Controlador de drones de prospecci\u00f3n',
|
||||||
|
'pl': 'L\u00e1ser de Pulso',
|
||||||
|
'PWR': 'POT',
|
||||||
|
'rg': 'Ca\u00f1\u00f3n de Riel',
|
||||||
|
'range': 'rango',
|
||||||
|
'rate': 'ratio',
|
||||||
|
'Reactive Surface Composite': 'Blindaje Reactivo',
|
||||||
|
'recharge': 'recargar',
|
||||||
|
'rf': 'Refineria',
|
||||||
|
'refuel time': 'Tiempo para repostar',
|
||||||
|
'Reinforced Alloy': 'Armadura reforzada',
|
||||||
|
'reload': 'Recargar',
|
||||||
|
'rename': 'Renombrar',
|
||||||
|
'repair': 'Reparar',
|
||||||
|
'reset': 'Reiniciar',
|
||||||
|
'ret': 'PLE',
|
||||||
|
'retracted': 'plegadas',
|
||||||
|
'retrofit costs': 'costes de equipamiento',
|
||||||
|
'retrofit from': 'equipamiento desde',
|
||||||
|
'ROF': 'RDF',
|
||||||
|
'S': 'P',
|
||||||
|
'save': 'guardar',
|
||||||
|
'sc': 'sc\u00e1ner',
|
||||||
|
'PHRASE_SELECT_BUILDS': 'Selecciona equipamientos para comparar',
|
||||||
|
'sell': 'Vender',
|
||||||
|
's': 'Sensores',
|
||||||
|
'settings': 'Configuraci\u00f3n',
|
||||||
|
'sb': 'Potenciador de Escudos',
|
||||||
|
'scb': 'C\u00e9lula de Energ\u00eda de Escudos',
|
||||||
|
'sg': 'Generador de escudos',
|
||||||
|
'shields': 'Escudos',
|
||||||
|
'ship': 'Nave ',
|
||||||
|
'ships': 'Naves',
|
||||||
|
'shortened': 'Abreviado',
|
||||||
|
'size': 'Tama\u00f1o',
|
||||||
|
'skip': 'omitir',
|
||||||
|
'small': 'Peque\u00f1o',
|
||||||
|
'speed': 'velocidad',
|
||||||
|
'standard': 'est\u00e1ndar',
|
||||||
|
'Standard Docking Computer': 'Computador de Atraque Est\u00e1ndar',
|
||||||
|
'Stock': 'De serie',
|
||||||
|
'SYS': 'SIS',
|
||||||
|
'T_LOAD': 'c-t\u00e9rmica',
|
||||||
|
't': 'Propulsores',
|
||||||
|
'time': 'Tiempo',
|
||||||
|
'tp': 'Anclaje de torpedo',
|
||||||
|
'total': 'Total',
|
||||||
|
'total range': 'Rango total',
|
||||||
|
'turret': 'torreta',
|
||||||
|
'type': 'Tipo',
|
||||||
|
'unladen': 'Sin carga',
|
||||||
|
'PHRASE_UPDATE_RDY': 'Actualizacion disponible! Haz click para recargar',
|
||||||
|
'URL': 'Enlace',
|
||||||
|
'utility': 'utilidad',
|
||||||
|
'utility mounts': 'monturas de utilidad',
|
||||||
|
'version': 'Versi\u00f3n',
|
||||||
|
'WEP': 'ARM',
|
||||||
|
'yes': 'si',
|
||||||
|
'PHRASE_BACKUP_DESC': 'Copia de seguridad de todos los datos de Coriolis para guardarlos o transferirlos a otro navegador\/dispositivo'
|
||||||
|
});
|
||||||
|
}]);
|
||||||
200
app/js/i18n/fr.js
Normal file
@@ -0,0 +1,200 @@
|
|||||||
|
angular.module('app').config(['$translateProvider', 'localeFormatProvider', function($translateProvider, localeFormatProvider) {
|
||||||
|
// Declare number format settings
|
||||||
|
localeFormatProvider.addFormat('fr', {
|
||||||
|
decimal: ',',
|
||||||
|
thousands: '.',
|
||||||
|
grouping: [3],
|
||||||
|
currency: ['', ' €'],
|
||||||
|
dateTime: '%A, le %e %B %Y, %X',
|
||||||
|
date: '%d/%m/%Y',
|
||||||
|
time: '%H:%M:%S',
|
||||||
|
periods: ['AM', 'PM'], // unused
|
||||||
|
days: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
|
||||||
|
shortDays: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
|
||||||
|
months: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
|
||||||
|
shortMonths: ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.']
|
||||||
|
});
|
||||||
|
$translateProvider.translations('fr', {
|
||||||
|
PHRASE_EXPORT_DESC: 'Export détaillé en JSON de votre configuration pour utilisation sur d\'autres sites et outils',
|
||||||
|
'A-Rated': 'Classe-A ',
|
||||||
|
about: 'à propos',
|
||||||
|
added: 'ajouté',
|
||||||
|
Advanced: 'Avancé',
|
||||||
|
'Advanced Discovery Scanner': 'Détecteur découverte avancé',
|
||||||
|
agility: 'manœuvrabilité',
|
||||||
|
ammo: 'munitions',
|
||||||
|
PHRASE_CONFIRMATION: 'Êtes-vous sûr ?',
|
||||||
|
armour: 'Armure',
|
||||||
|
am: 'Unité de maintenance de terrain auto',
|
||||||
|
available: 'Disponibilité',
|
||||||
|
backup: 'sauvegarde',
|
||||||
|
'Basic Discovery Scanner': 'Détecteur découverte simple',
|
||||||
|
bl: 'Rayon Laser',
|
||||||
|
bins: 'bennes',
|
||||||
|
build: 'Configuration',
|
||||||
|
'build name': 'Nom de la configuration',
|
||||||
|
builds: 'Configurations',
|
||||||
|
bh: 'Coque',
|
||||||
|
ul: 'Laser à rafale',
|
||||||
|
buy: 'Acheter',
|
||||||
|
cancel: 'Annuler',
|
||||||
|
c: 'Canon',
|
||||||
|
cargo: 'Soute',
|
||||||
|
'Cargo Hatch': 'Écoutille de soute',
|
||||||
|
cr: 'Compartiment de soute',
|
||||||
|
cs: 'Détecteur de cargaison',
|
||||||
|
cells: 'Cellules',
|
||||||
|
'Chaff Launcher': 'Lanceur de paillettes',
|
||||||
|
close: 'fermer',
|
||||||
|
cc: 'Contrôleur de Collecteur',
|
||||||
|
compare: 'comparer',
|
||||||
|
'compare all': 'tout comparer',
|
||||||
|
comparison: 'comparaison',
|
||||||
|
comparisons: 'comparaisons',
|
||||||
|
component: 'composant',
|
||||||
|
cost: 'coût',
|
||||||
|
costs: 'coûts',
|
||||||
|
cm: 'Contre-mesure',
|
||||||
|
create: 'Créer',
|
||||||
|
'create new': 'Créer nouveau',
|
||||||
|
credits: 'crédits',
|
||||||
|
damage: 'Dégâts',
|
||||||
|
delete: 'supprimer',
|
||||||
|
'delete all': 'tout supprimer',
|
||||||
|
dep: 'depl',
|
||||||
|
deployed: 'déployé',
|
||||||
|
'detailed export': 'export détaillé',
|
||||||
|
'Detailed Surface Scanner': 'Détecteur surface détaillé',
|
||||||
|
disabled: 'désactivé',
|
||||||
|
discount: 'réduction',
|
||||||
|
Distruptor: 'Disrupteur',
|
||||||
|
dc: 'Ordinateur d\'appontage',
|
||||||
|
done: 'Valider',
|
||||||
|
'edit data': 'Editer donnée',
|
||||||
|
efficiency: 'efficacité',
|
||||||
|
'Electronic Countermeasure': 'Contre-mesures électroniques',
|
||||||
|
empty: 'Vide',
|
||||||
|
'enter name': 'Entrer un nom',
|
||||||
|
fixed: 'fixé',
|
||||||
|
fc: 'Canon à fragmentation',
|
||||||
|
fd: 'Réacteur FSD',
|
||||||
|
ws: 'Détecteur de sillage FSD',
|
||||||
|
fi: 'Intercepteur de réacteur FSD',
|
||||||
|
fuel: 'carburant',
|
||||||
|
fs: 'Récupérateur de carburant',
|
||||||
|
ft: 'Réservoir de carburant',
|
||||||
|
fx: 'Contrôleur de ravitailleur',
|
||||||
|
'full tank': 'Réservoir plein',
|
||||||
|
Gimballed: 'Point',
|
||||||
|
hardpoints: 'Points d\'emport',
|
||||||
|
hb: 'Contrôle de patelle perce-soute',
|
||||||
|
'Heat Sink Launcher': 'Éjecteur de dissipateur thermique',
|
||||||
|
huge: 'Très grand',
|
||||||
|
hull: 'Coque',
|
||||||
|
hr: 'Ensemble de mesures permettant de renforcer la coque',
|
||||||
|
'Imperial Hammer': 'Marteau impérial',
|
||||||
|
import: 'Importer',
|
||||||
|
'import all': 'Importer tout',
|
||||||
|
insurance: 'Assurance',
|
||||||
|
'Intermediate Discovery Scanner': 'Détecteur découverte intermédiaire',
|
||||||
|
'internal compartments': 'compartiments internes',
|
||||||
|
'jump range': 'Distance de saut',
|
||||||
|
jumps: 'Sauts',
|
||||||
|
kw: 'Détecteur d\'avis de recherche',
|
||||||
|
laden: 'chargé',
|
||||||
|
language: 'Langue',
|
||||||
|
large: 'large',
|
||||||
|
ls: 'Systèmes de survie',
|
||||||
|
'Lightweight Alloy': 'alliage léger',
|
||||||
|
'limpets': 'Patelles',
|
||||||
|
'lock factor': 'facteur inhibition de masse',
|
||||||
|
LS: 'SL',
|
||||||
|
LY: 'AL',
|
||||||
|
mass: 'Masse',
|
||||||
|
'max mass': 'masse max',
|
||||||
|
'Military Grade Composite': 'Composite militaire',
|
||||||
|
nl: 'Lance-mines',
|
||||||
|
'Mining Lance': 'Lance de minage',
|
||||||
|
ml: 'Laser minier',
|
||||||
|
'Mirrored Surface Composite': 'Composite à surface miroir',
|
||||||
|
mr: 'Batterie de missiles',
|
||||||
|
mc: 'Canon multiple',
|
||||||
|
'net cost': 'coûts nets',
|
||||||
|
no: 'non',
|
||||||
|
PHRASE_NO_BUILDS: 'Aucune configuration ajoutée pour comparaison',
|
||||||
|
PHRASE_NO_RETROCH: 'Configuration non modifiée',
|
||||||
|
none: 'aucun',
|
||||||
|
'none created': 'Rien de créé',
|
||||||
|
off: 'éteint',
|
||||||
|
on: 'allumé',
|
||||||
|
'optimal mass': 'masse optimale',
|
||||||
|
'optimize mass': 'optimiser masse',
|
||||||
|
overwrite: 'remplacer',
|
||||||
|
Pacifier: 'Pacificateur',
|
||||||
|
PHRASE_IMPORT: 'Coller ici votre JSON à importer',
|
||||||
|
pen: 'pén.',
|
||||||
|
penetration: 'pénétration',
|
||||||
|
permalink: 'lien durable',
|
||||||
|
pa: 'accélérateur plasma',
|
||||||
|
'Point Defence': 'Défense ponctuelle',
|
||||||
|
power: 'énergie',
|
||||||
|
pd: 'Répartiteur de puissance',
|
||||||
|
pp: 'Générateur',
|
||||||
|
priority: 'priorité',
|
||||||
|
psg: 'générateur de bouclier prisme',
|
||||||
|
proceed: 'continuer',
|
||||||
|
pc: 'Contrôleur de prospecteur',
|
||||||
|
pl: 'Laser à impulsion',
|
||||||
|
PWR: 'P',
|
||||||
|
rg: 'Canon électrique',
|
||||||
|
range: 'portée',
|
||||||
|
rate: 'cadence',
|
||||||
|
'Reactive Surface Composite': 'Composite à surface réactive',
|
||||||
|
recharge: 'recharger',
|
||||||
|
rf: 'Raffinerie',
|
||||||
|
'refuel time': 'Temps de remplissage',
|
||||||
|
'Reinforced Alloy': 'alliage renforcé',
|
||||||
|
reload: 'recharger',
|
||||||
|
rename: 'renommer',
|
||||||
|
repair: 'réparer',
|
||||||
|
reset: 'Réinitialisation',
|
||||||
|
ret: 'esc',
|
||||||
|
retracted: 'escamoté',
|
||||||
|
'retrofit costs': 'Valeur de rachat',
|
||||||
|
'retrofit from': 'Racheter de',
|
||||||
|
ROF: 'cadence',
|
||||||
|
save: 'sauvegarder',
|
||||||
|
sc: 'scanner',
|
||||||
|
PHRASE_SELECT_BUILDS: 'Sélectionner les configurations à comparer',
|
||||||
|
sell: 'vendre',
|
||||||
|
s: 'Capteurs',
|
||||||
|
settings: 'paramètres',
|
||||||
|
sb: 'Survolteur de bouclier',
|
||||||
|
scb: 'Réserve de cellules d\'énergie',
|
||||||
|
sg: 'Générateur de bouclier',
|
||||||
|
shields: 'boucliers',
|
||||||
|
ship: 'vaisseau',
|
||||||
|
ships: 'vaisseaux',
|
||||||
|
shortened: 'raccourci',
|
||||||
|
size: 'taille',
|
||||||
|
skip: 'Suivant',
|
||||||
|
small: 'petit',
|
||||||
|
speed: 'vitesse',
|
||||||
|
'Standard Docking Computer': 'Ordinateur d\'appontage standard',
|
||||||
|
Stock: 'de base',
|
||||||
|
T_LOAD: 'Charge thermique',
|
||||||
|
'The Retributor': 'Le Rétributeur',
|
||||||
|
t: 'propulseurs',
|
||||||
|
time: 'temps',
|
||||||
|
tp: 'Tube lance-torpille',
|
||||||
|
'total range': 'Distance maximale',
|
||||||
|
turret: 'tourelle',
|
||||||
|
unladen: 'Non chargé',
|
||||||
|
PHRASE_UPDATE_RDY: 'Mise à jour disponible ! Cliquez ici pour mettre à jour',
|
||||||
|
utility: 'utilitaire',
|
||||||
|
'utility mounts': 'Support utilitaire',
|
||||||
|
WEP: 'ARM',
|
||||||
|
yes: 'oui',
|
||||||
|
PHRASE_BACKUP_DESC: 'Exportation détaillée des données de Coriolis pour l\'utilisation dans d\'autres sites et outils'
|
||||||
|
});
|
||||||
|
}]);
|
||||||
133
app/js/i18n/it.js
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
angular.module('app').config(['$translateProvider', 'localeFormatProvider', function($translateProvider, localeFormatProvider) {
|
||||||
|
|
||||||
|
// Declare number format settings
|
||||||
|
localeFormatProvider.addFormat('es', {
|
||||||
|
decimal: ',',
|
||||||
|
thousands: '.',
|
||||||
|
grouping: [3],
|
||||||
|
currency: ['€', ''],
|
||||||
|
dateTime: '%A %e %B %Y, %X',
|
||||||
|
date: '%d/%m/%Y',
|
||||||
|
time: '%H:%M:%S',
|
||||||
|
periods: ['AM', 'PM'], // unused
|
||||||
|
days: ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'],
|
||||||
|
shortDays: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'],
|
||||||
|
months: ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'],
|
||||||
|
shortMonths: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic']
|
||||||
|
});
|
||||||
|
|
||||||
|
$translateProvider.translations('it', {
|
||||||
|
PHRASE_EXPORT_DESC: 'Un export dettagliato in formato JSON della tua configurazione per essere usato in altri siti o tools',
|
||||||
|
'A-Rated': 'Classe A',
|
||||||
|
about: 'Info su Coriolis',
|
||||||
|
action: 'azione',
|
||||||
|
added: 'aggiunto',
|
||||||
|
Advanced: 'Avanzato',
|
||||||
|
agility: 'agilità',
|
||||||
|
ammo: 'munizioni',
|
||||||
|
PHRASE_CONFIRMATION: 'Sei sicuro ?',
|
||||||
|
armour: 'armatura',
|
||||||
|
available: 'disponibile',
|
||||||
|
bins: 'contenitore',
|
||||||
|
build: 'configurazione',
|
||||||
|
'build name': 'Nome Configurazione',
|
||||||
|
builds: 'configurazioni',
|
||||||
|
buy: 'compra',
|
||||||
|
cancel: 'cancella',
|
||||||
|
cells: 'celle',
|
||||||
|
close: 'chiudi',
|
||||||
|
compare: 'confronta',
|
||||||
|
'compare all': 'confronta tutti',
|
||||||
|
comparison: 'comparazione',
|
||||||
|
comparisons: 'comparazioni',
|
||||||
|
component: 'componente',
|
||||||
|
cost: 'costo',
|
||||||
|
costs: 'costi',
|
||||||
|
cm: 'Contromisure',
|
||||||
|
create: 'crea',
|
||||||
|
'create new': 'crea nuovo',
|
||||||
|
credits: 'crediti',
|
||||||
|
damage: 'danno',
|
||||||
|
delete: 'elimina',
|
||||||
|
'delete all': 'elimina tutto',
|
||||||
|
dep: 'dep',
|
||||||
|
deployed: 'deployed',
|
||||||
|
'detailed export': 'esportazione dettagliata',
|
||||||
|
disabled: 'disabilita',
|
||||||
|
discount: 'sconto',
|
||||||
|
done: 'fatto',
|
||||||
|
'edit data': 'modifica i dati',
|
||||||
|
efficiency: 'efficenza',
|
||||||
|
empty: 'vuoto',
|
||||||
|
Enforcer: 'Rinforzatore',
|
||||||
|
'enter name': 'Inserisci un nome',
|
||||||
|
export: 'esporta',
|
||||||
|
fixed: 'fissi',
|
||||||
|
fuel: 'carburante',
|
||||||
|
'full tank': 'Serbatoio Pieno',
|
||||||
|
huge: 'enorme',
|
||||||
|
hull: 'corazza',
|
||||||
|
import: 'importa',
|
||||||
|
'import all': 'importa tutto',
|
||||||
|
insurance: 'assicurazione',
|
||||||
|
'internal compartments': 'compartimenti interni',
|
||||||
|
'jump range': 'distanza di salto',
|
||||||
|
jumps: 'salti',
|
||||||
|
laden: 'carico',
|
||||||
|
language: 'lingua',
|
||||||
|
large: 'largo',
|
||||||
|
mass: 'massa',
|
||||||
|
max: 'massimo',
|
||||||
|
'max mass': 'massa massimale',
|
||||||
|
medium: 'medio',
|
||||||
|
'net cost': 'costo netto',
|
||||||
|
PHRASE_NO_BUILDS: 'nessuna configurazione è stata aggiunta per la comparazione!',
|
||||||
|
PHRASE_NO_RETROCH: 'Nessun cambiamento di Retrofitting',
|
||||||
|
none: 'nessuno',
|
||||||
|
'none created': 'nessuno creato',
|
||||||
|
optimal: 'ottimale',
|
||||||
|
'optimal mass': 'massa ottimale',
|
||||||
|
'optimize mass': 'ottimizza la massa',
|
||||||
|
overwrite: 'sovrasscrivi',
|
||||||
|
PHRASE_IMPORT: 'Incolla un JSON o importalo qua',
|
||||||
|
penetration: 'penetrazione',
|
||||||
|
power: 'potenza',
|
||||||
|
priority: 'priorità',
|
||||||
|
proceed: 'procedi',
|
||||||
|
range: 'distanza',
|
||||||
|
rate: 'rateo',
|
||||||
|
recharge: 'ricarica',
|
||||||
|
reload: 'ricarica',
|
||||||
|
rename: 'rinomina',
|
||||||
|
repair: 'ripara',
|
||||||
|
reset: 'resetta',
|
||||||
|
retracted: 'retratti',
|
||||||
|
'retrofit costs': 'costi di retrofit',
|
||||||
|
'retrofit from': 'retrofit da',
|
||||||
|
save: 'salva',
|
||||||
|
sell: 'vendi',
|
||||||
|
settings: 'impostazioni',
|
||||||
|
shields: 'scudi',
|
||||||
|
ship: 'nave',
|
||||||
|
ships: 'navi',
|
||||||
|
shortened: 'accorciato',
|
||||||
|
size: 'grandezza',
|
||||||
|
skip: 'salta',
|
||||||
|
small: 'piccolo',
|
||||||
|
speed: 'velocità',
|
||||||
|
Stock: 'appena comprata',
|
||||||
|
t: 'thrusters',
|
||||||
|
time: 'tempo',
|
||||||
|
total: 'totale',
|
||||||
|
'total range': 'distanza totale',
|
||||||
|
turret: 'torrette',
|
||||||
|
type: 'tipo',
|
||||||
|
unladen: 'scarico',
|
||||||
|
PHRASE_UPDATE_RDY: 'Aggiornamenti disponibili ! Clicca per Aggiornare',
|
||||||
|
utility: 'supporti',
|
||||||
|
'utility mounts': 'supporti di utilità',
|
||||||
|
version: 'versione',
|
||||||
|
yes: 'sì',
|
||||||
|
PHRASE_BACKUP_DESC: 'Esportazione di tutti i dati su Coriolis per salvarli o trasferirli in un altro Browser/dispositivo'
|
||||||
|
});
|
||||||
|
}]);
|
||||||
23
app/js/i18n/languages.js
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
angular.module('app').config(['$translateProvider', function($translateProvider) {
|
||||||
|
$translateProvider
|
||||||
|
.useSanitizeValueStrategy('escapeParameters')
|
||||||
|
.useStorage('Persist')
|
||||||
|
.fallbackLanguage('en') // Use English as default/fallback language
|
||||||
|
.registerAvailableLanguageKeys(['en', 'de', 'es', 'fr', 'it', 'ru'], {
|
||||||
|
'en*': 'en',
|
||||||
|
'de*': 'de',
|
||||||
|
'es*': 'es',
|
||||||
|
'fr*': 'fr',
|
||||||
|
'it*': 'it',
|
||||||
|
'ru*': 'ru'
|
||||||
|
})
|
||||||
|
.determinePreferredLanguage();
|
||||||
|
}])
|
||||||
|
.value('Languages', {
|
||||||
|
en: 'English',
|
||||||
|
de: 'Deutsh',
|
||||||
|
it: 'Italiano',
|
||||||
|
es: 'Español',
|
||||||
|
fr: 'Français',
|
||||||
|
ru: 'ру́сский'
|
||||||
|
});
|
||||||
234
app/js/i18n/ru.js
Normal file
@@ -0,0 +1,234 @@
|
|||||||
|
angular.module('app').config(['$translateProvider', 'localeFormatProvider', function($translateProvider, localeFormatProvider) {
|
||||||
|
|
||||||
|
// Declare number format settings
|
||||||
|
localeFormatProvider.addFormat('ru', {
|
||||||
|
decimal: ',',
|
||||||
|
thousands: '\xa0',
|
||||||
|
grouping: [3],
|
||||||
|
currency: ['', ' руб.'],
|
||||||
|
dateTime: '%A, %e %B %Y г. %X',
|
||||||
|
date: '%d.%m.%Y',
|
||||||
|
time: '%H:%M:%S',
|
||||||
|
periods: ['AM', 'PM'],
|
||||||
|
days: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'],
|
||||||
|
shortDays: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
|
||||||
|
months: ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'],
|
||||||
|
shortMonths: ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек']
|
||||||
|
});
|
||||||
|
|
||||||
|
$translateProvider.translations('ru', {
|
||||||
|
PHRASE_EXPORT_DESC: 'Подробный экспорта JSON вашего телосложения для использования в других местах и инструментов',
|
||||||
|
'A-Rated': 'А-Класса',
|
||||||
|
about: 'О сайте',
|
||||||
|
action: 'Действие',
|
||||||
|
added: 'Добавлено',
|
||||||
|
Advanced: 'Продвинутый',
|
||||||
|
'Advanced Discovery Scanner': 'Продвинутый астросканер',
|
||||||
|
agility: 'Маневренность',
|
||||||
|
alpha: 'Альфа',
|
||||||
|
ammo: 'Боекомплект',
|
||||||
|
PHRASE_CONFIRMATION: 'Вы уверены?',
|
||||||
|
armour: 'Броня',
|
||||||
|
am: 'Ремонтный модуль',
|
||||||
|
available: 'доступно',
|
||||||
|
backup: 'Резервная копия',
|
||||||
|
'Basic Discovery Scanner': 'Стандартный исследовательский сканер',
|
||||||
|
bl: 'Лучевой лазер',
|
||||||
|
beta: 'Бета',
|
||||||
|
bins: 'контейнеры',
|
||||||
|
boost: 'форсаж',
|
||||||
|
build: 'cборка',
|
||||||
|
'build name': 'название сборки',
|
||||||
|
builds: 'cборки',
|
||||||
|
bh: 'Корпус',
|
||||||
|
ul: 'Мультиимпульсный лазер',
|
||||||
|
buy: 'купить',
|
||||||
|
cancel: 'отменить',
|
||||||
|
c: 'Пушка',
|
||||||
|
capital: 'Крупный',
|
||||||
|
cargo: 'Груз',
|
||||||
|
'Cargo Hatch': 'Грузовой люк',
|
||||||
|
cr: 'Грузовой отсек',
|
||||||
|
cs: 'Сканер груза',
|
||||||
|
cells: 'Ячейки',
|
||||||
|
'Chaff Launcher': 'Постановщик помех',
|
||||||
|
close: 'закрыть',
|
||||||
|
cc: 'Контроллер "дрон-сборщик"',
|
||||||
|
compare: 'сравнить ',
|
||||||
|
'compare all': 'сравнить все',
|
||||||
|
comparison: 'сравнение',
|
||||||
|
comparisons: 'сравнения',
|
||||||
|
component: 'Компонент',
|
||||||
|
cost: 'Стоимость',
|
||||||
|
costs: 'Расходы',
|
||||||
|
cm: 'Контрмеры',
|
||||||
|
CR: 'кр.',
|
||||||
|
create: 'создать',
|
||||||
|
'create new': 'Создать новый',
|
||||||
|
credits: 'Кредиты',
|
||||||
|
Cytoscrambler: 'сайтоскрамблер',
|
||||||
|
damage: 'Урон',
|
||||||
|
delete: 'Удалить',
|
||||||
|
'delete all': 'Удалить все',
|
||||||
|
dep: 'Вып',
|
||||||
|
deployed: 'Открыты',
|
||||||
|
'detailed export': 'Подробный экспорт',
|
||||||
|
'Detailed Surface Scanner': 'Подробный сканер поверхности',
|
||||||
|
disabled: 'Отключено',
|
||||||
|
discount: 'Скидка',
|
||||||
|
Distruptor: 'Дисраптор',
|
||||||
|
dc: 'Стыковочный компьютер',
|
||||||
|
done: 'готово',
|
||||||
|
DPS: 'УВС',
|
||||||
|
'edit data': 'Редактирование',
|
||||||
|
efficiency: 'Эффективность',
|
||||||
|
'Electronic Countermeasure': 'Электронная противомера',
|
||||||
|
empty: 'пусто',
|
||||||
|
Enforcer: 'Энфорсер',
|
||||||
|
ENG: 'ДВГ',
|
||||||
|
'enter name': 'Введите имя',
|
||||||
|
EPS: 'ЭВС',
|
||||||
|
export: 'Экспорт',
|
||||||
|
fixed: 'Фиксированое',
|
||||||
|
forum: 'Форум',
|
||||||
|
fc: 'Осколочное Орудие',
|
||||||
|
fd: 'Двигатель FSD',
|
||||||
|
ws: 'FSD Сканнер',
|
||||||
|
|
||||||
|
fi: 'Перехватчик FSD',
|
||||||
|
fuel: 'Топливо',
|
||||||
|
fs: 'Топливосборщик',
|
||||||
|
ft: 'Топливный бак',
|
||||||
|
fx: 'Контроллер Дрона-заправщика',
|
||||||
|
'full tank': 'Полный бак',
|
||||||
|
Gimballed: 'Шарнирное',
|
||||||
|
H: 'O',
|
||||||
|
hardpoints: 'Орудийные порты',
|
||||||
|
hb: 'Контроллер "дрон-взломщик"',
|
||||||
|
'Heat Sink Launcher': 'Теплоотводная ПУ',
|
||||||
|
huge: 'огромный',
|
||||||
|
hull: 'Корпус',
|
||||||
|
hr: 'Набор усиления корпуса',
|
||||||
|
'Imperial Hammer': 'Имперский Молот',
|
||||||
|
import: 'импортировать ',
|
||||||
|
'import all': 'импортировать все',
|
||||||
|
insurance: 'Страховка',
|
||||||
|
'Intermediate Discovery Scanner': 'Средний исследовательский сканер',
|
||||||
|
'internal compartments': 'внутренние отсеки',
|
||||||
|
'jump range': 'Дальность прыжка',
|
||||||
|
jumps: 'Прыжков',
|
||||||
|
kw: 'Полицейский сканер',
|
||||||
|
L: 'б',
|
||||||
|
laden: 'Груженый',
|
||||||
|
language: 'Язык',
|
||||||
|
large: 'большой',
|
||||||
|
ls: 'Система жизнеобеспечения',
|
||||||
|
'Lightweight Alloy': 'Легкий сплав',
|
||||||
|
'limpets': 'Дроны',
|
||||||
|
'lock factor': 'Масс. блок',
|
||||||
|
LS: 'Св.сек',
|
||||||
|
LY: 'Св.лет',
|
||||||
|
M: 'С',
|
||||||
|
'm/s': 'м/с',
|
||||||
|
mass: 'Масса',
|
||||||
|
max: 'Макс',
|
||||||
|
'max mass': 'Максимальная масса',
|
||||||
|
medium: 'Средний',
|
||||||
|
'Military Grade Composite': 'Военный композит',
|
||||||
|
nl: 'Минноукладчик',
|
||||||
|
'Mining Lance': 'Бурильная сулица',
|
||||||
|
ml: 'Бурильный лазер',
|
||||||
|
'Mirrored Surface Composite': 'Зеркальный композит',
|
||||||
|
mr: 'Ракетная установка',
|
||||||
|
mc: 'Многоствольное орудие',
|
||||||
|
'net cost': 'разница в цене',
|
||||||
|
no: 'Нет',
|
||||||
|
PHRASE_NO_BUILDS: 'Нечего сравнивать',
|
||||||
|
PHRASE_NO_RETROCH: 'нет ранних версий сборки\конфигурации',
|
||||||
|
none: 'ни один',
|
||||||
|
'none created': 'не создано',
|
||||||
|
off: 'выкл',
|
||||||
|
on: 'вкл',
|
||||||
|
optimal: 'Оптимальный',
|
||||||
|
'optimal mass': 'Оптимальная масса',
|
||||||
|
'optimize mass': 'Оптимизировать массу',
|
||||||
|
overwrite: 'перезаписать',
|
||||||
|
Pacifier: 'Миротворец',
|
||||||
|
'Pack-Hound': 'Ракета "Гончая"',
|
||||||
|
PHRASE_IMPORT: 'Для импорта вставьте код в эту форму',
|
||||||
|
pen: 'ПБ',
|
||||||
|
penetration: 'Пробитие',
|
||||||
|
permalink: 'Постоянная ссылка',
|
||||||
|
pa: 'Ускоритель плазмы',
|
||||||
|
'Point Defence': 'Противоракетная защита',
|
||||||
|
power: 'Мощность',
|
||||||
|
pd: 'Распределитель энергии',
|
||||||
|
pp: 'Реактор',
|
||||||
|
pri: 'Осн',
|
||||||
|
priority: 'Приоритет',
|
||||||
|
psg: 'Генератор призматического щита',
|
||||||
|
proceed: 'продолжить',
|
||||||
|
pc: 'Контроллер "Дрон-исследователь"',
|
||||||
|
pl: 'Импульсный лазер',
|
||||||
|
PWR: 'Эн',
|
||||||
|
rg: 'Рельсотрон',
|
||||||
|
range: 'Дальность',
|
||||||
|
rate: 'скорость',
|
||||||
|
'Reactive Surface Composite': 'Динамическая защита',
|
||||||
|
recharge: 'Перезарядка',
|
||||||
|
rf: 'Переработка',
|
||||||
|
'refuel time': 'Время дозаправки',
|
||||||
|
'Reinforced Alloy': 'Усиленный сплав',
|
||||||
|
reload: 'Перезарядить',
|
||||||
|
rename: 'Переименовать',
|
||||||
|
repair: 'Починка',
|
||||||
|
reset: 'Сброс',
|
||||||
|
ret: 'Убр.',
|
||||||
|
retracted: 'Убрано',
|
||||||
|
'retrofit costs': 'цена модификации',
|
||||||
|
'retrofit from': 'модификация от',
|
||||||
|
ROF: 'В/сек',
|
||||||
|
S: 'М',
|
||||||
|
save: 'Сохранить',
|
||||||
|
sc: 'Сканер',
|
||||||
|
PHRASE_SELECT_BUILDS: 'Выберите конфигурацию для сравнения',
|
||||||
|
sell: 'Продать',
|
||||||
|
s: 'Сенсоры',
|
||||||
|
settings: 'Настройки',
|
||||||
|
sb: 'Усилитель щита',
|
||||||
|
scb: 'Батареи перезарядки щита',
|
||||||
|
sg: 'Генератор щита',
|
||||||
|
shields: 'Щиты',
|
||||||
|
ship: 'Корабль',
|
||||||
|
ships: 'Корабли',
|
||||||
|
shortened: 'Укороченный',
|
||||||
|
size: 'размер',
|
||||||
|
skip: 'пропустить',
|
||||||
|
small: 'Малый',
|
||||||
|
speed: 'скорость',
|
||||||
|
standard: 'Стандартный',
|
||||||
|
'Standard Docking Computer': 'Стандартный стыковочный компьютер',
|
||||||
|
Stock: 'Стандартная комплектация',
|
||||||
|
SYS: 'СИС',
|
||||||
|
T: 'Т',
|
||||||
|
T_LOAD: 'Тепл.',
|
||||||
|
'The Retributor': '"Возмездие"',
|
||||||
|
t: 'Двигатели',
|
||||||
|
time: 'Время',
|
||||||
|
tp: 'Торпедный аппарат',
|
||||||
|
total: 'Всего',
|
||||||
|
'total range': 'Общий радиус',
|
||||||
|
turret: 'Туррель',
|
||||||
|
type: 'Тип',
|
||||||
|
U: 'В',
|
||||||
|
unladen: 'Пустой',
|
||||||
|
PHRASE_UPDATE_RDY: 'Доступно обновление. Нажмите для обновления.',
|
||||||
|
URL: 'Ссылка',
|
||||||
|
utility: 'Вспомогательное',
|
||||||
|
'utility mounts': 'Вспомогательное оборудование',
|
||||||
|
version: 'Версия',
|
||||||
|
WEP: 'ОРУ',
|
||||||
|
yes: 'Да',
|
||||||
|
PHRASE_BACKUP_DESC: 'Сохраните все данные перед переносом в другой браузер или устройство'
|
||||||
|
});
|
||||||
|
}]);
|
||||||
36
app/js/provider-locale-format.js
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
angular.module('app').provider('localeFormat', function localeFormatProvider() {
|
||||||
|
var formats = {
|
||||||
|
en: {
|
||||||
|
decimal: '.',
|
||||||
|
thousands: ',',
|
||||||
|
grouping: [3],
|
||||||
|
currency: ['$', ''],
|
||||||
|
dateTime: '%a %b %e %X %Y',
|
||||||
|
date: '%m/%d/%Y',
|
||||||
|
time: '%H:%M:%S',
|
||||||
|
periods: ['AM', 'PM'],
|
||||||
|
days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||||
|
shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||||
|
months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
||||||
|
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
function LocaleFormat(formatMap) {
|
||||||
|
this.formatMap = formatMap;
|
||||||
|
|
||||||
|
this.get = function(lang) {
|
||||||
|
return this.formatMap[lang] ? this.formatMap[lang] : this.formatMap.en;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
this.addFormat = function(langCode, formatDetails) {
|
||||||
|
formats[langCode] = formatDetails;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.$get = [function() {
|
||||||
|
return new LocaleFormat(formats);
|
||||||
|
}];
|
||||||
|
|
||||||
|
});
|
||||||
@@ -1,9 +1,13 @@
|
|||||||
/**
|
/**
|
||||||
* [description]
|
* [description]
|
||||||
*/
|
*/
|
||||||
angular.module('app').service('Persist', ['$window','lodash', function ($window, _) {
|
angular.module('app').service('Persist', ['$window', 'lodash', function($window, _) {
|
||||||
var LS_KEY_BUILDS = 'builds';
|
var LS_KEY_BUILDS = 'builds';
|
||||||
var LS_KEY_COMPARISONS = 'comparisons';
|
var LS_KEY_COMPARISONS = 'comparisons';
|
||||||
|
var LS_KEY_LANG = 'NG_TRANSLATE_LANG_KEY';
|
||||||
|
var LS_KEY_COST_TAB = 'costTab';
|
||||||
|
var LS_KEY_INSURANCE = 'insurance';
|
||||||
|
var LS_KEY_DISCOUNTS = 'discounts';
|
||||||
var localStorage = $window.localStorage;
|
var localStorage = $window.localStorage;
|
||||||
var buildJson = null;
|
var buildJson = null;
|
||||||
var comparisonJson = null;
|
var comparisonJson = null;
|
||||||
@@ -19,8 +23,8 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
this.lsEnabled = false;
|
this.lsEnabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.builds = buildJson? angular.fromJson(buildJson) : {};
|
this.builds = buildJson ? angular.fromJson(buildJson) : {};
|
||||||
this.comparisons = comparisonJson? angular.fromJson(comparisonJson) : {};
|
this.comparisons = comparisonJson ? angular.fromJson(comparisonJson) : {};
|
||||||
var buildCount = Object.keys(this.builds).length;
|
var buildCount = Object.keys(this.builds).length;
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
@@ -28,6 +32,22 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
hasBuilds: buildCount > 0,
|
hasBuilds: buildCount > 0,
|
||||||
hasComparisons: Object.keys(this.comparisons).length > 0
|
hasComparisons: Object.keys(this.comparisons).length > 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.put = function(name, value) {
|
||||||
|
if (!this.lsEnabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
localStorage.setItem(name, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
this.get = function(name) {
|
||||||
|
return this.lsEnabled ? localStorage.getItem(name) : null;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.getLangCode = function() {
|
||||||
|
return this.lsEnabled ? localStorage.getItem(LS_KEY_LANG) : null;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Persist a ship build in local storage.
|
* Persist a ship build in local storage.
|
||||||
*
|
*
|
||||||
@@ -35,7 +55,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
* @param {string} name The name of the build
|
* @param {string} name The name of the build
|
||||||
* @param {string} code The serialized code
|
* @param {string} code The serialized code
|
||||||
*/
|
*/
|
||||||
this.saveBuild = function (shipId, name, code) {
|
this.saveBuild = function(shipId, name, code) {
|
||||||
if (!this.lsEnabled) {
|
if (!this.lsEnabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -44,7 +64,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
this.builds[shipId] = {};
|
this.builds[shipId] = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!this.builds[shipId][name]) {
|
if (!this.builds[shipId][name]) {
|
||||||
this.state.buildCount++;
|
this.state.buildCount++;
|
||||||
this.state.hasBuilds = true;
|
this.state.hasBuilds = true;
|
||||||
}
|
}
|
||||||
@@ -62,7 +82,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
* @param {string} name The name of the build
|
* @param {string} name The name of the build
|
||||||
* @return {string} The serialized build string.
|
* @return {string} The serialized build string.
|
||||||
*/
|
*/
|
||||||
this.getBuild = function (shipId, name) {
|
this.getBuild = function(shipId, name) {
|
||||||
if (this.builds[shipId] && this.builds[shipId][name]) {
|
if (this.builds[shipId] && this.builds[shipId][name]) {
|
||||||
return this.builds[shipId][name];
|
return this.builds[shipId][name];
|
||||||
}
|
}
|
||||||
@@ -76,8 +96,8 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
* @param {string} shipId The unique id for a model of ship
|
* @param {string} shipId The unique id for a model of ship
|
||||||
* @param {string} name The name of the build
|
* @param {string} name The name of the build
|
||||||
*/
|
*/
|
||||||
this.deleteBuild = function (shipId, name) {
|
this.deleteBuild = function(shipId, name) {
|
||||||
if(this.lsEnabled && this.builds[shipId][name]) {
|
if (this.lsEnabled && this.builds[shipId][name]) {
|
||||||
delete this.builds[shipId][name];
|
delete this.builds[shipId][name];
|
||||||
if (Object.keys(this.builds[shipId]).length === 0) {
|
if (Object.keys(this.builds[shipId]).length === 0) {
|
||||||
delete this.builds[shipId];
|
delete this.builds[shipId];
|
||||||
@@ -90,8 +110,8 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
var comps = this.comparisons;
|
var comps = this.comparisons;
|
||||||
for (var c in comps) {
|
for (var c in comps) {
|
||||||
for (var i = 0; i < comps[c].builds.length; i++) { // For all builds in the current comparison
|
for (var i = 0; i < comps[c].builds.length; i++) { // For all builds in the current comparison
|
||||||
if(comps[c].builds[i].shipId == shipId && comps[c].builds[i].buildName == name) {
|
if (comps[c].builds[i].shipId == shipId && comps[c].builds[i].buildName == name) {
|
||||||
comps[c].builds.splice(i,1);
|
comps[c].builds.splice(i, 1);
|
||||||
break; // A build is unique ber comparison
|
break; // A build is unique ber comparison
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -107,7 +127,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
* @param {array} builds Array of builds
|
* @param {array} builds Array of builds
|
||||||
* @param {array} facets Array of facet indices
|
* @param {array} facets Array of facet indices
|
||||||
*/
|
*/
|
||||||
this.saveComparison = function (name, builds, facets){
|
this.saveComparison = function(name, builds, facets) {
|
||||||
if (!this.lsEnabled) {
|
if (!this.lsEnabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -117,7 +137,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
}
|
}
|
||||||
this.comparisons[name] = {
|
this.comparisons[name] = {
|
||||||
facets: facets,
|
facets: facets,
|
||||||
builds: _.map(builds, function (b) { return {shipId: b.id, buildName: b.buildName }; })
|
builds: _.map(builds, function(b) { return { shipId: b.id || b.shipId, buildName: b.buildName }; })
|
||||||
};
|
};
|
||||||
localStorage.setItem(LS_KEY_COMPARISONS, angular.toJson(this.comparisons));
|
localStorage.setItem(LS_KEY_COMPARISONS, angular.toJson(this.comparisons));
|
||||||
this.state.hasComparisons = true;
|
this.state.hasComparisons = true;
|
||||||
@@ -128,7 +148,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
* @param {string} name [description]
|
* @param {string} name [description]
|
||||||
* @return {object} Object containing array of facets and ship id + build names
|
* @return {object} Object containing array of facets and ship id + build names
|
||||||
*/
|
*/
|
||||||
this.getComparison = function (name) {
|
this.getComparison = function(name) {
|
||||||
if (this.comparisons[name]) {
|
if (this.comparisons[name]) {
|
||||||
return this.comparisons[name];
|
return this.comparisons[name];
|
||||||
}
|
}
|
||||||
@@ -139,7 +159,7 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
* Removes the comparison from localstorage.
|
* Removes the comparison from localstorage.
|
||||||
* @param {string} name Comparison name
|
* @param {string} name Comparison name
|
||||||
*/
|
*/
|
||||||
this.deleteComparison = function (name) {
|
this.deleteComparison = function(name) {
|
||||||
if (this.lsEnabled && this.comparisons[name]) {
|
if (this.lsEnabled && this.comparisons[name]) {
|
||||||
delete this.comparisons[name];
|
delete this.comparisons[name];
|
||||||
localStorage.setItem(LS_KEY_COMPARISONS, angular.toJson(this.comparisons));
|
localStorage.setItem(LS_KEY_COMPARISONS, angular.toJson(this.comparisons));
|
||||||
@@ -162,19 +182,131 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getInsurance = function () {
|
this.getAll = function() {
|
||||||
|
var data = {};
|
||||||
|
data[LS_KEY_BUILDS] = this.builds;
|
||||||
|
data[LS_KEY_COMPARISONS] = this.comparisons;
|
||||||
|
data[LS_KEY_INSURANCE] = this.getInsurance();
|
||||||
|
data[LS_KEY_DISCOUNTS] = this.getDiscount();
|
||||||
|
|
||||||
|
return data;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the saved insurance type
|
||||||
|
* @return {string} The name of the saved insurance type of null
|
||||||
|
*/
|
||||||
|
this.getInsurance = function() {
|
||||||
if (this.lsEnabled) {
|
if (this.lsEnabled) {
|
||||||
return localStorage.getItem('insurance');
|
return localStorage.getItem(LS_KEY_INSURANCE);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setInsurance = function (name) {
|
/**
|
||||||
|
* Persist selected insurance type
|
||||||
|
* @param {string} name Insurance type name
|
||||||
|
*/
|
||||||
|
this.setInsurance = function(name) {
|
||||||
if (this.lsEnabled) {
|
if (this.lsEnabled) {
|
||||||
return localStorage.setItem('insurance', name);
|
return localStorage.setItem(LS_KEY_INSURANCE, name);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Persist selected discount
|
||||||
|
* @param {number} val Discount value/amount
|
||||||
|
*/
|
||||||
|
this.setDiscount = function(val) {
|
||||||
|
if (this.lsEnabled) {
|
||||||
|
return localStorage.setItem(LS_KEY_DISCOUNTS, angular.toJson(val));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the saved discount
|
||||||
|
* @return {number} val Discount value/amount
|
||||||
|
*/
|
||||||
|
this.getDiscount = function() {
|
||||||
|
if (this.lsEnabled) {
|
||||||
|
return angular.fromJson(localStorage.getItem(LS_KEY_DISCOUNTS));
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Persist selected cost tab
|
||||||
|
* @param {number} val Discount value/amount
|
||||||
|
*/
|
||||||
|
this.setCostTab = function(tabName) {
|
||||||
|
if (this.lsEnabled) {
|
||||||
|
return localStorage.setItem(LS_KEY_COST_TAB, tabName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the saved discount
|
||||||
|
* @return {number} val Discount value/amount
|
||||||
|
*/
|
||||||
|
this.getCostTab = function() {
|
||||||
|
if (this.lsEnabled) {
|
||||||
|
return localStorage.getItem(LS_KEY_COST_TAB);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve the last router state from local storage
|
||||||
|
* @return {object} state State object containing state name and params
|
||||||
|
*/
|
||||||
|
this.getState = function() {
|
||||||
|
if (this.lsEnabled) {
|
||||||
|
var state = localStorage.getItem('state');
|
||||||
|
if (state) {
|
||||||
|
return angular.fromJson(state);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save the current router state to localstorage
|
||||||
|
* @param {object} state State object containing state name and params
|
||||||
|
*/
|
||||||
|
this.setState = function(state) {
|
||||||
|
if (this.lsEnabled) {
|
||||||
|
localStorage.setItem('state', angular.toJson(state));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve the last router state from local storage
|
||||||
|
* @return {number} size Ratio
|
||||||
|
*/
|
||||||
|
this.getSizeRatio = function() {
|
||||||
|
if (this.lsEnabled) {
|
||||||
|
var ratio = localStorage.getItem('sizeRatio');
|
||||||
|
if (!isNaN(ratio) && ratio > 0.6) {
|
||||||
|
return ratio;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save the current size ratio to localstorage
|
||||||
|
* @param {number} sizeRatio
|
||||||
|
*/
|
||||||
|
this.setSizeRatio = function(sizeRatio) {
|
||||||
|
if (this.lsEnabled) {
|
||||||
|
localStorage.setItem('sizeRatio', sizeRatio);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if localStorage is enabled/active
|
||||||
|
* @return {Boolean} True if localStorage is enabled
|
||||||
|
*/
|
||||||
this.isEnabled = function() {
|
this.isEnabled = function() {
|
||||||
return this.lsEnabled;
|
return this.lsEnabled;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Service managing seralization and deserialization of models for use in URLs and persistene.
|
* Service managing seralization and deserialization of models for use in URLs and persistene.
|
||||||
*/
|
*/
|
||||||
angular.module('app').service('Serializer', ['lodash', function (_) {
|
angular.module('app').service('Serializer', ['lodash', 'GroupMap', 'MountMap', 'ShipsDB', 'Ship', 'Components', '$state', function(_, GroupMap, MountMap, ShipsDB, Ship, Components, $state) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serializes the ships selected components for all slots to a URL friendly string.
|
* Serializes the ships selected components for all slots to a URL friendly string.
|
||||||
@@ -9,11 +9,20 @@ angular.module('app').service('Serializer', ['lodash', function (_) {
|
|||||||
* @return {string} Encoded string of components
|
* @return {string} Encoded string of components
|
||||||
*/
|
*/
|
||||||
this.fromShip = function(ship) {
|
this.fromShip = function(ship) {
|
||||||
|
var power = {
|
||||||
|
enabled: [ship.cargoHatch.enabled ? 1 : 0],
|
||||||
|
priorities: [ship.cargoHatch.priority]
|
||||||
|
};
|
||||||
|
|
||||||
var data = [
|
var data = [
|
||||||
ship.bulkheads.id,
|
ship.bulkheads.id,
|
||||||
_.map(ship.common, idToStr),
|
_.map(ship.standard, mapGroup, power),
|
||||||
_.map(ship.hardpoints, idToStr),
|
_.map(ship.hardpoints, mapGroup, power),
|
||||||
_.map(ship.internal, idToStr),
|
_.map(ship.internal, mapGroup, power),
|
||||||
|
'.',
|
||||||
|
LZString.compressToBase64(power.enabled.join('')).replace(/\//g, '-'),
|
||||||
|
'.',
|
||||||
|
LZString.compressToBase64(power.priorities.join('')).replace(/\//g, '-')
|
||||||
];
|
];
|
||||||
|
|
||||||
return _.flatten(data).join('');
|
return _.flatten(data).join('');
|
||||||
@@ -24,41 +33,154 @@ angular.module('app').service('Serializer', ['lodash', function (_) {
|
|||||||
* code.
|
* code.
|
||||||
*
|
*
|
||||||
* @param {Ship} ship The ship instance to be updated
|
* @param {Ship} ship The ship instance to be updated
|
||||||
* @param {string} code The string to deserialize
|
* @param {string} dataString The string to deserialize
|
||||||
*/
|
*/
|
||||||
this.toShip = function (ship, code) {
|
this.toShip = function(ship, dataString) {
|
||||||
var commonCount = ship.common.length;
|
var standard = new Array(ship.standard.length),
|
||||||
var hpCount = commonCount + ship.hardpoints.length;
|
hardpoints = new Array(ship.hardpoints.length),
|
||||||
var comps = {
|
internal = new Array(ship.internal.length),
|
||||||
|
parts = dataString.split('.'),
|
||||||
|
priorities = null,
|
||||||
|
enabled = null,
|
||||||
|
code = parts[0];
|
||||||
|
|
||||||
|
if (parts[1]) {
|
||||||
|
enabled = LZString.decompressFromBase64(parts[1].replace(/-/g, '/')).split('');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (parts[2]) {
|
||||||
|
priorities = LZString.decompressFromBase64(parts[2].replace(/-/g, '/')).split('');
|
||||||
|
}
|
||||||
|
|
||||||
|
decodeToArray(code, internal, decodeToArray(code, hardpoints, decodeToArray(code, standard, 1)));
|
||||||
|
|
||||||
|
ship.buildWith(
|
||||||
|
{
|
||||||
bulkheads: code.charAt(0) * 1,
|
bulkheads: code.charAt(0) * 1,
|
||||||
common: new Array(ship.common.length),
|
standard: standard,
|
||||||
hardpoints: new Array(ship.hardpoints.length),
|
hardpoints: hardpoints,
|
||||||
internal: new Array(ship.internal.length)
|
internal: internal
|
||||||
|
},
|
||||||
|
priorities,
|
||||||
|
enabled
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: improve...
|
this.toDetailedBuild = function(buildName, ship, code) {
|
||||||
for (var i = 1, c = 0, l = code.length; i < l; i++) {
|
var standard = ship.standard,
|
||||||
var empty = code.charAt(i) == '-';
|
hardpoints = ship.hardpoints,
|
||||||
if (c < commonCount) {
|
internal = ship.internal;
|
||||||
comps.common[c] = empty? 0 : code.substring(i, i + 2);
|
|
||||||
} else if (c < hpCount) {
|
var data = {
|
||||||
comps.hardpoints[c - commonCount] = empty? 0 : code.substring(i, i + 2);
|
$schema: 'http://cdn.coriolis.io/schemas/ship-loadout/2.json#',
|
||||||
} else {
|
name: buildName,
|
||||||
comps.internal[c - hpCount] = empty? 0 : code.substring(i, i + 2);
|
ship: ship.name,
|
||||||
}
|
references: [{
|
||||||
if (!empty) {
|
name: 'Coriolis.io',
|
||||||
i++;
|
url: $state.href('outfit', { shipId: ship.id, code: code, bn: buildName }, { absolute: true }),
|
||||||
}
|
code: code,
|
||||||
c++;
|
shipId: ship.id
|
||||||
}
|
}],
|
||||||
ship.buildWith(comps);
|
components: {
|
||||||
|
standard: {
|
||||||
|
bulkheads: ship.bulkheads.c.name,
|
||||||
|
cargoHatch: { enabled: Boolean(ship.cargoHatch.enabled), priority: ship.cargoHatch.priority + 1 },
|
||||||
|
powerPlant: { class: standard[0].c.class, rating: standard[0].c.rating, enabled: Boolean(standard[0].enabled), priority: standard[0].priority + 1 },
|
||||||
|
thrusters: { class: standard[1].c.class, rating: standard[1].c.rating, enabled: Boolean(standard[1].enabled), priority: standard[1].priority + 1 },
|
||||||
|
frameShiftDrive: { class: standard[2].c.class, rating: standard[2].c.rating, enabled: Boolean(standard[2].enabled), priority: standard[2].priority + 1 },
|
||||||
|
lifeSupport: { class: standard[3].c.class, rating: standard[3].c.rating, enabled: Boolean(standard[3].enabled), priority: standard[3].priority + 1 },
|
||||||
|
powerDistributor: { class: standard[4].c.class, rating: standard[4].c.rating, enabled: Boolean(standard[4].enabled), priority: standard[4].priority + 1 },
|
||||||
|
sensors: { class: standard[5].c.class, rating: standard[5].c.rating, enabled: Boolean(standard[5].enabled), priority: standard[5].priority + 1 },
|
||||||
|
fuelTank: { class: standard[6].c.class, rating: standard[6].c.rating, enabled: Boolean(standard[6].enabled), priority: standard[6].priority + 1 }
|
||||||
|
},
|
||||||
|
hardpoints: _.map(_.filter(hardpoints, function(slot) { return slot.maxClass > 0; }), slotToSchema),
|
||||||
|
utility: _.map(_.filter(hardpoints, function(slot) { return slot.maxClass === 0; }), slotToSchema),
|
||||||
|
internal: _.map(internal, slotToSchema)
|
||||||
|
},
|
||||||
|
stats: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.fromComparison = function (name, builds, facets, predicate, desc) {
|
for (var stat in ship) {
|
||||||
|
if (!isNaN(ship[stat])) {
|
||||||
|
data.stats[stat] = Math.round(ship[stat] * 100) / 100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return data;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.fromDetailedBuild = function(detailedBuild) {
|
||||||
|
var shipId = _.findKey(ShipsDB, { properties: { name: detailedBuild.ship } });
|
||||||
|
|
||||||
|
if (!shipId) {
|
||||||
|
throw 'No such ship: ' + detailedBuild.ship;
|
||||||
|
}
|
||||||
|
|
||||||
|
var comps = detailedBuild.components;
|
||||||
|
var standard = comps.standard;
|
||||||
|
var priorities = [ standard.cargoHatch && standard.cargoHatch.priority !== undefined ? standard.cargoHatch.priority - 1 : 0 ];
|
||||||
|
var enabled = [ standard.cargoHatch && standard.cargoHatch.enabled !== undefined ? standard.cargoHatch.enabled : true ];
|
||||||
|
var shipData = ShipsDB[shipId];
|
||||||
|
var ship = new Ship(shipId, shipData.properties, shipData.slots);
|
||||||
|
var bulkheads = Components.bulkheadIndex(standard.bulkheads);
|
||||||
|
|
||||||
|
if (bulkheads < 0) {
|
||||||
|
throw 'Invalid bulkheads: ' + standard.bulkheads;
|
||||||
|
}
|
||||||
|
|
||||||
|
var standardIds = _.map(
|
||||||
|
['powerPlant', 'thrusters', 'frameShiftDrive', 'lifeSupport', 'powerDistributor', 'sensors', 'fuelTank'],
|
||||||
|
function(c) {
|
||||||
|
if (!standard[c].class || !standard[c].rating) {
|
||||||
|
throw 'Invalid value for ' + c;
|
||||||
|
}
|
||||||
|
priorities.push(standard[c].priority === undefined ? 0 : standard[c].priority - 1);
|
||||||
|
enabled.push(standard[c].enabled === undefined ? true : standard[c].enabled);
|
||||||
|
return standard[c].class + standard[c].rating;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
var internal = _.map(comps.internal, function(c) { return c ? Components.findInternalId(c.group, c.class, c.rating, c.name) : 0; });
|
||||||
|
|
||||||
|
var hardpoints = _.map(comps.hardpoints, function(c) {
|
||||||
|
return c ? Components.findHardpointId(c.group, c.class, c.rating, c.name, MountMap[c.mount], c.missile) : 0;
|
||||||
|
}).concat(_.map(comps.utility, function(c) {
|
||||||
|
return c ? Components.findHardpointId(c.group, c.class, c.rating, c.name, MountMap[c.mount]) : 0;
|
||||||
|
}));
|
||||||
|
|
||||||
|
// The ordering of these arrays must match the order in which they are read in Ship.buildWith
|
||||||
|
priorities = priorities.concat(_.map(comps.hardpoints, function(c) { return (!c || c.priority === undefined) ? 0 : c.priority - 1; }),
|
||||||
|
_.map(comps.utility, function(c) { return (!c || c.priority === undefined) ? 0 : c.priority - 1; }),
|
||||||
|
_.map(comps.internal, function(c) { return (!c || c.priority === undefined) ? 0 : c.priority - 1; }));
|
||||||
|
enabled = enabled.concat(_.map(comps.hardpoints, function(c) { return (!c || c.enabled === undefined) ? true : c.enabled * 1; }),
|
||||||
|
_.map(comps.utility, function(c) { return (!c || c.enabled === undefined) ? true : c.enabled * 1; }),
|
||||||
|
_.map(comps.internal, function(c) { return (!c || c.enabled === undefined) ? true : c.enabled * 1; }));
|
||||||
|
|
||||||
|
ship.buildWith({ bulkheads: bulkheads, standard: standardIds, hardpoints: hardpoints, internal: internal }, priorities, enabled);
|
||||||
|
|
||||||
|
return ship;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.toDetailedExport = function(builds) {
|
||||||
|
var data = [];
|
||||||
|
|
||||||
|
for (var shipId in builds) {
|
||||||
|
for (var buildName in builds[shipId]) {
|
||||||
|
var code = builds[shipId][buildName];
|
||||||
|
var shipData = ShipsDB[shipId];
|
||||||
|
var ship = new Ship(shipId, shipData.properties, shipData.slots);
|
||||||
|
this.toShip(ship, code);
|
||||||
|
data.push(this.toDetailedBuild(buildName, ship, code));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
};
|
||||||
|
|
||||||
|
this.fromComparison = function(name, builds, facets, predicate, desc) {
|
||||||
var shipBuilds = [];
|
var shipBuilds = [];
|
||||||
|
|
||||||
builds.forEach(function (b) {
|
builds.forEach(function(b) {
|
||||||
shipBuilds.push({s: b.id, n: b.buildName, c: this.fromShip(b)});
|
shipBuilds.push({ s: b.id, n: b.buildName, c: this.fromShip(b) });
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
return LZString.compressToBase64(angular.toJson({
|
return LZString.compressToBase64(angular.toJson({
|
||||||
@@ -66,12 +188,12 @@ angular.module('app').service('Serializer', ['lodash', function (_) {
|
|||||||
b: shipBuilds,
|
b: shipBuilds,
|
||||||
f: facets,
|
f: facets,
|
||||||
p: predicate,
|
p: predicate,
|
||||||
d: desc? 1 : 0
|
d: desc ? 1 : 0
|
||||||
})).replace(/\//g,'-');
|
})).replace(/\//g, '-');
|
||||||
};
|
};
|
||||||
|
|
||||||
this.toComparison = function (code) {
|
this.toComparison = function(code) {
|
||||||
return angular.fromJson(LZString.decompressFromBase64(code.replace(/-/g,'/')));
|
return angular.fromJson(LZString.decompressFromBase64(code.replace(/-/g, '/')));
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -82,8 +204,42 @@ angular.module('app').service('Serializer', ['lodash', function (_) {
|
|||||||
* @param {object} slot The slot object.
|
* @param {object} slot The slot object.
|
||||||
* @return {string} The id of the selected component or '-' if none selected
|
* @return {string} The id of the selected component or '-' if none selected
|
||||||
*/
|
*/
|
||||||
function idToStr(slot) {
|
function mapGroup(slot) {
|
||||||
return (slot.id === null)? '-' : slot.id;
|
this.enabled.push(slot.enabled ? 1 : 0);
|
||||||
|
this.priorities.push(slot.priority);
|
||||||
|
|
||||||
|
return slot.id === null ? '-' : slot.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function decodeToArray(code, arr, codePos) {
|
||||||
|
for (var i = 0; i < arr.length; i++) {
|
||||||
|
if (code.charAt(codePos) == '-') {
|
||||||
|
arr[i] = 0;
|
||||||
|
codePos++;
|
||||||
|
} else {
|
||||||
|
arr[i] = code.substring(codePos, codePos + 2);
|
||||||
|
codePos += 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codePos;
|
||||||
|
}
|
||||||
|
|
||||||
|
function slotToSchema(slot) {
|
||||||
|
if (slot.c) {
|
||||||
|
var o = { class: slot.c.class, rating: slot.c.rating, enabled: Boolean(slot.enabled), priority: slot.priority + 1, group: GroupMap[slot.c.grp] };
|
||||||
|
if (slot.c.name) {
|
||||||
|
o.name = slot.c.name;
|
||||||
|
}
|
||||||
|
if (slot.c.mode) {
|
||||||
|
o.mount = MountMap[slot.c.mode];
|
||||||
|
}
|
||||||
|
if (slot.c.missile) {
|
||||||
|
o.missile = slot.c.missile;
|
||||||
|
}
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
@@ -1,67 +1,144 @@
|
|||||||
angular.module('shipyard').factory('ComponentSet', ['lodash', function (_) {
|
angular.module('shipyard').factory('ComponentSet', ['lodash', function(_) {
|
||||||
|
|
||||||
function ComponentSet(components, mass, maxCommonArr, maxInternal, maxHardPoint) {
|
function filter(data, maxClass, minClass, mass) {
|
||||||
|
return _.filter(data, function(c) {
|
||||||
|
return c.class <= maxClass && c.class >= minClass && (c.maxmass === undefined || mass <= c.maxmass);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getKey(maxClass, eligible) {
|
||||||
|
if (eligible) {
|
||||||
|
return maxClass + Object.keys(eligible).join('-');
|
||||||
|
}
|
||||||
|
return maxClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
function ComponentSet(components, mass, maxStandardArr, maxInternal, maxHardPoint) {
|
||||||
this.mass = mass;
|
this.mass = mass;
|
||||||
this.common = {};
|
this.standard = {};
|
||||||
this.internal = {};
|
this.internal = {};
|
||||||
this.hardpoints = {};
|
this.hardpoints = {};
|
||||||
this.hpClass = {};
|
this.hpClass = {};
|
||||||
this.intClass = {};
|
this.intClass = {};
|
||||||
|
|
||||||
for (var i = 0; i < components.common.length; i ++) {
|
this.standard[0] = filter(components.standard[0], maxStandardArr[0], 0, mass); // Power Plant
|
||||||
var max = maxCommonArr[i];
|
this.standard[2] = filter(components.standard[2], maxStandardArr[2], 0, mass); // FSD
|
||||||
switch (i) {
|
this.standard[4] = filter(components.standard[4], maxStandardArr[4], 0, mass); // Power Distributor
|
||||||
|
this.standard[6] = filter(components.standard[6], maxStandardArr[6], 0, mass); // Fuel Tank
|
||||||
|
|
||||||
|
// Thrusters, filter components by class only (to show full list of ratings for that class)
|
||||||
|
var minThrusterClass = _.reduce(components.standard[1], function(minClass, thruster) {
|
||||||
|
return (thruster.maxmass >= mass && thruster.class < minClass) ? thruster.class : minClass;
|
||||||
|
}, maxStandardArr[1]);
|
||||||
|
this.standard[1] = filter(components.standard[1], maxStandardArr[1], minThrusterClass, 0); // Thrusters
|
||||||
|
|
||||||
// Slots where component class must be equal to slot class
|
// Slots where component class must be equal to slot class
|
||||||
case 3: // Life Support
|
this.standard[3] = filter(components.standard[3], maxStandardArr[3], maxStandardArr[3], 0); // Life Supprt
|
||||||
case 5: // Sensors
|
this.standard[5] = filter(components.standard[5], maxStandardArr[5], maxStandardArr[5], mass); // Sensors
|
||||||
this.common[i] = filter(components.common[i], max, max, this.mass);
|
|
||||||
break;
|
for (var h in components.hardpoints) {
|
||||||
// Other slots can have a component of class lower than the slot class
|
this.hardpoints[h] = filter(components.hardpoints[h], maxHardPoint, 0, mass);
|
||||||
default:
|
|
||||||
this.common[i] = filter(components.common[i], max, 0, this.mass);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(var h in components.hardpoints) {
|
for (var g in components.internal) {
|
||||||
this.hardpoints[h] = filter(components.hardpoints[h], maxHardPoint, 0, this.mass);
|
this.internal[g] = filter(components.internal[g], maxInternal, 0, mass);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(var g in components.internal) {
|
/**
|
||||||
this.internal[g] = filter(components.internal[g], maxInternal, 0, this.mass);
|
* Create a memoized function for determining the components that are
|
||||||
|
* eligible for an internal slot
|
||||||
|
* @param {integer} c The max class component that can be mounted in the slot
|
||||||
|
* @param {Object} eligible) The map of eligible internal groups
|
||||||
|
* @return {object} A map of all eligible components by group
|
||||||
|
*/
|
||||||
|
this.getInts = _.memoize(
|
||||||
|
function(c, eligible) {
|
||||||
|
var o = {};
|
||||||
|
for (var key in this.internal) {
|
||||||
|
if (eligible && !eligible[key]) {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ComponentSet.prototype.getHps = function(c) {
|
|
||||||
if(!this.hpClass[c]) {
|
|
||||||
var o = this.hpClass[c] = {};
|
|
||||||
for(var key in this.hardpoints) {
|
|
||||||
var data = filter(this.hardpoints[key], c, c? 1 : 0, this.mass);
|
|
||||||
if(data.length) { // If group is not empty
|
|
||||||
o[key] = data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this.hpClass[c];
|
|
||||||
};
|
|
||||||
|
|
||||||
ComponentSet.prototype.getInts = function(c) {
|
|
||||||
if(!this.intClass[c]) {
|
|
||||||
var o = this.intClass[c] = {};
|
|
||||||
for(var key in this.internal) {
|
|
||||||
var data = filter(this.internal[key], c, 0, this.mass);
|
var data = filter(this.internal[key], c, 0, this.mass);
|
||||||
if(data.length) { // If group is not empty
|
if (data.length) { // If group is not empty
|
||||||
o[key] = data;
|
o[key] = data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return o;
|
||||||
|
},
|
||||||
|
getKey
|
||||||
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a memoized function for determining the components that are
|
||||||
|
* eligible for an hardpoint slot
|
||||||
|
* @param {integer} c The max class component that can be mounted in the slot
|
||||||
|
* @param {Object} eligible) The map of eligible hardpoint groups
|
||||||
|
* @return {object} A map of all eligible components by group
|
||||||
|
*/
|
||||||
|
this.getHps = _.memoize(
|
||||||
|
function(c, eligible) {
|
||||||
|
var o = {};
|
||||||
|
for (var key in this.hardpoints) {
|
||||||
|
if (eligible && !eligible[key]) {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
return this.intClass[c];
|
var data = filter(this.hardpoints[key], c, c ? 1 : 0, this.mass);
|
||||||
|
if (data.length) { // If group is not empty
|
||||||
|
o[key] = data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return o;
|
||||||
|
},
|
||||||
|
getKey
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
ComponentSet.prototype.lightestPowerDist = function(boostEnergy) {
|
||||||
|
var pds = this.standard[4];
|
||||||
|
var pd = pds[0];
|
||||||
|
|
||||||
|
for (var i = 1; i < pds.length; i++) {
|
||||||
|
if (pds[i].mass < pd.mass && pds[i].enginecapacity >= boostEnergy) {
|
||||||
|
pd = pds[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return pd.class + pd.rating;
|
||||||
};
|
};
|
||||||
|
|
||||||
function filter (data, maxClass, minClass, mass) {
|
ComponentSet.prototype.lightestThruster = function(ladenMass) {
|
||||||
return _.filter(data, function (c) {
|
var ths = this.standard[1];
|
||||||
return c.class <= maxClass && c.class >= minClass && (c.maxmass === undefined || mass <= c.maxmass);
|
var th = ths[0];
|
||||||
});
|
|
||||||
|
for (var i = 1; i < ths.length; i++) {
|
||||||
|
if (ths[i].mass < th.mass && ths[i].maxmass >= ladenMass) {
|
||||||
|
th = ths[i];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
return th.class + th.rating;
|
||||||
|
};
|
||||||
|
|
||||||
|
ComponentSet.prototype.lightestShieldGenerator = function(hullMass) {
|
||||||
|
var sg = null;
|
||||||
|
|
||||||
|
_.forEach(this.internal.sg, function(s) {
|
||||||
|
if (sg == null || (s.mass < sg.mass && s.minmass <= hullMass && s.maxmass > hullMass)) {
|
||||||
|
sg = s;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return sg.id;
|
||||||
|
};
|
||||||
|
|
||||||
|
ComponentSet.prototype.lightestPowerPlant = function(powerUsed, rating) {
|
||||||
|
var pps = this.standard[0];
|
||||||
|
var pp = null;
|
||||||
|
|
||||||
|
for (var i = 0; i < pps.length; i++) {
|
||||||
|
if (pp == null || (pps[i].mass < pp.mass && pps[i].pGen >= powerUsed)) {
|
||||||
|
pp = pps[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return pp.class + (pp.rating != 'D' || rating == 'A' ? 'A' : 'D'); // Use A rated if C,E
|
||||||
|
};
|
||||||
|
|
||||||
return ComponentSet;
|
return ComponentSet;
|
||||||
|
|
||||||
|
|||||||
@@ -1,180 +1,105 @@
|
|||||||
angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength', 'calcJumpRange', 'lodash', function (Components, calcShieldStrength, calcJumpRange, _) {
|
angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength', 'calcJumpRange', 'calcTotalRange', 'calcSpeed', 'lodash', 'ArmourMultiplier', function(Components, calcShieldStrength, calcJumpRange, calcTotalRange, calcSpeed, _, ArmourMultiplier) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the power usage type of a slot and it's particular component
|
||||||
|
* @param {object} slot The Slot
|
||||||
|
* @param {object} component The component in the slot
|
||||||
|
* @return {string} The key for the power usage type
|
||||||
|
*/
|
||||||
|
function powerUsageType(slot, component) {
|
||||||
|
if (component) {
|
||||||
|
if (component.passive) {
|
||||||
|
return 'retracted';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return slot.cat != 1 ? 'retracted' : 'deployed';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ship model used to track all ship components and properties.
|
* Ship model used to track all ship components and properties.
|
||||||
*
|
*
|
||||||
* @param {string} id Unique ship Id / Key
|
* @param {string} id Unique ship Id / Key
|
||||||
* @param {object} properties Basic ship properties such as name, manufacturer, mass, etc
|
* @param {object} properties Basic ship properties such as name, manufacturer, mass, etc
|
||||||
* @param {object} slots Collection of slot groups (standard/common, internal, hardpoints) with their max class size.
|
* @param {object} slots Collection of slot groups (standard/standard, internal, hardpoints) with their max class size.
|
||||||
*/
|
*/
|
||||||
function Ship(id, properties, slots) {
|
function Ship(id, properties, slots) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.incCost = true;
|
this.cargoHatch = { c: Components.cargoHatch(), type: 'SYS' };
|
||||||
this.cargoScoop = { enabled: true, c: Components.cargoScoop() };
|
|
||||||
this.bulkheads = { incCost: true, maxClass: 8 };
|
this.bulkheads = { incCost: true, maxClass: 8 };
|
||||||
|
this.availCS = Components.forShip(id);
|
||||||
|
|
||||||
for (var p in properties) { this[p] = properties[p]; } // Copy all base properties from shipData
|
for (var p in properties) { this[p] = properties[p]; } // Copy all base properties from shipData
|
||||||
|
|
||||||
for (var slotType in slots) { // Initialize all slots
|
for (var slotType in slots) { // Initialize all slots
|
||||||
var slotGroup = slots[slotType];
|
var slotGroup = slots[slotType];
|
||||||
var group = this[slotType] = []; // Initialize Slot group (Common, Hardpoints, Internal)
|
var group = this[slotType] = []; // Initialize Slot group (Standard, Hardpoints, Internal)
|
||||||
for(var i = 0; i < slotGroup.length; i++){
|
for (var i = 0; i < slotGroup.length; i++) {
|
||||||
group.push({id: null, c: null, enabled: true, incCost: true, maxClass: slotGroup[i]});
|
if (typeof slotGroup[i] == 'object') {
|
||||||
}
|
group.push({ id: null, c: null, incCost: true, maxClass: slotGroup[i].class, eligible: slotGroup[i].eligible });
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Builds/Updates the ship instance with the components[comps] passed in.
|
|
||||||
* @param {object} comps Collection of components used to build the ship
|
|
||||||
*/
|
|
||||||
Ship.prototype.buildWith = function(comps) {
|
|
||||||
var internal = this.internal;
|
|
||||||
var common = this.common;
|
|
||||||
var hps = this.hardpoints;
|
|
||||||
var i,l;
|
|
||||||
|
|
||||||
this.bulkheads.id = comps.bulkheads || 0;
|
|
||||||
this.bulkheads.c = Components.bulkheads(this.id, this.bulkheads.id);
|
|
||||||
|
|
||||||
for(i = 0, l = comps.common.length; i < l; i++) {
|
|
||||||
common[i].id = comps.common[i];
|
|
||||||
common[i].c = Components.common(i, comps.common[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
for(i = 0, l = comps.hardpoints.length; i < l; i++) {
|
|
||||||
if (comps.hardpoints[i] !== 0) {
|
|
||||||
hps[i].id = comps.hardpoints[i];
|
|
||||||
hps[i].c = Components.hardpoints(comps.hardpoints[i]);
|
|
||||||
} else {
|
} else {
|
||||||
hps[i].c = hps[i].id = null;
|
group.push({ id: null, c: null, incCost: true, maxClass: slotGroup[i] });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// Make a Ship 'slot'/item similar to other slots
|
||||||
|
this.c = { incCost: true, type: 'SHIP', discountedCost: this.hullCost, c: { name: this.name, cost: this.hullCost } };
|
||||||
|
|
||||||
|
this.costList = _.union(this.internal, this.standard, this.hardpoints);
|
||||||
|
this.costList.push(this.bulkheads); // Add The bulkheads
|
||||||
|
this.costList.unshift(this.c); // Add the ship itself to the list
|
||||||
|
|
||||||
|
this.powerList = _.union(this.internal, this.hardpoints);
|
||||||
|
this.powerList.unshift(this.cargoHatch);
|
||||||
|
this.powerList.unshift(this.standard[1]); // Add Thrusters
|
||||||
|
this.powerList.unshift(this.standard[5]); // Add Sensors
|
||||||
|
this.powerList.unshift(this.standard[4]); // Add Power Distributor
|
||||||
|
this.powerList.unshift(this.standard[3]); // Add Life Support
|
||||||
|
this.powerList.unshift(this.standard[2]); // Add FSD
|
||||||
|
this.powerList.unshift(this.standard[0]); // Add Power Plant
|
||||||
|
|
||||||
|
this.shipCostMultiplier = 1;
|
||||||
|
this.componentCostMultiplier = 1;
|
||||||
|
|
||||||
|
this.priorityBands = [
|
||||||
|
{ deployed: 0, retracted: 0, retOnly: 0 },
|
||||||
|
{ deployed: 0, retracted: 0, retOnly: 0 },
|
||||||
|
{ deployed: 0, retracted: 0, retOnly: 0 },
|
||||||
|
{ deployed: 0, retracted: 0, retOnly: 0 },
|
||||||
|
{ deployed: 0, retracted: 0, retOnly: 0 }
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
for(i = 0, l = comps.internal.length; i < l; i++) {
|
//*********//
|
||||||
if (comps.internal[i] !== 0) {
|
// GETTERS //
|
||||||
internal[i].id = comps.internal[i];
|
//*********//
|
||||||
internal[i].c = Components.internal(comps.internal[i]);
|
|
||||||
} else {
|
Ship.prototype.getAvailableComponents = function() {
|
||||||
internal[i].id = internal[i].c = null;
|
return this.availCS;
|
||||||
}
|
|
||||||
}
|
|
||||||
this.updateTotals();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
Ship.prototype.getSlotStatus = function(slot, deployed) {
|
||||||
* Updates the ship totals based on the components for every slot.
|
if (!slot.c) { // Empty Slot
|
||||||
*/
|
return 0; // No Status (Not possible to be active in this state)
|
||||||
Ship.prototype.updateTotals = function() {
|
} else if (!slot.enabled) {
|
||||||
var c = _.reduce(this.common, optsSum, {cost: 0, power: 0, mass: 0});
|
return 1; // Disabled
|
||||||
var i = _.reduce(this.internal, optsSum, {cost: 0, power: 0, mass: 0, capacity: 0, armouradd: 0});
|
} else if (deployed) {
|
||||||
var h = _.reduce(this.hardpoints, hpSum, {cost: 0, active: 0, passive: 0, mass: 0, shieldmul: 1});
|
return this.priorityBands[slot.priority].deployedSum >= this.powerAvailable ? 2 : 3; // Offline : Online
|
||||||
var fsd = this.common[2].c; // Frame Shift Drive;
|
// Active hardpoints have no retracted status
|
||||||
var sgSI = this.findInternalByGroup('sg'); // Find Shield Generator slot Index if any
|
} else if ((slot.cat === 1 && !slot.c.passive)) {
|
||||||
|
return 0; // No Status (Not possible to be active in this state)
|
||||||
this.totalCost = c.cost + i.cost + h.cost + (this.incCost? this.cost : 0) + (this.bulkheads.incCost? this.bulkheads.c.cost : 0);
|
}
|
||||||
this.unladenMass = c.mass + i.mass + h.mass + this.mass + this.bulkheads.c.mass;
|
return this.priorityBands[slot.priority].retractedSum >= this.powerAvailable ? 2 : 3; // Offline : Online
|
||||||
this.powerAvailable = this.common[0].c.pGen; // Power Plant
|
|
||||||
this.fuelCapacity = this.common[6].c.capacity;
|
|
||||||
this.maxMass = this.common[1].c.maxmass; // Thrusters Max Mass
|
|
||||||
this.cargoCapacity = i.capacity;
|
|
||||||
this.ladenMass = this.unladenMass + this.cargoCapacity + this.fuelCapacity;
|
|
||||||
this.powerRetracted = c.power + i.power + h.passive + (this.cargoScoop.enabled? this.cargoScoop.c.power : 0);
|
|
||||||
this.powerDeployed = this.powerRetracted + h.active;
|
|
||||||
this.armourAdded = i.armouradd;
|
|
||||||
this.shieldMultiplier = h.shieldmul;
|
|
||||||
this.unladenJumpRange = calcJumpRange(this.unladenMass + fsd.maxfuel, fsd); // Include fuel weight for jump
|
|
||||||
this.ladenJumpRange = calcJumpRange(this.ladenMass, fsd);
|
|
||||||
this.shieldStrength = sgSI != -1? calcShieldStrength(this.mass, this.shields, this.internal[sgSI].c, this.shieldMultiplier) : 0;
|
|
||||||
this.armourTotal = this.armourAdded + this.armour;
|
|
||||||
// TODO: shield recharge rate based pips, shield generator, power distributor
|
|
||||||
// TODO: armor bonus / damage reduction for bulkheads
|
|
||||||
// TODO: Damage / DPS total (for all weapons)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utilify function for summing the components properties
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {object} sum Sum of cost, power, mass, capacity
|
|
||||||
* @param {object} slot Slot object
|
|
||||||
* @return {object} The mutated sum object
|
|
||||||
*/
|
|
||||||
function optsSum(sum, slot) {
|
|
||||||
var c = slot.c;
|
|
||||||
if (c) { // The slot has a component installed
|
|
||||||
sum.cost += (slot.incCost && c.cost)? c.cost : 0;
|
|
||||||
sum.power += (slot.enabled && c.power)? c.power : 0;
|
|
||||||
sum.mass += c.mass || 0;
|
|
||||||
sum.capacity += c.capacity || 0;
|
|
||||||
sum.armouradd += c.armouradd || 0;
|
|
||||||
}
|
|
||||||
return sum;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Utilify function for summing the hardpoint properties
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {object} sum Sum of cost, power, etc
|
|
||||||
* @param {object} slot Slot object
|
|
||||||
* @return {object} The mutated sum object
|
|
||||||
*/
|
|
||||||
function hpSum(sum, slot) {
|
|
||||||
var c = slot.c;
|
|
||||||
if (c) { // The slot has a component installed
|
|
||||||
sum.cost += (slot.incCost && c.cost)? c.cost : 0;
|
|
||||||
sum[c.passive? 'passive': 'active'] += slot.enabled? c.power : 0;
|
|
||||||
sum.mass += c.mass || 0;
|
|
||||||
sum.shieldmul += c.shieldmul || 0;
|
|
||||||
}
|
|
||||||
return sum;
|
|
||||||
}
|
|
||||||
|
|
||||||
Ship.prototype.useBulkhead = function(index) {
|
|
||||||
this.bulkheads.id = index;
|
|
||||||
this.bulkheads.c = Components.bulkheads(this.id, index);
|
|
||||||
this.updateTotals(); // Update mass, range, shield strength, armor
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update a slot with a the component if the id is different from the current id for this slot.
|
|
||||||
* Has logic handling components that you may only have 1 of (Shield Generator or Refinery).
|
|
||||||
*
|
|
||||||
* @param {object} slot The component slot
|
|
||||||
* @param {string} id Unique ID for the selected component
|
|
||||||
* @param {object} component Properties for the selected component
|
|
||||||
*/
|
|
||||||
Ship.prototype.use = function(slot, id, component) {
|
|
||||||
if (slot.id != id) { // Selecting a different component
|
|
||||||
var slotIndex = this.internal.indexOf(slot);
|
|
||||||
// Slot is an internal slot, is not being emptied, and the selected component group/type must be of unique
|
|
||||||
if(slotIndex != -1 && component && _.includes(['sg','rf','fs'],component.grp)) {
|
|
||||||
// Find another internal slot that already has this type/group installed
|
|
||||||
var similarSlotIndex = this.findInternalByGroup(component.grp);
|
|
||||||
// If another slot has an installed component with of the same type
|
|
||||||
if (similarSlotIndex != -1 && similarSlotIndex != slotIndex) {
|
|
||||||
// Empty the slot
|
|
||||||
this.internal[similarSlotIndex].id = null;
|
|
||||||
this.internal[similarSlotIndex].c = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Update slot with selected component (or empty)
|
|
||||||
slot.id = id;
|
|
||||||
slot.c = component;
|
|
||||||
this.updateTotals();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Calculate jump range using the installed FSD and the
|
* Calculate jump range using the installed FSD and the
|
||||||
* specified mass which can be more or less than ships actual mass
|
* specified mass which can be more or less than ships actual mass
|
||||||
* @param {number} mass Mass in tons
|
* @param {number} mass Mass in tons
|
||||||
* @param {number} fuel Fuel available in tons
|
* @param {number} fuel Fuel available in tons
|
||||||
* @return {number} Jump range in Light Years
|
* @return {number} Jump range in Light Years
|
||||||
*/
|
*/
|
||||||
Ship.prototype.jumpRangeWithMass = function (mass, fuel) {
|
Ship.prototype.getJumpRangeForMass = function(mass, fuel) {
|
||||||
return calcJumpRange(mass, this.common[2].c, fuel);
|
return calcJumpRange(mass, this.standard[2].c, fuel);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -184,9 +109,491 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
|
|||||||
* @return {number} The index of the slot in ship.internal
|
* @return {number} The index of the slot in ship.internal
|
||||||
*/
|
*/
|
||||||
Ship.prototype.findInternalByGroup = function(group) {
|
Ship.prototype.findInternalByGroup = function(group) {
|
||||||
return _.findIndex(this.internal, function (slot) {
|
var index;
|
||||||
|
if (group == 'sg' || group == 'psg' || group == 'bsg') {
|
||||||
|
index = _.findIndex(this.internal, function(slot) {
|
||||||
|
return slot.c && (slot.c.grp == 'sg' || slot.c.grp == 'psg' || slot.c.grp == 'bsg');
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
index = _.findIndex(this.internal, function(slot) {
|
||||||
return slot.c && slot.c.grp == group;
|
return slot.c && slot.c.grp == group;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (index !== -1) {
|
||||||
|
return this.internal[index];
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
//**********************//
|
||||||
|
// Mutate / Update Ship //
|
||||||
|
//**********************//
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Recalculate all item costs and total based on discounts.
|
||||||
|
* @param {number} shipCostMultiplier Ship cost multiplier discount (e.g. 0.9 === 10% discount)
|
||||||
|
* @param {number} componentCostMultiplier Component cost multiplier discount (e.g. 0.75 === 25% discount)
|
||||||
|
*/
|
||||||
|
Ship.prototype.applyDiscounts = function(shipCostMultiplier, componentCostMultiplier) {
|
||||||
|
var total = 0;
|
||||||
|
var costList = this.costList;
|
||||||
|
|
||||||
|
for (var i = 0, l = costList.length; i < l; i++) {
|
||||||
|
var item = costList[i];
|
||||||
|
if (item.c && item.c.cost) {
|
||||||
|
item.discountedCost = item.c.cost * (item.type == 'SHIP' ? shipCostMultiplier : componentCostMultiplier);
|
||||||
|
if (item.incCost) {
|
||||||
|
total += item.discountedCost;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.shipCostMultiplier = shipCostMultiplier;
|
||||||
|
this.componentCostMultiplier = componentCostMultiplier;
|
||||||
|
this.totalCost = total;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds/Updates the ship instance with the components[comps] passed in.
|
||||||
|
* @param {object} comps Collection of components used to build the ship
|
||||||
|
*/
|
||||||
|
Ship.prototype.buildWith = function(comps, priorities, enabled) {
|
||||||
|
var internal = this.internal,
|
||||||
|
standard = this.standard,
|
||||||
|
hps = this.hardpoints,
|
||||||
|
bands = this.priorityBands,
|
||||||
|
cl = standard.length,
|
||||||
|
i, l;
|
||||||
|
|
||||||
|
// Reset Cumulative stats
|
||||||
|
this.fuelCapacity = 0;
|
||||||
|
this.cargoCapacity = 0;
|
||||||
|
this.ladenMass = 0;
|
||||||
|
this.armourAdded = 0;
|
||||||
|
this.armourMultiplier = 1;
|
||||||
|
this.shieldMultiplier = 1;
|
||||||
|
this.totalCost = this.c.incCost ? this.c.discountedCost : 0;
|
||||||
|
this.unladenMass = this.hullMass;
|
||||||
|
this.totalDps = 0;
|
||||||
|
|
||||||
|
this.bulkheads.c = null;
|
||||||
|
this.useBulkhead(comps && comps.bulkheads ? comps.bulkheads : 0, true);
|
||||||
|
this.cargoHatch.priority = priorities ? priorities[0] * 1 : 0;
|
||||||
|
this.cargoHatch.enabled = enabled ? enabled[0] * 1 : true;
|
||||||
|
|
||||||
|
for (i = 0, l = this.priorityBands.length; i < l; i++) {
|
||||||
|
this.priorityBands[i].deployed = 0;
|
||||||
|
this.priorityBands[i].retracted = 0;
|
||||||
|
this.priorityBands[i].retOnly = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.cargoHatch.enabled) {
|
||||||
|
bands[this.cargoHatch.priority].retracted += this.cargoHatch.c.power;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i = 0; i < cl; i++) {
|
||||||
|
standard[i].cat = 0;
|
||||||
|
standard[i].enabled = enabled ? enabled[i + 1] * 1 : true;
|
||||||
|
standard[i].priority = priorities && priorities[i + 1] ? priorities[i + 1] * 1 : 0;
|
||||||
|
standard[i].type = 'SYS';
|
||||||
|
standard[i].c = standard[i].id = null; // Resetting 'old' component if there was one
|
||||||
|
standard[i].discountedCost = 0;
|
||||||
|
|
||||||
|
if (comps) {
|
||||||
|
this.use(standard[i], comps.standard[i], Components.standard(i, comps.standard[i]), true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
standard[1].type = 'ENG'; // Thrusters
|
||||||
|
standard[2].type = 'ENG'; // FSD
|
||||||
|
cl++; // Increase accounts for Cargo Scoop
|
||||||
|
|
||||||
|
for (i = 0, l = hps.length; i < l; i++) {
|
||||||
|
hps[i].cat = 1;
|
||||||
|
hps[i].enabled = enabled ? enabled[cl + i] * 1 : true;
|
||||||
|
hps[i].priority = priorities && priorities[cl + i] ? priorities[cl + i] * 1 : 0;
|
||||||
|
hps[i].type = hps[i].maxClass ? 'WEP' : 'SYS';
|
||||||
|
hps[i].c = hps[i].id = null; // Resetting 'old' component if there was one
|
||||||
|
hps[i].discountedCost = 0;
|
||||||
|
|
||||||
|
if (comps && comps.hardpoints[i] !== 0) {
|
||||||
|
this.use(hps[i], comps.hardpoints[i], Components.hardpoints(comps.hardpoints[i]), true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cl += hps.length; // Increase accounts for hardpoints
|
||||||
|
|
||||||
|
for (i = 0, l = internal.length; i < l; i++) {
|
||||||
|
internal[i].cat = 2;
|
||||||
|
internal[i].enabled = enabled ? enabled[cl + i] * 1 : true;
|
||||||
|
internal[i].priority = priorities && priorities[cl + i] ? priorities[cl + i] * 1 : 0;
|
||||||
|
internal[i].type = 'SYS';
|
||||||
|
internal[i].id = internal[i].c = null; // Resetting 'old' component if there was one
|
||||||
|
internal[i].discountedCost = 0;
|
||||||
|
|
||||||
|
if (comps && comps.internal[i] !== 0) {
|
||||||
|
this.use(internal[i], comps.internal[i], Components.internal(comps.internal[i]), true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update aggragated stats
|
||||||
|
if (comps) {
|
||||||
|
this.updatePower()
|
||||||
|
.updateJumpStats()
|
||||||
|
.updateShieldStrength()
|
||||||
|
.updateTopSpeed();
|
||||||
|
}
|
||||||
|
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.emptyHardpoints = function() {
|
||||||
|
for (var i = this.hardpoints.length; i--; ) {
|
||||||
|
this.use(this.hardpoints[i], null, null);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.emptyInternal = function() {
|
||||||
|
for (var i = this.internal.length; i--; ) {
|
||||||
|
this.use(this.internal[i], null, null);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.emptyUtility = function() {
|
||||||
|
for (var i = this.hardpoints.length; i--; ) {
|
||||||
|
if (!this.hardpoints[i].maxClass) {
|
||||||
|
this.use(this.hardpoints[i], null, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.emptyWeapons = function() {
|
||||||
|
for (var i = this.hardpoints.length; i--; ) {
|
||||||
|
if (this.hardpoints[i].maxClass) {
|
||||||
|
this.use(this.hardpoints[i], null, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optimize for the lower mass build that can still boost and power the ship
|
||||||
|
* without power management.
|
||||||
|
* @param {object} c Standard Component overrides
|
||||||
|
*/
|
||||||
|
Ship.prototype.optimizeMass = function(c) {
|
||||||
|
return this.emptyHardpoints().emptyInternal().useLightestStandard(c);
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.setCostIncluded = function(item, included) {
|
||||||
|
if (item.incCost != included && item.c) {
|
||||||
|
this.totalCost += included ? item.discountedCost : -item.discountedCost;
|
||||||
|
}
|
||||||
|
item.incCost = included;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.setSlotEnabled = function(slot, enabled) {
|
||||||
|
if (slot.enabled != enabled) { // Enabled state is changing
|
||||||
|
slot.enabled = enabled;
|
||||||
|
if (slot.c) {
|
||||||
|
this.priorityBands[slot.priority][powerUsageType(slot, slot.c)] += enabled ? slot.c.power : -slot.c.power;
|
||||||
|
|
||||||
|
if (slot.c.grp == 'sg' || slot.c.grp == 'psg' || slot.c.grp == 'bsg') {
|
||||||
|
this.updateShieldStrength();
|
||||||
|
} else if (slot.c.grp == 'sb') {
|
||||||
|
this.shieldMultiplier += slot.c.shieldmul * (enabled ? 1 : -1);
|
||||||
|
this.updateShieldStrength();
|
||||||
|
} else if (slot.c.dps) {
|
||||||
|
this.totalDps += slot.c.dps * (enabled ? 1 : -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.updatePower();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Updates the ship's cumulative and aggregated stats based on the component change.
|
||||||
|
*/
|
||||||
|
Ship.prototype.updateStats = function(slot, n, old, preventUpdate) {
|
||||||
|
var powerChange = slot == this.standard[0];
|
||||||
|
|
||||||
|
if (old) { // Old component now being removed
|
||||||
|
switch (old.grp) {
|
||||||
|
case 'ft':
|
||||||
|
this.fuelCapacity -= old.capacity;
|
||||||
|
break;
|
||||||
|
case 'cr':
|
||||||
|
this.cargoCapacity -= old.capacity;
|
||||||
|
break;
|
||||||
|
case 'hr':
|
||||||
|
this.armourAdded -= old.armouradd;
|
||||||
|
break;
|
||||||
|
case 'sb':
|
||||||
|
this.shieldMultiplier -= slot.enabled ? old.shieldmul : 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (slot.incCost && old.cost) {
|
||||||
|
this.totalCost -= old.cost * this.componentCostMultiplier;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (old.power && slot.enabled) {
|
||||||
|
this.priorityBands[slot.priority][powerUsageType(slot, old)] -= old.power;
|
||||||
|
powerChange = true;
|
||||||
|
|
||||||
|
if (old.dps) {
|
||||||
|
this.totalDps -= old.dps;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.unladenMass -= old.mass || 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (n) {
|
||||||
|
switch (n.grp) {
|
||||||
|
case 'ft':
|
||||||
|
this.fuelCapacity += n.capacity;
|
||||||
|
break;
|
||||||
|
case 'cr':
|
||||||
|
this.cargoCapacity += n.capacity;
|
||||||
|
break;
|
||||||
|
case 'hr':
|
||||||
|
this.armourAdded += n.armouradd;
|
||||||
|
break;
|
||||||
|
case 'sb':
|
||||||
|
this.shieldMultiplier += slot.enabled ? n.shieldmul : 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (slot.incCost && n.cost) {
|
||||||
|
this.totalCost += n.cost * this.componentCostMultiplier;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (n.power && slot.enabled) {
|
||||||
|
this.priorityBands[slot.priority][powerUsageType(slot, n)] += n.power;
|
||||||
|
powerChange = true;
|
||||||
|
|
||||||
|
if (n.dps) {
|
||||||
|
this.totalDps += n.dps;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.unladenMass += n.mass || 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.ladenMass = this.unladenMass + this.cargoCapacity + this.fuelCapacity;
|
||||||
|
this.armour = this.armourAdded + Math.round(this.baseArmour * this.armourMultiplier);
|
||||||
|
|
||||||
|
if (!preventUpdate) {
|
||||||
|
if (powerChange) {
|
||||||
|
this.updatePower();
|
||||||
|
}
|
||||||
|
this.updateTopSpeed();
|
||||||
|
this.updateJumpStats();
|
||||||
|
this.updateShieldStrength();
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.updatePower = function() {
|
||||||
|
var bands = this.priorityBands;
|
||||||
|
var prevRetracted = 0, prevDeployed = 0;
|
||||||
|
|
||||||
|
for (var i = 0, l = bands.length; i < l; i++) {
|
||||||
|
var band = bands[i];
|
||||||
|
prevRetracted = band.retractedSum = prevRetracted + band.retracted + band.retOnly;
|
||||||
|
prevDeployed = band.deployedSum = prevDeployed + band.deployed + band.retracted;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.powerAvailable = this.standard[0].c.pGen;
|
||||||
|
this.powerRetracted = prevRetracted;
|
||||||
|
this.powerDeployed = prevDeployed;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.updateTopSpeed = function() {
|
||||||
|
var speeds = calcSpeed(this.unladenMass + this.fuelCapacity, this.speed, this.boost, this.standard[1].c, this.pipSpeed);
|
||||||
|
this.topSpeed = speeds['4 Pips'];
|
||||||
|
this.topBoost = speeds.boost;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.updateShieldStrength = function() {
|
||||||
|
var sgSlot = this.findInternalByGroup('sg'); // Find Shield Generator slot Index if any
|
||||||
|
this.shieldStrength = sgSlot && sgSlot.enabled ? calcShieldStrength(this.hullMass, this.baseShieldStrength, sgSlot.c, this.shieldMultiplier) : 0;
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Jump Range and total range calculations
|
||||||
|
*/
|
||||||
|
Ship.prototype.updateJumpStats = function() {
|
||||||
|
var fsd = this.standard[2].c; // Frame Shift Drive;
|
||||||
|
this.unladenRange = calcJumpRange(this.unladenMass + fsd.maxfuel, fsd, this.fuelCapacity); // Include fuel weight for jump
|
||||||
|
this.fullTankRange = calcJumpRange(this.unladenMass + this.fuelCapacity, fsd, this.fuelCapacity); // Full Tanke
|
||||||
|
this.ladenRange = calcJumpRange(this.ladenMass, fsd, this.fuelCapacity);
|
||||||
|
this.unladenTotalRange = calcTotalRange(this.unladenMass, fsd, this.fuelCapacity);
|
||||||
|
this.ladenTotalRange = calcTotalRange(this.unladenMass + this.cargoCapacity, fsd, this.fuelCapacity);
|
||||||
|
this.maxJumpCount = Math.ceil(this.fuelCapacity / fsd.maxfuel);
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update a slot with a the component if the id is different from the current id for this slot.
|
||||||
|
* Has logic handling components that you may only have 1 of (Shield Generator or Refinery).
|
||||||
|
*
|
||||||
|
* @param {object} slot The component slot
|
||||||
|
* @param {string} id Unique ID for the selected component
|
||||||
|
* @param {object} component Properties for the selected component
|
||||||
|
* @param {boolean} preventUpdate If true, do not update aggregated stats
|
||||||
|
*/
|
||||||
|
Ship.prototype.use = function(slot, id, component, preventUpdate) {
|
||||||
|
if (slot.id != id) { // Selecting a different component
|
||||||
|
// Slot is an internal slot, is not being emptied, and the selected component group/type must be of unique
|
||||||
|
if (slot.cat == 2 && component && _.includes(['bsg', 'psg', 'sg', 'rf', 'fs'], component.grp)) {
|
||||||
|
// Find another internal slot that already has this type/group installed
|
||||||
|
var similarSlot = this.findInternalByGroup(component.grp);
|
||||||
|
// If another slot has an installed component with of the same type
|
||||||
|
if (!preventUpdate && similarSlot && similarSlot !== slot) {
|
||||||
|
this.updateStats(similarSlot, null, similarSlot.c);
|
||||||
|
similarSlot.id = similarSlot.c = null; // Empty the slot
|
||||||
|
similarSlot.discountedCost = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var oldComponent = slot.c;
|
||||||
|
slot.id = id;
|
||||||
|
slot.c = component;
|
||||||
|
slot.discountedCost = (component && component.cost) ? component.cost * this.componentCostMultiplier : 0;
|
||||||
|
this.updateStats(slot, component, oldComponent, preventUpdate);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [useBulkhead description]
|
||||||
|
* @param {[type]} index [description]
|
||||||
|
* @param {[type]} preventUpdate [description]
|
||||||
|
* @return {[type]} [description]
|
||||||
|
*/
|
||||||
|
Ship.prototype.useBulkhead = function(index, preventUpdate) {
|
||||||
|
var oldBulkhead = this.bulkheads.c;
|
||||||
|
this.bulkheads.id = index;
|
||||||
|
this.bulkheads.c = Components.bulkheads(this.id, index);
|
||||||
|
this.bulkheads.discountedCost = this.bulkheads.c.cost * this.componentCostMultiplier;
|
||||||
|
this.armourMultiplier = ArmourMultiplier[index];
|
||||||
|
this.updateStats(this.bulkheads, this.bulkheads.c, oldBulkhead, preventUpdate);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [useStandard description]
|
||||||
|
* @param {[type]} rating [description]
|
||||||
|
* @return {[type]} [description]
|
||||||
|
*/
|
||||||
|
Ship.prototype.useStandard = function(rating) {
|
||||||
|
for (var i = this.standard.length - 1; i--; ) { // All except Fuel Tank
|
||||||
|
var id = this.standard[i].maxClass + rating;
|
||||||
|
this.use(this.standard[i], id, Components.standard(i, id));
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use the lightest standard components unless otherwise specified
|
||||||
|
* @param {object} c Component overrides
|
||||||
|
*/
|
||||||
|
Ship.prototype.useLightestStandard = function(c) {
|
||||||
|
c = c || {};
|
||||||
|
|
||||||
|
var standard = this.standard,
|
||||||
|
pd = c.pd || this.availCS.lightestPowerDist(this.boostEnergy), // Find lightest Power Distributor that can still boost;
|
||||||
|
fsd = c.fsd || standard[2].maxClass + 'A',
|
||||||
|
ls = c.ls || standard[3].maxClass + 'D',
|
||||||
|
s = c.s || standard[5].maxClass + 'D',
|
||||||
|
updated;
|
||||||
|
|
||||||
|
this.useBulkhead(0)
|
||||||
|
.use(standard[2], fsd, Components.standard(2, fsd)) // FSD
|
||||||
|
.use(standard[3], ls, Components.standard(3, ls)) // Life Support
|
||||||
|
.use(standard[5], s, Components.standard(5, s)) // Sensors
|
||||||
|
.use(standard[4], pd, Components.standard(4, pd)); // Power Distributor
|
||||||
|
|
||||||
|
// Thrusters and Powerplant must be determined after all other components are mounted
|
||||||
|
// Loop at least once to determine absolute lightest PD and TH
|
||||||
|
do {
|
||||||
|
updated = false;
|
||||||
|
// Find lightest Thruster that still works for the ship at max mass
|
||||||
|
var th = c.th || this.availCS.lightestThruster(this.ladenMass);
|
||||||
|
if (th != standard[1].id) {
|
||||||
|
this.use(standard[1], th, Components.standard(1, th));
|
||||||
|
updated = true;
|
||||||
|
}
|
||||||
|
// Find lightest Power plant that can power the ship
|
||||||
|
var pp = c.pp || this.availCS.lightestPowerPlant(Math.max(this.powerRetracted, this.powerDeployed), c.ppRating);
|
||||||
|
|
||||||
|
if (pp != standard[0].id) {
|
||||||
|
this.use(standard[0], pp, Components.standard(0, pp));
|
||||||
|
updated = true;
|
||||||
|
}
|
||||||
|
} while (updated);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.useUtility = function(group, rating, clobber) {
|
||||||
|
var component = Components.findHardpoint(group, 0, rating);
|
||||||
|
for (var i = this.hardpoints.length; i--; ) {
|
||||||
|
if ((clobber || !this.hardpoints[i].c) && !this.hardpoints[i].maxClass) {
|
||||||
|
this.use(this.hardpoints[i], component.id, component);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
Ship.prototype.useWeapon = function(group, mount, clobber, missile) {
|
||||||
|
var hps = this.hardpoints;
|
||||||
|
for (var i = hps.length; i--; ) {
|
||||||
|
if (hps[i].maxClass) {
|
||||||
|
var size = hps[i].maxClass, component;
|
||||||
|
do {
|
||||||
|
component = Components.findHardpoint(group, size, null, null, mount, missile);
|
||||||
|
if ((clobber || !hps[i].c) && component) {
|
||||||
|
this.use(hps[i], component.id, component);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} while (!component && (--size > 0));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Will change the priority of the specified slot if the new priority is valid
|
||||||
|
* @param {object} slot The slot to be updated
|
||||||
|
* @param {number} newPriority The new priority to be set
|
||||||
|
* @return {boolean} Returns true if the priority was changed (within range)
|
||||||
|
*/
|
||||||
|
Ship.prototype.changePriority = function(slot, newPriority) {
|
||||||
|
if (newPriority >= 0 && newPriority < this.priorityBands.length) {
|
||||||
|
var oldPriority = slot.priority;
|
||||||
|
slot.priority = newPriority;
|
||||||
|
|
||||||
|
if (slot.enabled) { // Only update power if the slot is enabled
|
||||||
|
var usage = powerUsageType(slot, slot.c);
|
||||||
|
this.priorityBands[oldPriority][usage] -= slot.c.power;
|
||||||
|
this.priorityBands[newPriority][usage] += slot.c.power;
|
||||||
|
this.updatePower();
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
return Ship;
|
return Ship;
|
||||||
|
|||||||
@@ -7,143 +7,170 @@
|
|||||||
* @requires ngLodash
|
* @requires ngLodash
|
||||||
*/
|
*/
|
||||||
angular.module('shipyard', ['ngLodash'])
|
angular.module('shipyard', ['ngLodash'])
|
||||||
// Create 'angularized' references to DB.This will aid testing
|
// Create 'angularized' references to DB. This will aid testing
|
||||||
.constant('ShipsDB', DB.ships)
|
.constant('ShipsDB', DB.ships)
|
||||||
.constant('ComponentsDB', DB.components)
|
.constant('ComponentsDB', DB.components)
|
||||||
.value('commonArray', [
|
.constant('ArmourMultiplier', [
|
||||||
'Power Plant',
|
1, // Lightweight
|
||||||
'Thrusters',
|
1.4, // Reinforced
|
||||||
'Frame Shift Drive',
|
1.945, // Military
|
||||||
'Life Support',
|
1.945, // Mirrored
|
||||||
'Power Distributor',
|
1.945 // Reactive
|
||||||
'Sensors',
|
|
||||||
'Fuel Tank'
|
|
||||||
])
|
])
|
||||||
.value('internalGroupMap', {
|
.constant('SizeMap', ['', 'small', 'medium', 'large', 'capital'])
|
||||||
fs:'Fuel Scoop',
|
// Map to lookup group labels/names for component grp, used for JSON Serialization
|
||||||
sc:'Scanners',
|
.constant('GroupMap', {
|
||||||
am:'Auto Field-Maintenance Unit',
|
// Standard
|
||||||
cr:'Cargo Racks',
|
pp: 'Power Plant',
|
||||||
fi:'FSD Interdictor',
|
t: 'Thrusters',
|
||||||
hb:'Hatch Breaker Limpet Ctrl',
|
fsd: 'Frame Shift Drive',
|
||||||
hr:'Hull Reinforcement Package',
|
ls: 'Life Support',
|
||||||
rf:'Refinery',
|
pd: 'Power Distributor',
|
||||||
sb:'Shield Cell Bank',
|
s: 'Sensors',
|
||||||
sg:'Shield Generator',
|
ft: 'Fuel Tank',
|
||||||
dc:'Docking Computer'
|
|
||||||
|
// Internal
|
||||||
|
fs: 'Fuel Scoop',
|
||||||
|
sc: 'Scanner',
|
||||||
|
am: 'Auto Field-Maintenance Unit',
|
||||||
|
cr: 'Cargo Rack',
|
||||||
|
fi: 'Frame Shift Drive Interdictor',
|
||||||
|
hb: 'Hatch Breaker Limpet Controller',
|
||||||
|
hr: 'Hull Reinforcement Package',
|
||||||
|
rf: 'Refinery',
|
||||||
|
scb: 'Shield Cell Bank',
|
||||||
|
sg: 'Shield Generator',
|
||||||
|
psg: 'Prismatic Shield Generator',
|
||||||
|
bsg: 'Bi-Weave Shield Generator',
|
||||||
|
dc: 'Docking Computer',
|
||||||
|
fx: 'Fuel Transfer Limpet Controller',
|
||||||
|
pc: 'Prospector Limpet Controller',
|
||||||
|
cc: 'Collector Limpet Controller',
|
||||||
|
|
||||||
|
// Hard Points
|
||||||
|
bl: 'Beam Laser',
|
||||||
|
ul: 'Burst Laser',
|
||||||
|
c: 'Cannon',
|
||||||
|
cs: 'Cargo Scanner',
|
||||||
|
cm: 'Countermeasure',
|
||||||
|
fc: 'Fragment Cannon',
|
||||||
|
ws: 'Frame Shift Wake Scanner',
|
||||||
|
kw: 'Kill Warrant Scanner',
|
||||||
|
nl: 'Mine Launcher',
|
||||||
|
ml: 'Mining Laser',
|
||||||
|
mr: 'Missile Rack',
|
||||||
|
pa: 'Plasma Accelerator',
|
||||||
|
mc: 'Multi-cannon',
|
||||||
|
pl: 'Pulse Laser',
|
||||||
|
rg: 'Rail Gun',
|
||||||
|
sb: 'Shield Booster',
|
||||||
|
tp: 'Torpedo Pylon'
|
||||||
})
|
})
|
||||||
.value('hardpointsGroupMap', {
|
.constant('MountMap', {
|
||||||
'bl': "Beam Laser",
|
'F': 'Fixed',
|
||||||
'ul': "Burst Laser",
|
'G': 'Gimballed',
|
||||||
'c': "Cannon",
|
'T': 'Turret',
|
||||||
'cs': "Cargo Scanner",
|
'Fixed': 'F',
|
||||||
'cm': "Countermeasure",
|
'Gimballed': 'G',
|
||||||
'fc': "Fragment Cannon",
|
'Turret': 'T'
|
||||||
'fs': "Frame Shift Wake Scanner",
|
|
||||||
'kw': "Kill Warrant Scanner",
|
|
||||||
'nl': "Mine Launcher",
|
|
||||||
'ml': "Mining Laser",
|
|
||||||
'mr': "Missile Rack",
|
|
||||||
'pa': "Plasma Accelerator",
|
|
||||||
'mc': "Multi-cannon",
|
|
||||||
'pl': "Pulse Laser",
|
|
||||||
'rg': "Rail Gun",
|
|
||||||
'sb': "Shield Booster",
|
|
||||||
'tp': "Torpedo Pylon"
|
|
||||||
})
|
})
|
||||||
.value('shipPurpose', {
|
|
||||||
mp: 'Multi Purpose',
|
|
||||||
fr: 'Freighter',
|
|
||||||
ex: 'Explorer',
|
|
||||||
co: 'Combat',
|
|
||||||
pa: 'Passenger Transport'
|
|
||||||
})
|
|
||||||
.value('shipSize', [
|
|
||||||
'N/A',
|
|
||||||
'Small',
|
|
||||||
'Medium',
|
|
||||||
'Large',
|
|
||||||
'Capital',
|
|
||||||
])
|
|
||||||
.value('hardPointClass', [
|
|
||||||
'Utility',
|
|
||||||
'Small',
|
|
||||||
'Medium',
|
|
||||||
'Large',
|
|
||||||
'Huge'
|
|
||||||
])
|
|
||||||
/**
|
/**
|
||||||
* Array of all Ship properties (facets) organized into groups
|
* Array of all Ship properties (facets) organized into groups
|
||||||
* used for ship comparisons.
|
* used for ship comparisons.
|
||||||
*
|
*
|
||||||
* @type {Array}
|
* @type {Array}
|
||||||
*/
|
*/
|
||||||
.value('ShipFacets', [
|
.constant('ShipFacets', [
|
||||||
{ // 0
|
{ // 0
|
||||||
title: 'Agility',
|
title: 'agility',
|
||||||
props: ['agility'],
|
props: ['agility'],
|
||||||
unit: '',
|
unit: '',
|
||||||
fmt: 'fCrd'
|
fmt: 'fCrd'
|
||||||
},
|
},
|
||||||
{ // 1
|
{ // 1
|
||||||
title: 'Speed',
|
title: 'speed',
|
||||||
props: ['speed', 'boost'],
|
props: ['topSpeed', 'topBoost'],
|
||||||
lbls: ['Thrusters', 'Boost'],
|
lbls: ['thrusters', 'boost'],
|
||||||
unit: 'M/s',
|
unit: 'm/s',
|
||||||
fmt: 'fRound'
|
fmt: 'fCrd'
|
||||||
},
|
},
|
||||||
{ // 2
|
{ // 2
|
||||||
title: 'Armour',
|
title: 'armour',
|
||||||
props: ['armourTotal'],
|
props: ['armour'],
|
||||||
unit: '',
|
unit: '',
|
||||||
fmt: 'fCrd'
|
fmt: 'fCrd'
|
||||||
},
|
},
|
||||||
{ // 3
|
{ // 3
|
||||||
title: 'Shields',
|
title: 'shields',
|
||||||
props: ['shieldStrength'],
|
props: ['shieldStrength'],
|
||||||
unit: 'Mj',
|
unit: 'MJ',
|
||||||
fmt: 'fRound'
|
fmt: 'fRound'
|
||||||
},
|
},
|
||||||
{ // 4
|
{ // 4
|
||||||
title: 'Jump Range',
|
title: 'jump range',
|
||||||
props: ['unladenJumpRange', 'ladenJumpRange'],
|
props: ['unladenRange', 'fullTankRange', 'ladenRange'],
|
||||||
lbls: ['Unladen', 'Laden'],
|
lbls: ['max', 'full tank', 'laden'],
|
||||||
unit: 'LY',
|
unit: 'LY',
|
||||||
fmt: 'fRound'
|
fmt: 'fRound'
|
||||||
},
|
},
|
||||||
{ // 5
|
{ // 5
|
||||||
title: 'Mass',
|
title: 'mass',
|
||||||
props: ['unladenMass', 'ladenMass'],
|
props: ['unladenMass', 'ladenMass'],
|
||||||
lbls: ['Unladen', 'Laden'],
|
lbls: ['unladen', 'laden'],
|
||||||
unit: 'T',
|
unit: 'T',
|
||||||
fmt: 'fRound'
|
fmt: 'fRound'
|
||||||
},
|
},
|
||||||
{ // 6
|
{ // 6
|
||||||
title: 'Cargo',
|
title: 'cargo',
|
||||||
props: ['cargoCapacity'],
|
props: ['cargoCapacity'],
|
||||||
unit: 'T',
|
unit: 'T',
|
||||||
fmt: 'fRound'
|
fmt: 'fRound'
|
||||||
},
|
},
|
||||||
{ // 7
|
{ // 7
|
||||||
title: 'Fuel',
|
title: 'fuel',
|
||||||
props: ['fuelCapacity'],
|
props: ['fuelCapacity'],
|
||||||
unit: 'T',
|
unit: 'T',
|
||||||
fmt: 'fRound'
|
fmt: 'fRound'
|
||||||
},
|
},
|
||||||
{ // 8
|
{ // 8
|
||||||
title: 'Power',
|
title: 'power',
|
||||||
props: ['powerRetracted','powerDeployed','powerAvailable'],
|
props: ['powerRetracted', 'powerDeployed', 'powerAvailable'],
|
||||||
lbls: ['Retracted', 'Deployed', 'Available'],
|
lbls: ['retracted', 'deployed', 'available'],
|
||||||
unit: 'MW',
|
unit: 'MW',
|
||||||
fmt: 'fPwr'
|
fmt: 'fPwr'
|
||||||
},
|
},
|
||||||
{ // 9
|
{ // 9
|
||||||
title: 'Cost',
|
title: 'cost',
|
||||||
props: ['totalCost'],
|
props: ['totalCost'],
|
||||||
unit: 'CR',
|
unit: 'CR',
|
||||||
fmt: 'fCrd'
|
fmt: 'fCrd'
|
||||||
|
},
|
||||||
|
{ // 10
|
||||||
|
title: 'total range',
|
||||||
|
props: ['unladenTotalRange', 'ladenTotalRange'],
|
||||||
|
lbls: ['unladen', 'laden'],
|
||||||
|
unit: 'LY',
|
||||||
|
fmt: 'fRound'
|
||||||
|
},
|
||||||
|
{ // 11
|
||||||
|
title: 'DPS',
|
||||||
|
props: ['totalDps'],
|
||||||
|
lbls: ['DPS'],
|
||||||
|
unit: '',
|
||||||
|
fmt: 'fRound'
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
/**
|
||||||
|
* Set of all available / theoretical discounts
|
||||||
|
*/
|
||||||
|
.constant('Discounts', {
|
||||||
|
'0%': 1,
|
||||||
|
'5%': 0.95,
|
||||||
|
'10%': 0.90,
|
||||||
|
'15%': 0.85,
|
||||||
|
'20%': 0.80,
|
||||||
|
'25%': 0.75
|
||||||
|
})
|
||||||
/**
|
/**
|
||||||
* Calculate the maximum single jump range based on mass and a specific FSD
|
* Calculate the maximum single jump range based on mass and a specific FSD
|
||||||
*
|
*
|
||||||
@@ -153,30 +180,74 @@ angular.module('shipyard', ['ngLodash'])
|
|||||||
* @return {number} Distance in Light Years
|
* @return {number} Distance in Light Years
|
||||||
*/
|
*/
|
||||||
.value('calcJumpRange', function(mass, fsd, fuel) {
|
.value('calcJumpRange', function(mass, fsd, fuel) {
|
||||||
return Math.pow(Math.min(fuel === undefined? fsd.maxfuel : fuel, fsd.maxfuel) / fsd.fuelmul, 1 / fsd.fuelpower ) * fsd.optmass / mass;
|
return Math.pow(Math.min(fuel === undefined ? fsd.maxfuel : fuel, fsd.maxfuel) / fsd.fuelmul, 1 / fsd.fuelpower ) * fsd.optmass / mass;
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* Calculate the total range based on mass and a specific FSD, and all fuel available
|
||||||
|
*
|
||||||
|
* @param {number} mass Mass of a ship: laden, unlanden, partially laden, etc
|
||||||
|
* @param {object} fsd The FDS object/component with maxfuel, fuelmul, fuelpower, optmass
|
||||||
|
* @param {number} fuel The total fuel available
|
||||||
|
* @return {number} Distance in Light Years
|
||||||
|
*/
|
||||||
|
.value('calcTotalRange', function(mass, fsd, fuel) {
|
||||||
|
var fuelRemaining = fuel % fsd.maxfuel; // Fuel left after making N max jumps
|
||||||
|
var jumps = Math.floor(fuel / fsd.maxfuel);
|
||||||
|
mass += fuelRemaining;
|
||||||
|
// Going backwards, start with the last jump using the remaining fuel
|
||||||
|
var totalRange = fuelRemaining > 0 ? Math.pow(fuelRemaining / fsd.fuelmul, 1 / fsd.fuelpower ) * fsd.optmass / mass : 0;
|
||||||
|
// For each max fuel jump, calculate the max jump range based on fuel mass left in the tank
|
||||||
|
for (var j = 0; j < jumps; j++) {
|
||||||
|
mass += fsd.maxfuel;
|
||||||
|
totalRange += Math.pow(fsd.maxfuel / fsd.fuelmul, 1 / fsd.fuelpower ) * fsd.optmass / mass;
|
||||||
|
}
|
||||||
|
return totalRange;
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
* Calculate the a ships shield strength based on mass, shield generator and shield boosters used.
|
* Calculate the a ships shield strength based on mass, shield generator and shield boosters used.
|
||||||
*
|
*
|
||||||
* @private
|
|
||||||
* @param {number} mass Current mass of the ship
|
* @param {number} mass Current mass of the ship
|
||||||
* @param {number} shields Base Shield strength MJ for ship
|
* @param {number} shields Base Shield strength MJ for ship
|
||||||
* @param {object} sg The shield generator used
|
* @param {object} sg The shield generator used
|
||||||
* @param {number} multiplier Shield multiplier for ship (1 + shield boosters if any)
|
* @param {number} multiplier Shield multiplier for ship (1 + shield boosters if any)
|
||||||
* @return {number} Approximate shield strengh in MJ
|
* @return {number} Approximate shield strengh in MJ
|
||||||
*/
|
*/
|
||||||
.value('calcShieldStrength', function (mass, shields, sg, multiplier) {
|
.value('calcShieldStrength', function(mass, shields, sg, multiplier) {
|
||||||
if (!sg) {
|
var opt;
|
||||||
return 0;
|
if (mass < sg.minmass) {
|
||||||
}
|
|
||||||
if (mass <= sg.minmass) {
|
|
||||||
return shields * multiplier * sg.minmul;
|
return shields * multiplier * sg.minmul;
|
||||||
}
|
}
|
||||||
if (mass < sg.optmass) {
|
if (mass > sg.maxmass) {
|
||||||
return shields * multiplier * (sg.minmul + (mass - sg.minmass) / (sg.optmass - sg.minmass) * (sg.optmul - sg.minmul));
|
|
||||||
}
|
|
||||||
if (mass < sg.maxmass) {
|
|
||||||
return shields * multiplier * (sg.optmul + (mass - sg.optmass) / (sg.maxmass - sg.optmass) * (sg.maxmul - sg.optmul));
|
|
||||||
}
|
|
||||||
return shields * multiplier * sg.maxmul;
|
return shields * multiplier * sg.maxmul;
|
||||||
|
}
|
||||||
|
if (mass < sg.optmass) {
|
||||||
|
opt = (sg.optmass - mass) / (sg.optmass - sg.minmass);
|
||||||
|
opt = 1 - Math.pow(1 - opt, 0.87);
|
||||||
|
return shields * multiplier * ((opt * sg.minmul) + ((1 - opt) * sg.optmul));
|
||||||
|
} else {
|
||||||
|
opt = (sg.optmass - mass) / (sg.maxmass - sg.optmass);
|
||||||
|
opt = -1 + Math.pow(1 + opt, 2.425);
|
||||||
|
return shields * multiplier * ( (-1 * opt * sg.maxmul) + ((1 + opt) * sg.optmul) );
|
||||||
|
}
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* Calculate the a ships speed based on mass, and thrusters.
|
||||||
|
*
|
||||||
|
* @param {number} mass Current mass of the ship
|
||||||
|
* @param {number} baseSpeed Base speed m/s for ship
|
||||||
|
* @param {number} baseBoost Base boost speed m/s for ship
|
||||||
|
* @param {object} thrusters The Thrusters used
|
||||||
|
* @param {number} pipSpeed Speed pip multiplier
|
||||||
|
* @return {object} Approximate speed by pips
|
||||||
|
*/
|
||||||
|
.value('calcSpeed', function(mass, baseSpeed, baseBoost, thrusters, pipSpeed) {
|
||||||
|
var multiplier = mass > thrusters.maxmass ? 0 : ((1 - thrusters.M) + (thrusters.M * Math.pow(3 - (2 * Math.max(0.5, mass / thrusters.optmass)), thrusters.P)));
|
||||||
|
var speed = baseSpeed * multiplier;
|
||||||
|
|
||||||
|
return {
|
||||||
|
'0 Pips': speed * (1 - (pipSpeed * 4)),
|
||||||
|
'2 Pips': speed * (1 - (pipSpeed * 2)),
|
||||||
|
'4 Pips': speed,
|
||||||
|
'boost': baseBoost * multiplier
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,11 +1,17 @@
|
|||||||
angular.module('shipyard').service('Components', ['lodash', 'ComponentsDB', 'ShipsDB', 'ComponentSet', function (_, C, Ships, ComponentSet) {
|
angular.module('shipyard').service('Components', ['lodash', 'ComponentsDB', 'ShipsDB', 'ComponentSet', 'GroupMap', function(_, C, Ships, ComponentSet, GroupMap) {
|
||||||
|
|
||||||
this.cargoScoop = function() {
|
var GrpNameToCodeMap = {};
|
||||||
return { name: 'Cargo Hatch', class: 1, rating: 'H', power: 0.6};
|
|
||||||
|
for (var grp in GroupMap) {
|
||||||
|
GrpNameToCodeMap[GroupMap[grp]] = grp;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.cargoHatch = function() {
|
||||||
|
return { name: 'Cargo Hatch', class: 1, rating: 'H', power: 0.6 };
|
||||||
};
|
};
|
||||||
|
|
||||||
this.common = function (typeIndex, componentId) {
|
this.standard = function(typeIndex, componentId) {
|
||||||
return C.common[typeIndex][componentId];
|
return C.standard[typeIndex][componentId];
|
||||||
};
|
};
|
||||||
|
|
||||||
this.hardpoints = function(id) {
|
this.hardpoints = function(id) {
|
||||||
@@ -32,13 +38,144 @@ angular.module('shipyard').service('Components', ['lodash', 'ComponentsDB', 'Shi
|
|||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finds an internal Component based on Class, Rating, Group and/or name.
|
||||||
|
* At least one ofGroup name or unique component name must be provided
|
||||||
|
*
|
||||||
|
* @param {string} groupName [Optional] Full name or abbreviated name for component group
|
||||||
|
* @param {integer} clss Component Class
|
||||||
|
* @param {string} rating Component Rating
|
||||||
|
* @param {string} name [Optional] Long/unique name for component -e.g. 'Advanced Discover Scanner'
|
||||||
|
* @return {String} The id of the component if found, null if not found
|
||||||
|
*/
|
||||||
|
this.findInternal = function(groupName, clss, rating, name) {
|
||||||
|
var groups = {};
|
||||||
|
|
||||||
|
if (groupName) {
|
||||||
|
if (C.internal[groupName]) {
|
||||||
|
groups[groupName] = C.internal[groupName];
|
||||||
|
} else {
|
||||||
|
var grpCode = GrpNameToCodeMap[groupName];
|
||||||
|
if (grpCode && C.internal[grpCode]) {
|
||||||
|
groups[grpCode] = C.internal[grpCode];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (name) {
|
||||||
|
groups = C.internal;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var g in groups) {
|
||||||
|
var group = groups[g];
|
||||||
|
for (var i = 0, l = group.length; i < l; i++) {
|
||||||
|
if (group[i].class == clss && group[i].rating == rating && ((!name && !group[i].name) || group[i].name == name)) {
|
||||||
|
return group[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finds an internal Component ID based on Class, Rating, Group and/or name.
|
||||||
|
* At least one ofGroup name or unique component name must be provided
|
||||||
|
*
|
||||||
|
* @param {string} groupName [Optional] Full name or abbreviated name for component group
|
||||||
|
* @param {integer} clss Component Class
|
||||||
|
* @param {string} rating Component Rating
|
||||||
|
* @param {string} name [Optional] Long/unique name for component -e.g. 'Advanced Discover Scanner'
|
||||||
|
* @return {String} The id of the component if found, null if not found
|
||||||
|
*/
|
||||||
|
this.findInternalId = function(groupName, clss, rating, name) {
|
||||||
|
var i = this.findInternal(groupName, clss, rating, name);
|
||||||
|
return i ? i.id : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finds a hardpoint Component based on Class, Rating, Group and/or name.
|
||||||
|
* At least one ofGroup name or unique component name must be provided
|
||||||
|
*
|
||||||
|
* @param {string} groupName [Optional] Full name or abbreviated name for component group
|
||||||
|
* @param {integer} clss Component Class
|
||||||
|
* @param {string} rating [Optional] Component Rating
|
||||||
|
* @param {string} name [Optional] Long/unique name for component -e.g. 'Heat Sink Launcher'
|
||||||
|
* @param {string} mode Mount mode/type - [F]ixed, [G]imballed, [T]urret
|
||||||
|
* @param {string} missile [Optional] Missile type - [D]umbfire, [S]eeker
|
||||||
|
* @return {String} The id of the component if found, null if not found
|
||||||
|
*/
|
||||||
|
this.findHardpoint = function(groupName, clss, rating, name, mode, missile) {
|
||||||
|
var groups = {};
|
||||||
|
|
||||||
|
if (groupName) {
|
||||||
|
if (C.hardpoints[groupName]) {
|
||||||
|
groups[groupName] = C.hardpoints[groupName];
|
||||||
|
} else {
|
||||||
|
var grpCode = GrpNameToCodeMap[groupName];
|
||||||
|
if (grpCode && C.hardpoints[grpCode]) {
|
||||||
|
groups[grpCode] = C.hardpoints[grpCode];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (name) {
|
||||||
|
groups = C.hardpoints;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var g in groups) {
|
||||||
|
var group = groups[g];
|
||||||
|
for (var i = 0, l = group.length; i < l; i++) {
|
||||||
|
if (group[i].class == clss && (!rating || group[i].rating == rating) && group[i].mode == mode
|
||||||
|
&& ((!name && !group[i].name) || group[i].name == name)
|
||||||
|
&& ((!missile && !group[i].missile) || group[i].missile == missile)
|
||||||
|
) {
|
||||||
|
return group[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finds a hardpoint Component ID based on Class, Rating, Group and/or name.
|
||||||
|
* At least one of Group name or unique component name must be provided
|
||||||
|
*
|
||||||
|
* @param {string} groupName [Optional] Full name or abbreviated name for component group
|
||||||
|
* @param {integer} clss Component Class
|
||||||
|
* @param {string} rating Component Rating
|
||||||
|
* @param {string} name [Optional] Long/unique name for component -e.g. 'Heat Sink Launcher'
|
||||||
|
* @param {string} mode Mount mode/type - [F]ixed, [G]imballed, [T]urret
|
||||||
|
* @param {string} missile [Optional] Missile type - [D]umbfire, [S]eeker
|
||||||
|
* @return {String} The id of the component if found, null if not found
|
||||||
|
*/
|
||||||
|
this.findHardpointId = function(groupName, clss, rating, name, mode, missile) {
|
||||||
|
var h = this.findHardpoint(groupName, clss, rating, name, mode, missile);
|
||||||
|
return h ? h.id : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Looks up the bulkhead component for a specific ship and bulkhead
|
||||||
|
* @param {string} shipId Unique ship Id/Key
|
||||||
|
* @param {number} bulkheadsId Id/Index for the specified bulkhead
|
||||||
|
* @return {object} The bulkhead component object
|
||||||
|
*/
|
||||||
this.bulkheads = function(shipId, bulkheadsId) {
|
this.bulkheads = function(shipId, bulkheadsId) {
|
||||||
return C.bulkheads[shipId][bulkheadsId];
|
return C.bulkheads[shipId][bulkheadsId];
|
||||||
};
|
};
|
||||||
|
|
||||||
this.forShip = function (shipId) {
|
this.bulkheadIndex = function(bulkheadName) {
|
||||||
|
return ['Lightweight Alloy', 'Reinforced Alloy', 'Military Grade Composite', 'Mirrored Surface Composite', 'Reactive Surface Composite'].indexOf(bulkheadName);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new ComponentSet that contains all available components
|
||||||
|
* that the specified ship is eligible to use.
|
||||||
|
*
|
||||||
|
* @param {string} shipId Unique ship Id/Key
|
||||||
|
* @return {ComponentSet} The set of components the ship can install
|
||||||
|
*/
|
||||||
|
this.forShip = function(shipId) {
|
||||||
var ship = Ships[shipId];
|
var ship = Ships[shipId];
|
||||||
return new ComponentSet(C, ship.properties.mass, ship.slots.common, ship.slots.internal[0], ship.slots.hardpoints[0]);
|
var maxInternal = isNaN(ship.slots.internal[0]) ? ship.slots.internal[0].class : ship.slots.internal[0];
|
||||||
|
return new ComponentSet(C, ship.minMassFilter || ship.properties.hullMass + 5, ship.slots.standard, maxInternal, ship.slots.hardpoints[0]);
|
||||||
};
|
};
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
@import 'colors';
|
@import 'colors';
|
||||||
@import 'fonts';
|
@import 'fonts';
|
||||||
|
@import 'responsive';
|
||||||
@import 'utilities';
|
@import 'utilities';
|
||||||
@import 'icons';
|
@import 'icons';
|
||||||
@import 'background-images';
|
@import 'background-images';
|
||||||
@@ -18,10 +19,15 @@
|
|||||||
@import 'buttons';
|
@import 'buttons';
|
||||||
@import 'error';
|
@import 'error';
|
||||||
@import 'sortable';
|
@import 'sortable';
|
||||||
|
@import 'loader';
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -30,6 +36,9 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: @fStandard;
|
font-family: @fStandard;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
overflow-x: hidden;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
div, a, li {
|
div, a, li {
|
||||||
@@ -38,7 +47,9 @@ div, a, li {
|
|||||||
|
|
||||||
#main {
|
#main {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0.5em 0.25em;
|
padding: 0.5em 0.5em;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
min-height: 90%;
|
min-height: 90%;
|
||||||
clear: both;
|
clear: both;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -64,10 +75,31 @@ div, a, li {
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ri {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.le {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
.cen {
|
.cen {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cap {
|
||||||
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upp {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-x {
|
||||||
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-family: @fTitle;
|
font-family: @fTitle;
|
||||||
color: @primary;
|
color: @primary;
|
||||||
@@ -76,13 +108,15 @@ h1 {
|
|||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-family: @fTitle;
|
font-family: @fStandard;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-family: @fTitle;
|
font-family: @fStandard;
|
||||||
|
font-weight: normal;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
margin: 0.2em 0;
|
margin: 0.2em 0;
|
||||||
color: @primary;
|
color: @primary;
|
||||||
@@ -91,6 +125,7 @@ h3 {
|
|||||||
u { // Unit (Mj, Km, etc)
|
u { // Unit (Mj, Km, etc)
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a, a:visited {
|
a, a:visited {
|
||||||
|
|||||||
@@ -5,8 +5,10 @@ button {
|
|||||||
fill: @primary;
|
fill: @primary;
|
||||||
}
|
}
|
||||||
border: none;
|
border: none;
|
||||||
|
text-transform: capitalize;
|
||||||
font-family: @fStandard;
|
font-family: @fStandard;
|
||||||
|
font-size: 0.75em;
|
||||||
|
vertical-align: middle;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: none;
|
background: none;
|
||||||
@@ -28,3 +30,11 @@ button {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-lbl {
|
||||||
|
margin-left: 0.5em;
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
display: none;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
padding: 0.25em 0.5em;
|
padding: 0.25em 0.5em;
|
||||||
background: @primary-disabled;
|
background: @primary-disabled;
|
||||||
|
text-transform: capitalize;
|
||||||
color: @primary-bg;
|
color: @primary-bg;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,19 @@
|
|||||||
|
|
||||||
.chart {
|
.chart {
|
||||||
.user-select-none();
|
.user-select-none();
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
overflow: hidden;
|
||||||
|
width: 33%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.tablet({
|
||||||
|
width: 50%;
|
||||||
|
});
|
||||||
|
|
||||||
|
.largePhone({
|
||||||
|
width: 100%;
|
||||||
|
});
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -11,6 +21,7 @@
|
|||||||
&[ng-click] {
|
&[ng-click] {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28,12 +39,14 @@ svg {
|
|||||||
fill: @primary-disabled;
|
fill: @primary-disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.y {
|
|
||||||
text tspan:first-child {
|
|
||||||
fill: @primary;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.label {
|
||||||
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric {
|
||||||
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.marker {
|
.marker {
|
||||||
@@ -41,7 +54,7 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
font-size: 0.9em;
|
font-size: 0.75em;
|
||||||
fill: @fg;
|
fill: @fg;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +62,6 @@ svg {
|
|||||||
fill: @bgBlack;
|
fill: @bgBlack;
|
||||||
stroke: @secondary;
|
stroke: @secondary;
|
||||||
stroke-width: 1px;
|
stroke-width: 1px;
|
||||||
|
font-size: 0.75em
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
// Foreground colors
|
// Foreground colors
|
||||||
@fg: #CCC;
|
@fg: #CCC;
|
||||||
|
@muted: #999;
|
||||||
@primary: #FF8C0D; // Light Orange
|
@primary: #FF8C0D; // Light Orange
|
||||||
@secondary: #1FB0FF; // Light blue
|
@secondary: #1FB0FF; // Light blue
|
||||||
@warning: #FF3B00; // Dark Orange
|
@warning: #FF3B00; // Dark Orange
|
||||||
@@ -36,11 +37,26 @@
|
|||||||
fill: @primary;
|
fill: @primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.primary-bg {
|
||||||
|
color: @primary-bg;
|
||||||
|
fill: @primary-bg;
|
||||||
|
}
|
||||||
|
|
||||||
.primary-disabled {
|
.primary-disabled {
|
||||||
color: @primary-disabled;
|
color: @primary-disabled;
|
||||||
fill: @primary-disabled;
|
fill: @primary-disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.secondary {
|
||||||
|
color: @secondary;
|
||||||
|
fill: @secondary;
|
||||||
|
}
|
||||||
|
|
||||||
|
.secondary-disabled {
|
||||||
|
color: @secondary-disabled;
|
||||||
|
fill: @secondary-disabled;
|
||||||
|
}
|
||||||
|
|
||||||
.warning {
|
.warning {
|
||||||
color: @warning;
|
color: @warning;
|
||||||
fill: @warning;
|
fill: @warning;
|
||||||
@@ -50,3 +66,7 @@
|
|||||||
color: @warning-disabled;
|
color: @warning-disabled;
|
||||||
fill: @warning-disabled;
|
fill: @warning-disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bg-warning-disabled {
|
||||||
|
background-color: @warning-disabled;
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,24 +3,43 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 0.8em;
|
||||||
|
|
||||||
td {
|
td {
|
||||||
border: 1px solid @primary-disabled;
|
border: 1px solid @primary-disabled;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
font-size: 1.1em;
|
||||||
margin: 0 1em;
|
margin: 0 1em;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tablet({
|
||||||
|
font-size: 0.9em;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
background: none;
|
||||||
|
line-height: 1.3em;
|
||||||
|
width: 20em;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
display: inline-block;
|
||||||
box-sizing: border-box;
|
padding: 0.3em;
|
||||||
|
font-size: 1em;
|
||||||
|
vertical-align: middle;
|
||||||
border: none;
|
border: none;
|
||||||
padding-left: 1em;
|
border-right: 1px solid @primary-disabled;
|
||||||
|
|
||||||
|
.largePhone({
|
||||||
|
width: 100%;
|
||||||
|
height: 2em;
|
||||||
|
border-right: none;
|
||||||
|
border-bottom: 1px solid @primary-disabled;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
.head {
|
.head {
|
||||||
@@ -39,10 +58,6 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
.tablet({
|
|
||||||
font-size: 0.8em;
|
|
||||||
});
|
|
||||||
|
|
||||||
.as-sortable-placeholder {
|
.as-sortable-placeholder {
|
||||||
background-color: @primary-bg;
|
background-color: @primary-bg;
|
||||||
}
|
}
|
||||||
@@ -55,7 +70,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: @primary-bg;
|
background-color: @primary-bg;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 0.5em;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
color: @disabled;
|
color: @disabled;
|
||||||
@@ -80,9 +95,7 @@
|
|||||||
#build-select {
|
#build-select {
|
||||||
clear: both;
|
clear: both;
|
||||||
margin: 1em 0 0;
|
margin: 1em 0 0;
|
||||||
height: 10em;
|
overflow-y:auto;
|
||||||
white-space: nowrap;
|
|
||||||
overflow:hidden;
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -91,21 +104,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
|
box-sizing: border-box;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 20em;
|
width: 40%;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
width: 100%;
|
||||||
|
});
|
||||||
|
|
||||||
thead {
|
thead {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody {
|
tbody {
|
||||||
display: block;
|
display: block;
|
||||||
overflow-x: hidden;
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
|
height: 8em;
|
||||||
max-height: 8em;
|
max-height: 8em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -117,7 +134,14 @@
|
|||||||
|
|
||||||
#comp-tbl {
|
#comp-tbl {
|
||||||
margin: 1em auto;
|
margin: 1em auto;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 0.8em;
|
||||||
|
|
||||||
|
td {
|
||||||
|
padding: 0 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.tablet({
|
.tablet({
|
||||||
font-size: 0.85em;
|
font-size: 0.7em;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,16 +11,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'eurocaps';
|
font-family: 'Eurostile';
|
||||||
src: url('fonts/eurocaps-webfont.eot');
|
src: url('fonts/eurostile.eot');
|
||||||
src: url('fonts/eurocaps-webfont.eot?#iefix') format('embedded-opentype'),
|
src: url('fonts/eurostile.eot?#iefix') format('embedded-opentype'),
|
||||||
url('fonts/eurocaps-webfont.woff2') format('woff2'),
|
url('fonts/eurostile.woff2') format('woff2'),
|
||||||
url('fonts/eurocaps-webfont.woff') format('woff'),
|
url('fonts/eurostile.woff') format('woff'),
|
||||||
url('fonts/eurocaps-webfont.ttf') format('truetype'),
|
url('fonts/eurostile.ttf') format('truetype'),
|
||||||
url('fonts/eurocaps-webfont.svg#euro_capsregular') format('svg');
|
url('fonts/eurostile.svg#euro_capsregular') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@fStandard: 'eurocaps', Helvetica, sans-serif;
|
@fStandard: 'Eurostile', Helvetica, sans-serif;
|
||||||
@fTitle: 'Orbitron-Regular', Arial, sans-serif;
|
@fTitle: 'Orbitron-Regular', Arial, sans-serif;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
header {
|
header {
|
||||||
background-color: @bg;
|
background-color: @bg;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 1em;
|
padding: 0 0 0 1em;
|
||||||
height: 3em;
|
height: 3em;
|
||||||
line-height: 3em;
|
line-height: 3em;
|
||||||
font-family: @fTitle;
|
font-family: @fTitle;
|
||||||
@@ -37,6 +37,11 @@ header {
|
|||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
position: static;
|
||||||
|
position: initial;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-header {
|
.menu-header {
|
||||||
@@ -45,9 +50,9 @@ header {
|
|||||||
padding : 0 1em;
|
padding : 0 1em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: @warning;
|
color: @warning;
|
||||||
|
text-transform: capitalize;
|
||||||
// Less than 600px screen width: hide text
|
// Less than 600px screen width: hide text
|
||||||
|
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
color: @warning-disabled;
|
color: @warning-disabled;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
@@ -56,6 +61,14 @@ header {
|
|||||||
&.selected {
|
&.selected {
|
||||||
background-color: @bgBlack;
|
background-color: @bgBlack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-item-label {
|
||||||
|
margin-left: 1em;
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
display: none;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-list {
|
.menu-list {
|
||||||
@@ -66,29 +79,81 @@ header {
|
|||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
background-color: @bgBlack;
|
background-color: @bgBlack;
|
||||||
font-size: 0.8em;
|
font-size: 0.9em;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
max-height: 400px;
|
max-height: 500px;
|
||||||
|
|
||||||
&.dbl {
|
&::-webkit-scrollbar {
|
||||||
|
width: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background-color: @warning-disabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
max-height: 400px;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
border-bottom: 1px solid @bg;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
.tablet({
|
||||||
|
li, a {
|
||||||
|
padding: 0.3em 0;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
.dbl {
|
||||||
-webkit-column-count: 2; /* Chrome, Safari, Opera */
|
-webkit-column-count: 2; /* Chrome, Safari, Opera */
|
||||||
-moz-column-count: 2; /* Firefox */
|
-moz-column-count: 2; /* Firefox */
|
||||||
column-count: 2;
|
column-count: 2;
|
||||||
ul {
|
ul {
|
||||||
width: 10em;
|
min-width: 10em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
-webkit-column-count: 3; /* Chrome, Safari, Opera */
|
||||||
|
-moz-column-count: 3; /* Firefox */
|
||||||
|
column-count: 3;
|
||||||
|
|
||||||
|
ul {
|
||||||
|
min-width: 20em;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
.largePhone({
|
||||||
|
-webkit-column-count: 2; /* Chrome, Safari, Opera */
|
||||||
|
-moz-column-count: 2; /* Firefox */
|
||||||
|
column-count: 2;
|
||||||
|
});
|
||||||
|
|
||||||
|
.smallPhone({
|
||||||
|
-webkit-column-count: 1; /* Chrome, Safari, Opera */
|
||||||
|
-moz-column-count: 1; /* Firefox */
|
||||||
|
column-count: 1;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
margin: 0 0 0.5em;
|
margin: 0 0 0.5em;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
line-height: 1.3em;
|
line-height: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
|
white-space: normal;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
line-height: 1.1em;
|
line-height: 1.1em;
|
||||||
@@ -99,10 +164,6 @@ header {
|
|||||||
color: @warning;
|
color: @warning;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&.name {
|
|
||||||
font-family: Helvetica, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:visited {
|
&:visited {
|
||||||
color: @warning;
|
color: @warning;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +1,5 @@
|
|||||||
.list {
|
|
||||||
margin: 1em 0;
|
|
||||||
cursor: default;
|
|
||||||
font-size: 0.8em;
|
|
||||||
min-width: 25%;
|
|
||||||
text-align: left;
|
|
||||||
.user-select-none();
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
.header {
|
.items {
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 0.4em;
|
|
||||||
font-family: @fTitle;
|
|
||||||
color: @bgBlack;
|
|
||||||
background-color: @primary-disabled;
|
|
||||||
text-transform: uppercase;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
|
||||||
width: 100%;
|
|
||||||
text-align: right;
|
|
||||||
td {
|
|
||||||
padding-right: 0.5em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.items {
|
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
clear: both;
|
clear: both;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -60,6 +34,4 @@
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
38
app/less/loader.less
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
@keyframes outer {
|
||||||
|
0% { opacity: 0.3; }
|
||||||
|
20% { opacity: 1; }
|
||||||
|
100% { opacity: 0.3; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes inner {
|
||||||
|
0% { opacity: 0.4; }
|
||||||
|
20% { opacity: 1; }
|
||||||
|
100% { opacity: 0.4; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@animationTime: 1000ms;
|
||||||
|
@outerTriangles: 19;
|
||||||
|
@animationDelay: @animationTime / @outerTriangles;
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
|
||||||
|
path {
|
||||||
|
stroke: #000;
|
||||||
|
stroke-width: 0;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.l1 { animation: outer @animationTime linear infinite; }
|
||||||
|
.l2 { animation: inner @animationTime linear infinite; }
|
||||||
|
|
||||||
|
.mixin-loop (@i) when (@i > 0) {
|
||||||
|
.d@{i} {
|
||||||
|
opacity: @i / @outerTriangles;
|
||||||
|
animation-delay: @i * @animationDelay;
|
||||||
|
}
|
||||||
|
.mixin-loop(@i - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.mixin-loop(@outerTriangles);
|
||||||
|
|
||||||
@@ -16,10 +16,23 @@
|
|||||||
left:50%; top:50%;
|
left:50%; top:50%;
|
||||||
transform:translate(-50%,-50%);
|
transform:translate(-50%,-50%);
|
||||||
-webkit-transform:translate(-50%,-50%);
|
-webkit-transform:translate(-50%,-50%);
|
||||||
max-width: 75%;
|
width: 800px;
|
||||||
padding: 3em;
|
max-height: 100%;
|
||||||
|
padding: 2em;
|
||||||
background-color: @bgBlack;
|
background-color: @bgBlack;
|
||||||
|
box-sizing: border-box;
|
||||||
border: 1px solid @primary;
|
border: 1px solid @primary;
|
||||||
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
width: 90%;
|
||||||
|
});
|
||||||
|
|
||||||
|
.largePhone({
|
||||||
|
padding: 1em;
|
||||||
|
width: 100%;
|
||||||
|
});
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 0.2em 0;
|
margin: 0.2em 0;
|
||||||
@@ -29,7 +42,6 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
min-width: 30em;
|
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -42,8 +54,8 @@ textarea {
|
|||||||
|
|
||||||
&.json {
|
&.json {
|
||||||
display:block;
|
display:block;
|
||||||
width:50em;
|
width:100%;
|
||||||
height: 25em;
|
min-height: 10em;
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
margin:2em 0;
|
margin:2em 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,22 @@
|
|||||||
|
|
||||||
#outfit {
|
#outfit {
|
||||||
font-size: 1.1em;
|
max-width: 1600px;
|
||||||
max-width: 1200px;
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
.user-select-none();
|
.user-select-none();
|
||||||
|
font-size: 0.9em;
|
||||||
|
|
||||||
.tablet({
|
.tablet({
|
||||||
width: 100%;
|
|
||||||
min-width: 750px;
|
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
width: 100%;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
font-size: 1em;
|
||||||
|
});
|
||||||
|
|
||||||
|
table {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#overview {
|
#overview {
|
||||||
@@ -19,50 +25,291 @@
|
|||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
margin: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#summary {
|
#summary {
|
||||||
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.5em 0.2em;
|
||||||
|
font-size: 0.9em;
|
||||||
|
|
||||||
|
#summaryTable {
|
||||||
.user-select-none();
|
.user-select-none();
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 1em 0;
|
|
||||||
font-size: 0.8em;
|
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tbody td {
|
.flip {
|
||||||
padding: 0 0.5em;
|
display: inline-block;
|
||||||
|
-moz-transform: scaleX(-1); /* Gecko */
|
||||||
|
-o-transform: scaleX(-1); /* Operah */
|
||||||
|
-webkit-transform: scaleX(-1); /* webkit */
|
||||||
|
transform: scaleX(-1); /* standard */
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-menu {
|
||||||
|
position: relative;
|
||||||
|
z-index: 0;
|
||||||
|
|
||||||
|
&.selected {
|
||||||
|
z-index: 1;
|
||||||
|
h1 {
|
||||||
|
background-color: @primary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
float: right;
|
||||||
|
margin: 0.1em 0.3em 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.select {
|
||||||
|
box-sizing: border-box;
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#build {
|
#build {
|
||||||
float: right;
|
float: right;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
font-size: 0.8em;
|
text-align: left;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
background: none;
|
background: none;
|
||||||
line-height: 1.5em;
|
line-height: 1.3em;
|
||||||
font-size: 0.8em;
|
width: 15em;
|
||||||
|
font-size: 0.9em;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.5em;
|
padding: 0.3em;
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border: 1px solid @primary;
|
border: 1px solid @primary;
|
||||||
color: @primary;
|
color: @primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
width: 60%;
|
||||||
|
});
|
||||||
|
|
||||||
|
.largePhone({
|
||||||
|
width: 100%;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
#hardpoints, #utility, #standard {
|
float: left;
|
||||||
padding-right: 0.3em;
|
|
||||||
.slot {
|
|
||||||
clear: left;
|
clear: left;
|
||||||
|
width: 100%;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
.sortable {
|
||||||
|
&:hover {
|
||||||
|
color: @primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#internal {
|
.shorten {
|
||||||
.slot {
|
overflow: hidden;
|
||||||
clear: left;
|
max-width: 8em;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.optional-hide {
|
||||||
|
.largePhone({
|
||||||
|
display: none;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
table.total {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
&, td {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border: 1px solid @primary-disabled;
|
||||||
|
}
|
||||||
|
.lbl {
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: @primary-bg;
|
||||||
|
background-color: @primary-disabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabs {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-bottom: 1px;
|
||||||
|
|
||||||
|
&, th {
|
||||||
|
border-collapse: collapse;
|
||||||
|
color: @primary-disabled;
|
||||||
|
background-color: @primary-bg;
|
||||||
|
border: 1px solid @primary-disabled;
|
||||||
|
padding-top: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
color: @primary-bg;
|
||||||
|
background-color: @primary-disabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.group {
|
||||||
|
width: 25%;
|
||||||
|
padding: 0.5em 0.2em;
|
||||||
|
vertical-align: top;
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: inline-block;
|
||||||
|
.user-select-none();
|
||||||
|
cursor: default;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-family: @fStandard;
|
||||||
|
color: @bgBlack;
|
||||||
|
background-color: @primary-disabled;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0;
|
||||||
|
padding-top: 2px;
|
||||||
|
font-size: 1em;
|
||||||
|
line-height: 1.3em;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
width: 50%;
|
||||||
|
});
|
||||||
|
|
||||||
|
.largePhone({
|
||||||
|
width: 100%;
|
||||||
|
});
|
||||||
|
|
||||||
|
&.half {
|
||||||
|
width: 50%;
|
||||||
|
|
||||||
|
.tablet({
|
||||||
|
td {
|
||||||
|
line-height: 2em;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
width: 100% !important;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
&.third {
|
||||||
|
width: 33%;
|
||||||
|
|
||||||
|
.smallTablet({
|
||||||
|
width: 100% !important;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
.smallScreen({
|
||||||
|
.axis.x {
|
||||||
|
g.tick:nth-child(2n + 1) text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
.power-band {
|
||||||
|
text, rect {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
rect {
|
||||||
|
stroke-width: 1px;
|
||||||
|
stroke: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
svg g {
|
||||||
|
.threshold {
|
||||||
|
stroke: @secondary-disabled !important;
|
||||||
|
fill: @secondary-disabled !important;
|
||||||
|
|
||||||
|
&.exceeded {
|
||||||
|
stroke: @warning !important;
|
||||||
|
fill: @warning !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#componentPriority {
|
||||||
|
.tablet({
|
||||||
|
text.primary, text.warning, text.primary-bg, text.secondary {
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tbody tr td {
|
||||||
|
&:nth-child(4) {
|
||||||
|
span {
|
||||||
|
vertical-align: middle;
|
||||||
|
font-size: 1.6em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
.medPhone({
|
||||||
|
.axis {
|
||||||
|
font-size: 0.8em;
|
||||||
|
|
||||||
|
g.tick:nth-child(2n) text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead tr.main th {
|
||||||
|
font-size: 0.8em;
|
||||||
|
|
||||||
|
&:nth-child(2) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
table tbody tr td {
|
||||||
|
&:nth-child(1) {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
max-width: 0 !important;
|
||||||
|
width: 0 !important;
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
&:nth-child(3) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
.smallPhone({
|
||||||
|
table tbody tr td {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
&:nth-child(6) {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
max-width: 0 !important;
|
||||||
|
width: 0 !important;
|
||||||
|
color: transparent;
|
||||||
|
|
||||||
|
u { display: none; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
40
app/less/responsive.less
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
// Screens less than 1024 wide
|
||||||
|
// More will be added over time to support mobile devices better
|
||||||
|
// These are designed to trickle down. So tablet styles will apply to tablet and smaller, etc
|
||||||
|
// To overwrite, put the smallest devices at the bottom
|
||||||
|
|
||||||
|
.smallPhone(@rules) {
|
||||||
|
@media only screen and (max-width: 400px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.medPhone(@rules) {
|
||||||
|
@media only screen and /*(min-width: 351px) and */ (max-width: 550px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.largePhone(@rules) {
|
||||||
|
@media only screen and /*(min-width: 551px) and */ (max-width: 640px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.smallTablet(@rules) {
|
||||||
|
@media only screen and /*(min-width: 641px) and */(max-width: 1000px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tablet(@rules) {
|
||||||
|
@media only screen and /*(min-width: 601px) and */(max-width: 1024px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.smallScreen(@rules) {
|
||||||
|
@media only screen and /*(min-width: 601px) and */(max-width: 1400px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +1,27 @@
|
|||||||
|
select {
|
||||||
|
.border-radius(0);
|
||||||
|
cursor: pointer;
|
||||||
|
background: none;
|
||||||
|
color: @primary-disabled;
|
||||||
|
font-family: @fStandard;
|
||||||
|
font-size: 1em;
|
||||||
|
background-color: transparent;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-appearance: none;
|
||||||
|
appearance: none;
|
||||||
|
padding: 0.1em 0.5em;
|
||||||
|
outline:none;
|
||||||
|
border: 0;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.select {
|
.select {
|
||||||
color: @primary-disabled;
|
color: @primary-disabled;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -5,84 +29,112 @@
|
|||||||
padding: 0.5em 0;
|
padding: 0.5em 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
max-height: 300px;
|
max-height: 400px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
background-color: @bg;
|
background-color: @bg;
|
||||||
border: 1px solid @primary;
|
border: 1px solid @primary;
|
||||||
white-space: nowrap;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
.tablet({
|
||||||
|
max-height: 300px;
|
||||||
|
});
|
||||||
|
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background-color: transparent;
|
||||||
|
border-left: 1px solid @primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background-color: @primary-disabled;
|
||||||
|
}
|
||||||
|
|
||||||
.select-group {
|
.select-group {
|
||||||
|
white-space: nowrap;
|
||||||
|
line-height: 1.5em;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
border-top: 1px solid @primary-disabled;
|
border-top: 1px solid @primary-disabled;
|
||||||
border-bottom: 1px solid @primary-disabled;
|
border-bottom: 1px solid @primary-disabled;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-c, .c, .lc {
|
@optionSpacing: 2em;
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
|
.empty-c, .c, .lc {
|
||||||
|
white-space: nowrap;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
line-height:@optionSpacing;
|
||||||
color: @primary-disabled;
|
color: @primary-disabled;
|
||||||
stroke-width: 1em;
|
stroke-width: 0.5em;
|
||||||
stroke: @primary-disabled;
|
stroke: @primary-disabled;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
border-color: @primary;
|
||||||
|
color: @primary;
|
||||||
|
stroke: @primary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lc, .c {
|
||||||
|
border:1px solid @primary-disabled;
|
||||||
|
padding: 0.1em 0.25em;
|
||||||
|
margin: 0.3em;
|
||||||
|
|
||||||
|
&.warning {
|
||||||
|
border-color: @warning-disabled;
|
||||||
|
color: @warning-disabled;
|
||||||
|
stroke: @warning-disabled;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: @warning;
|
||||||
color: @warning;
|
color: @warning;
|
||||||
stroke: @warning;
|
stroke: @warning;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
|
border-color: @disabled;
|
||||||
color: @disabled;
|
color: @disabled;
|
||||||
stroke: @disabled;
|
stroke: @disabled;
|
||||||
}
|
}
|
||||||
&.active {
|
&.active {
|
||||||
|
border-color: @secondary;
|
||||||
color: @secondary;
|
color: @secondary;
|
||||||
stroke: @secondary;
|
stroke: @secondary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@optionSpacing: 1.8em;
|
|
||||||
|
|
||||||
.lc {
|
.lc {
|
||||||
line-height:@optionSpacing;
|
overflow: hidden;
|
||||||
text-align: left;
|
text-overflow: ellipsis;
|
||||||
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-c {
|
|
||||||
line-height:@optionSpacing;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.c {
|
.c {
|
||||||
border:1px solid @primary-disabled;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.1em;
|
|
||||||
margin: 0.3em;
|
|
||||||
width: 2em;
|
width: 2em;
|
||||||
line-height: @optionSpacing;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
border:1px solid @warning;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.disabled {
|
span {
|
||||||
border:1px solid @disabled;
|
vertical-align: middle;
|
||||||
}
|
|
||||||
&.active {
|
|
||||||
border:1px solid @secondary;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
min-width: 15em;
|
min-width: 16em;
|
||||||
|
max-width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@@ -90,8 +142,8 @@
|
|||||||
|
|
||||||
&.hardpoint {
|
&.hardpoint {
|
||||||
.c {
|
.c {
|
||||||
width: 4em;
|
width: 4.5em;
|
||||||
padding: 0.1em 0.5em;
|
padding: 0.1em 0.2em;
|
||||||
}
|
}
|
||||||
ul {
|
ul {
|
||||||
width: 17em;
|
width: 17em;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
a.ship {
|
a.ship {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 18em;
|
width: 15em;
|
||||||
margin: 0.5em;
|
margin: 0.5em;
|
||||||
background-color: @bg;
|
background-color: @bg;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
@@ -16,15 +16,20 @@ a.ship {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
.user-select-none();
|
.user-select-none();
|
||||||
|
|
||||||
|
.smallPhone({
|
||||||
|
width: 16em;
|
||||||
|
});
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
font-size: 1.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
color: @warning;
|
color: @warning;
|
||||||
font-family: @fTitle;
|
font-family: @fStandard;
|
||||||
float: left;
|
float: left;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
margin-right: 2em;
|
margin-right: 2em;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
text {
|
text {
|
||||||
font-size: 0.8em;
|
font-size: 0.7em;
|
||||||
fill: @primary-disabled;
|
fill: @primary-disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
text {
|
text {
|
||||||
dominant-baseline: central;
|
dominant-baseline: central;
|
||||||
fill: @primary;
|
fill: @primary;
|
||||||
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filled {
|
.filled {
|
||||||
@@ -40,3 +41,58 @@
|
|||||||
cursor: crosshair;
|
cursor: crosshair;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type=range] {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
border: 1px solid @bgBlack;
|
||||||
|
/*required for proper track sizing in FF*/
|
||||||
|
width: 300px;
|
||||||
|
|
||||||
|
&::-moz-range-track, &::-webkit-slider-runnable-track {
|
||||||
|
width: 300px;
|
||||||
|
height: 5px;
|
||||||
|
background: @primary;
|
||||||
|
border: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
&::-moz-range-thumb, &::-webkit-slider-thumb {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
border: none;
|
||||||
|
height: 1em;
|
||||||
|
width: 1em;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: @primary;
|
||||||
|
}
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
/*hide the outline behind the border*/
|
||||||
|
&:-moz-focusring{
|
||||||
|
outline: 1px solid @bgBlack;
|
||||||
|
outline-offset: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-ms-track {
|
||||||
|
width: 300px;
|
||||||
|
height: 5px;
|
||||||
|
background: transparent;
|
||||||
|
border-color: transparent;
|
||||||
|
border-width: 6px 0;
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
&::-ms-fill-lower {
|
||||||
|
background: @primary;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
&::-ms-fill-upper {
|
||||||
|
background: @primary;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
&::-ms-thumb {
|
||||||
|
border: none;
|
||||||
|
height: 16px;
|
||||||
|
width: 16px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: goldenrod;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,29 +1,9 @@
|
|||||||
|
|
||||||
.slot-group {
|
|
||||||
width: 25%;
|
|
||||||
margin: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
.user-select-none();
|
|
||||||
cursor: default;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-family: @fTitle;
|
|
||||||
color: @bgBlack;
|
|
||||||
background-color: @primary-disabled;
|
|
||||||
text-transform: uppercase;
|
|
||||||
margin: 0.1em 0;
|
|
||||||
font-size: 0.8em;
|
|
||||||
padding-left: 0.5em;
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.slot {
|
.slot {
|
||||||
float: left;
|
float: left;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 0.75em;
|
margin-top: 0.25em;
|
||||||
margin-top: 0.5em;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
padding-right: 0.4em;
|
padding-right: 0.4em;
|
||||||
@@ -32,21 +12,31 @@
|
|||||||
background-color: @primary-bg;
|
background-color: @primary-bg;
|
||||||
border: 1px solid @primary-disabled;
|
border: 1px solid @primary-disabled;
|
||||||
color: @fg;
|
color: @fg;
|
||||||
fill: @disabled;
|
fill: @fg;
|
||||||
|
|
||||||
.details {
|
.details {
|
||||||
min-height: 2.5em;
|
min-height: 2.7em;
|
||||||
|
padding: 0.25em 0;
|
||||||
|
box-sizing: border-box;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-width: 80%;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
.cb {
|
.cb {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.l {
|
.l {
|
||||||
|
text-transform: capitalize;
|
||||||
margin-right: 0.8em;
|
margin-right: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,10 +51,13 @@
|
|||||||
color: @primary-disabled;
|
color: @primary-disabled;
|
||||||
border-right: 1px solid @primary-disabled;
|
border-right: 1px solid @primary-disabled;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
padding-top: 0.2em;
|
||||||
|
padding-left: 0.05em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
font-size: 1.5em;
|
text-transform: uppercase;
|
||||||
|
font-size: 1.3em;
|
||||||
color: lighten(@primary-bg, 12%);
|
color: lighten(@primary-bg, 12%);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
@@ -73,6 +66,7 @@
|
|||||||
|
|
||||||
&.selected {
|
&.selected {
|
||||||
color: @primary-bg;
|
color: @primary-bg;
|
||||||
|
fill: @primary-bg;
|
||||||
background-color: @primary;
|
background-color: @primary;
|
||||||
border: 1px solid @primary;
|
border: 1px solid @primary;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|||||||
@@ -8,11 +8,17 @@ table {
|
|||||||
color: @primary;
|
color: @primary;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ng-click] {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
thead {
|
thead {
|
||||||
color: @bgBlack;
|
color: @bgBlack;
|
||||||
background-color: @primary-disabled;
|
background-color: @primary-disabled;
|
||||||
|
text-transform: uppercase;
|
||||||
|
line-height: 1.3em;
|
||||||
.user-select-none();
|
.user-select-none();
|
||||||
|
|
||||||
.main th {
|
.main th {
|
||||||
@@ -24,8 +30,9 @@ thead {
|
|||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
|
vertical-align: middle;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding: 0 0.75em;
|
padding: 2px 0.4em 0; // Padding top for font vertical alignment
|
||||||
|
|
||||||
&.prop {
|
&.prop {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -40,7 +47,6 @@ thead {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tbody tr {
|
tbody tr {
|
||||||
|
|
||||||
&.tr {
|
&.tr {
|
||||||
@@ -48,18 +54,19 @@ tbody tr {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: @fg;
|
|
||||||
fill: @warning;
|
|
||||||
background-color: @warning-bg;
|
background-color: @warning-bg;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
svg {
|
&.highlight {
|
||||||
cursor: pointer;
|
&:hover {
|
||||||
|
background-color: @warning-bg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
padding: 0 0.7em;
|
line-height: 1.4em;
|
||||||
}
|
padding: 0 0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,11 +29,3 @@
|
|||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Screens less than 1024 wide
|
|
||||||
// More will be added over time to support mobile devices better
|
|
||||||
.tablet(@rules) {
|
|
||||||
@media only screen and (min-width: 300px) and (max-width: 1024px) {
|
|
||||||
@rules();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
281
app/schemas/ship-loadout/1.json
Normal file
@@ -0,0 +1,281 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
|
"id": "http://cdn.coriolis.io/schemas/ship-loadout/1-draft.json#",
|
||||||
|
"title": "Ship Loadout",
|
||||||
|
"type": "object",
|
||||||
|
"description": "The details for a specific ship build/loadout",
|
||||||
|
"required": ["name", "ship", "components"],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the build/loadout",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 2
|
||||||
|
},
|
||||||
|
"ship": {
|
||||||
|
"description": "The full display name of the ship",
|
||||||
|
"type": "string",
|
||||||
|
"minimum": 3
|
||||||
|
},
|
||||||
|
"manufacturer": {
|
||||||
|
"description": "The ship manufacturer",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"references" : {
|
||||||
|
"description": "3rd Party references and/or links to this build/loadout",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": ["name","url"],
|
||||||
|
"additionalProperties": true,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the 3rd party, .e.g 'Coriolis.io' or 'E:D Shipyard'",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"description": "The link/url to the 3rd party referencing this build/loadout",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"description": "The components used by this build",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": ["standard", "internal", "hardpoints", "utility"],
|
||||||
|
"properties": {
|
||||||
|
"standard": {
|
||||||
|
"description": "The set of standard components across all ships",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": ["bulkheads", "powerPlant", "thrusters", "frameShiftDrive", "lifeSupport", "powerDistributor", "sensors", "fuelTank"],
|
||||||
|
"properties": {
|
||||||
|
"bulkheads": {
|
||||||
|
"enum": ["Lightweight Alloy", "Reinforced Alloy", "Military Grade Composite", "Mirrored Surface Composite", "Reactive Surface Composite"]
|
||||||
|
},
|
||||||
|
"powerPlant": {
|
||||||
|
"required": ["class", "rating"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 2, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"thrusters": {
|
||||||
|
"required": ["class", "rating"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 2, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameShiftDrive": {
|
||||||
|
"required": ["class", "rating"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 2, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lifeSupport": {
|
||||||
|
"required": ["class", "rating"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 6 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"powerDistributor": {
|
||||||
|
"required": ["class", "rating"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sensors": {
|
||||||
|
"required": ["class", "rating"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fuelTank": {
|
||||||
|
"required": ["class", "rating"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 6 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"internal": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": ["object", "null"],
|
||||||
|
"required": ["class", "rating", "group"],
|
||||||
|
"properties" : {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" },
|
||||||
|
"group": {
|
||||||
|
"description": "The group of the component, e.g. 'Shield Generator', or 'Cargo Rack'",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The name identifying the component (if applicable), e.g. 'Advance Discovery Scanner', or 'Detailed Surface Scanner'",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minItems": 3
|
||||||
|
},
|
||||||
|
"hardpoints": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": ["object", "null"],
|
||||||
|
"required": ["class", "rating", "group", "mount"],
|
||||||
|
"properties" : {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 4 },
|
||||||
|
"rating": { "$ref": "#/definitions/allRatings" },
|
||||||
|
"mount": { "type": "string", "enum": ["Fixed", "Gimballed", "Turret"] },
|
||||||
|
"group": {
|
||||||
|
"description": "The group of the component, e.g. 'Beam Laser', or 'Missile Rack'",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The name identifing the component (if applicable), e.g. 'Retributor', or 'Mining Lance'",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minItems": 1
|
||||||
|
},
|
||||||
|
"utility": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": ["object", "null"],
|
||||||
|
"required": ["class", "rating", "group"],
|
||||||
|
"properties" : {
|
||||||
|
"class": { "type": "integer", "minimum": 0, "maximum": 0 },
|
||||||
|
"rating": { "$ref": "#/definitions/allRatings" },
|
||||||
|
"group": {
|
||||||
|
"description": "The group of the component, e.g. 'Shield Booster', or 'Kill Warrant Scanner'",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The name identifing the component (if applicable), e.g. 'Point Defence', or 'Electronic Countermeasure'",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minItems": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stats": {
|
||||||
|
"description": "Optional statistics from the build",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": true,
|
||||||
|
"properties": {
|
||||||
|
"agility": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"armour": {
|
||||||
|
"description": "Sum of base armour + any hull reinforcements",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"armourAdded":{
|
||||||
|
"description": "Armour added through Hull reinforcement",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"baseShieldStrength": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"baseArmour": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"boost": {
|
||||||
|
"description": "Maximum boost speed of the ships (4 pips, straight-line)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"cargoCapacity": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"class": {
|
||||||
|
"description": "Ship Class/Size [Small, Medium, Large]",
|
||||||
|
"enum": [1,2,3]
|
||||||
|
},
|
||||||
|
"dps": {
|
||||||
|
"description": "Cumulative DPS based on the in-game 1-10 statistic",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"hullCost": {
|
||||||
|
"description": "Cost of the ship's hull",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"hullMass": {
|
||||||
|
"description": "Mass of the Ship hull only",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"fuelCapacity": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"fullTankRange": {
|
||||||
|
"description": "Single Jump range with a full tank (unladenMass + fuel)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"ladenMass": {
|
||||||
|
"description": "Mass of the Ship + fuel + cargo (hull + all components + fuel tank + cargo capacity)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"ladenRange": {
|
||||||
|
"description": "Single Jump range with full cargo load, see ladenMass",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"masslock": {
|
||||||
|
"description": "Mass Lock Factor of the Ship",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"shieldStrength": {
|
||||||
|
"description": "Shield strengh in Mega Joules (Mj)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"speed": {
|
||||||
|
"description": "Maximum speed of the ships (4 pips, straight-line)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"totalCost": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"unladenRange": {
|
||||||
|
"description": "Single Jump range when unladen, see unladenMass",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"unladenMass": {
|
||||||
|
"description": "Mass of the Ship (hull + all components)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"definitions": {
|
||||||
|
"standardRatings": { "enum": ["A", "B", "C", "D", "E"] },
|
||||||
|
"allRatings": { "enum": ["A", "B", "C", "D", "E", "F", "I" ] }
|
||||||
|
}
|
||||||
|
}
|
||||||
308
app/schemas/ship-loadout/2.json
Normal file
@@ -0,0 +1,308 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
|
"id": "http://cdn.coriolis.io/schemas/ship-loadout/2.json#",
|
||||||
|
"title": "Ship Loadout",
|
||||||
|
"type": "object",
|
||||||
|
"description": "The details for a specific ship build/loadout",
|
||||||
|
"required": ["name", "ship", "components"],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the build/loadout",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 2
|
||||||
|
},
|
||||||
|
"ship": {
|
||||||
|
"description": "The full display name of the ship",
|
||||||
|
"type": "string",
|
||||||
|
"minimum": 3
|
||||||
|
},
|
||||||
|
"manufacturer": {
|
||||||
|
"description": "The ship manufacturer",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"references" : {
|
||||||
|
"description": "3rd Party references and/or links to this build/loadout",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": ["name","url"],
|
||||||
|
"additionalProperties": true,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The name of the 3rd party, .e.g 'Coriolis.io' or 'E:D Shipyard'",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"description": "The link/url to the 3rd party referencing this build/loadout",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"description": "The components used by this build",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": ["standard", "internal", "hardpoints", "utility"],
|
||||||
|
"properties": {
|
||||||
|
"standard": {
|
||||||
|
"description": "The set of standard components across all ships",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": ["bulkheads", "powerPlant", "thrusters", "frameShiftDrive", "lifeSupport", "powerDistributor", "sensors", "fuelTank", "cargoHatch"],
|
||||||
|
"properties": {
|
||||||
|
"bulkheads": {
|
||||||
|
"enum": ["Lightweight Alloy", "Reinforced Alloy", "Military Grade Composite", "Mirrored Surface Composite", "Reactive Surface Composite"]
|
||||||
|
},
|
||||||
|
"cargoHatch": {
|
||||||
|
"required": ["enabled", "priority"],
|
||||||
|
"properties": {
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"powerPlant": {
|
||||||
|
"required": ["class", "rating", "enabled", "priority"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 2, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"thrusters": {
|
||||||
|
"required": ["class", "rating", "enabled", "priority"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 2, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"frameShiftDrive": {
|
||||||
|
"required": ["class", "rating", "enabled", "priority"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 2, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lifeSupport": {
|
||||||
|
"required": ["class", "rating", "enabled", "priority"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 6 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"powerDistributor": {
|
||||||
|
"required": ["class", "rating", "enabled", "priority"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sensors": {
|
||||||
|
"required": ["class", "rating", "enabled", "priority"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fuelTank": {
|
||||||
|
"required": ["class", "rating", "enabled", "priority"],
|
||||||
|
"properties": {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 6 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"internal": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": ["object", "null"],
|
||||||
|
"required": ["class", "rating", "enabled", "priority", "group"],
|
||||||
|
"properties" : {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 8 },
|
||||||
|
"rating": { "$ref": "#/definitions/standardRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 },
|
||||||
|
"group": {
|
||||||
|
"description": "The group of the component, e.g. 'Shield Generator', or 'Cargo Rack'",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The name identifying the component (if applicable), e.g. 'Advance Discovery Scanner', or 'Detailed Surface Scanner'",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minItems": 3
|
||||||
|
},
|
||||||
|
"hardpoints": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": ["object", "null"],
|
||||||
|
"required": ["class", "rating", "enabled", "priority", "group", "mount"],
|
||||||
|
"properties" : {
|
||||||
|
"class": { "type": "integer", "minimum": 1, "maximum": 4 },
|
||||||
|
"rating": { "$ref": "#/definitions/allRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 },
|
||||||
|
"mount": { "type": "string", "enum": ["Fixed", "Gimballed", "Turret"] },
|
||||||
|
"group": {
|
||||||
|
"description": "The group of the component, e.g. 'Beam Laser', or 'Missile Rack'",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The name identifing the component (if applicable), e.g. 'Retributor', or 'Mining Lance'",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minItems": 1
|
||||||
|
},
|
||||||
|
"utility": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": ["object", "null"],
|
||||||
|
"required": ["class", "rating", "enabled", "priority", "group"],
|
||||||
|
"properties" : {
|
||||||
|
"class": { "type": "integer", "minimum": 0, "maximum": 0 },
|
||||||
|
"rating": { "$ref": "#/definitions/allRatings" },
|
||||||
|
"enabled": { "type": "boolean" },
|
||||||
|
"priority": { "type": "integer", "minimum": 1, "maximum": 5 },
|
||||||
|
"group": {
|
||||||
|
"description": "The group of the component, e.g. 'Shield Booster', or 'Kill Warrant Scanner'",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The name identifing the component (if applicable), e.g. 'Point Defence', or 'Electronic Countermeasure'",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minItems": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stats": {
|
||||||
|
"description": "Optional statistics from the build",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": true,
|
||||||
|
"properties": {
|
||||||
|
"agility": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"armour": {
|
||||||
|
"description": "Sum of base armour + any hull reinforcements",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"armourAdded":{
|
||||||
|
"description": "Armour added through Hull reinforcement",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"baseShieldStrength": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"baseArmour": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"boost": {
|
||||||
|
"description": "Maximum boost speed of the ships (4 pips, straight-line)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"cargoCapacity": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"class": {
|
||||||
|
"description": "Ship Class/Size [Small, Medium, Large]",
|
||||||
|
"enum": [1,2,3]
|
||||||
|
},
|
||||||
|
"dps": {
|
||||||
|
"description": "Cumulative DPS based on the in-game 1-10 statistic",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"hullCost": {
|
||||||
|
"description": "Cost of the ship's hull",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"hullMass": {
|
||||||
|
"description": "Mass of the Ship hull only",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"fuelCapacity": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"fullTankRange": {
|
||||||
|
"description": "Single Jump range with a full tank (unladenMass + fuel)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"ladenMass": {
|
||||||
|
"description": "Mass of the Ship + fuel + cargo (hull + all components + fuel tank + cargo capacity)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"ladenRange": {
|
||||||
|
"description": "Single Jump range with full cargo load, see ladenMass",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"masslock": {
|
||||||
|
"description": "Mass Lock Factor of the Ship",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"shieldStrength": {
|
||||||
|
"description": "Shield strengh in Mega Joules (Mj)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"speed": {
|
||||||
|
"description": "Maximum speed of the ships (4 pips, straight-line)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"totalCost": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 1
|
||||||
|
},
|
||||||
|
"unladenRange": {
|
||||||
|
"description": "Single Jump range when unladen, see unladenMass",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"unladenMass": {
|
||||||
|
"description": "Mass of the Ship (hull + all components)",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"definitions": {
|
||||||
|
"standardRatings": { "enum": ["A", "B", "C", "D", "E"] },
|
||||||
|
"allRatings": { "enum": ["A", "B", "C", "D", "E", "F", "I" ] }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<div id="app-update" ng-show="appCacheUpdate">
|
<div id="app-update" ng-show="appCacheUpdate">
|
||||||
<a href="#" onclick="window.location.reload()">Update Available! Click to Refresh</a>
|
<a href="#" onclick="window.location.reload()">{{ 'PHRASE_UPDATE_RDY' | translate }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
@@ -7,58 +7,84 @@
|
|||||||
|
|
||||||
<div class="l menu">
|
<div class="l menu">
|
||||||
<div class="menu-header" ng-class="{selected: openedMenu=='s'}" ng-click="openMenu($event,'s')">
|
<div class="menu-header" ng-class="{selected: openedMenu=='s'}" ng-click="openMenu($event,'s')">
|
||||||
<svg class="icon warning"><use xlink:href="#rocket"></use></svg> Ships
|
<svg class="icon warning"><use xlink:href="#rocket"></use></svg><span class="menu-item-label"> {{'ships' | translate}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-list no-wrap" ng-if="openedMenu=='s'">
|
<div class="menu-list dbl no-wrap" ng-if="openedMenu=='s'">
|
||||||
<a class="block" ng-repeat="(shipId,ship) in ships" ui-sref-active="active" ui-sref="outfit({shipId:shipId, code:null, bn:null})">{{::ship.properties.name}}</a>
|
<a class="block" ng-repeat="(shipId,ship) in ships" ui-sref-active="active" ui-sref="outfit({shipId:shipId, code:null, bn:null})">{{::ship.properties.name}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="l menu">
|
<div class="l menu">
|
||||||
<div class="menu-header" ng-class="{selected: openedMenu=='b', disabled: !bs.hasBuilds}" ng-click="openMenu($event,'b')">
|
<div class="menu-header" ng-class="{selected: openedMenu=='b', disabled: !bs.hasBuilds}" ng-click="openMenu($event,'b')">
|
||||||
<svg class="icon warning" ng-class="{'warning-disabled': !bs.hasBuilds}"><use xlink:href="#hammer"></use></svg> Builds
|
<svg class="icon warning" ng-class="{'warning-disabled': !bs.hasBuilds}"><use xlink:href="#hammer"></use></svg><span class="menu-item-label"> {{'builds' | translate}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-list dbl" ng-if="openedMenu=='b'" ng-click="$event.stopPropagation();">
|
<div class="menu-list" ng-if="openedMenu=='b'" ng-click="$event.stopPropagation();">
|
||||||
<ul ng-repeat="shipId in buildsList">
|
<div class="dbl" >
|
||||||
|
<div><ul ng-repeat="shipId in buildsList">
|
||||||
{{ships[shipId].properties.name}}
|
{{ships[shipId].properties.name}}
|
||||||
<li ng-repeat="(name, build) in allBuilds[shipId]">
|
<li ng-repeat="(i, name) in cleanedBuildList(shipId)">
|
||||||
<a ui-sref-active="active" class="name" ui-sref="outfit({shipId:shipId, code:build, bn:name})" ng-bind="name"></a>
|
<a ui-sref-active="active" class="name" ui-sref="outfit({shipId:shipId, code:allBuilds[shipId][name], bn:name})" ng-bind="name"></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="l menu">
|
<div class="l menu">
|
||||||
<div class="menu-header" ng-class="{selected: openedMenu=='comp', disabled: !bs.hasBuilds}" ng-click="openMenu($event,'comp')">
|
<div class="menu-header" ng-class="{selected: openedMenu=='comp', disabled: !bs.hasBuilds}" ng-click="openMenu($event,'comp')">
|
||||||
<svg class="icon warning" ng-class="{'warning-disabled': !bs.hasBuilds}"><use xlink:href="#stats-bars"></use></svg> Compare
|
<svg class="icon warning" ng-class="{'warning-disabled': !bs.hasBuilds}"><use xlink:href="#stats-bars"></use></svg><span class="menu-item-label"> {{'compare' | translate}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-list" ng-if="openedMenu=='comp'" ng-click="$event.stopPropagation();" style="white-space: nowrap;">
|
<div class="menu-list" ng-if="openedMenu=='comp'" ng-click="$event.stopPropagation();" style="white-space: nowrap;">
|
||||||
<span ng-if="!bs.hasComparisons">None Created</span>
|
<span class="cap" ng-if="!bs.hasComparisons" translate="none created"></span>
|
||||||
<a ng-repeat="(name, comp) in allComparisons" ui-sref-active="active" class="block name" ui-sref="compare({name:name})" ng-bind="name"></a>
|
<a ng-repeat="(i, name) in allComparisons" ui-sref-active="active" class="block name" ui-sref="compare({name:name})" ng-bind="name"></a>
|
||||||
<hr />
|
<hr />
|
||||||
<a ui-sref="compare({name: 'all'})" class="block">Compare All</a>
|
<a ui-sref="compare({name: 'all'})" class="block cap" translate="compare all"></a>
|
||||||
<a ui-sref="compare({name: null})" class="block">Create New</a>
|
<a ui-sref="compare({name: null})" class="block cap" translate="create new"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="r menu">
|
<div class="r menu">
|
||||||
<div class="menu-header" ng-class="{selected: openedMenu=='settings'}" ng-click="openMenu($event,'settings')">
|
<div class="menu-header" ng-class="{selected: openedMenu=='settings'}" ng-click="openMenu($event,'settings')">
|
||||||
<svg class="icon xl warning"><use xlink:href="#cogs"></use></svg>
|
<svg class="icon xl warning"><use xlink:href="#cogs"></use></svg><span class="menu-item-label"> {{'settings' | translate}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-list no-wrap" ng-if="openedMenu=='settings'" ng-click="$event.stopPropagation();">
|
<div class="menu-list no-wrap cap" ng-if="openedMenu=='settings'" ng-click="$event.stopPropagation();">
|
||||||
<ul>
|
<ul>
|
||||||
Insurance
|
{{'language' | translate}}
|
||||||
<li><select ng-model="insurance.current" ng-options="ins.name for (i,ins) in insurance.opts" ng-change="updateInsurance()"></select></li>
|
<li><select class="cap" ng-model="language.current" ng-options="langCode as langName for (langCode,langName) in language.opts" ng-change="changeLanguage()"></select></li>
|
||||||
|
</ul><br>
|
||||||
|
<ul>
|
||||||
|
{{'insurance' | translate}}
|
||||||
|
<li><select class="cap" ng-model="insurance.current" ng-options="ins.name | translate for (i,ins) in insurance.opts" ng-change="updateInsurance()"></select></li>
|
||||||
|
</ul><br>
|
||||||
|
<ul>
|
||||||
|
{{'ship' | translate}} {{'discount' | translate}}
|
||||||
|
<li><select class="cap" ng-model="discounts.ship" ng-options="i for (i,d) in discounts.opts" ng-change="updateDiscount()"></select></li>
|
||||||
|
</ul><br>
|
||||||
|
<ul>
|
||||||
|
{{'component' | translate}} {{'discount' | translate}}
|
||||||
|
<li><select class="cap" ng-model="discounts.components" ng-options="i for (i,d) in discounts.opts" ng-change="updateDiscount()"></select></li>
|
||||||
</ul>
|
</ul>
|
||||||
<hr />
|
<hr />
|
||||||
<ul>
|
<ul>
|
||||||
Builds & Comparisons
|
{{'builds' | translate}} & {{'comparisons' | translate}}
|
||||||
<li><a href="#" class="block" ui-sref="modal.export({data: {builds: allBuilds}})">Export</a></li>
|
<li><a href="#" class="block" ng-click="backup($event)" translate="backup"></a></li>
|
||||||
<li><a href="#" class="block" ui-sref="modal.import">Import</a></li>
|
<li><a href="#" class="block" ng-click="detailedExport($event)" translate="detailed export"></a></li>
|
||||||
<li><a href="#" class="block" ui-sref="modal.delete">Delete All</a></li>
|
<li><a href="#" class="block" ui-sref="modal.import" translate="import"></a></li>
|
||||||
|
<li><a href="#" class="block" ui-sref="modal.delete" translate="delete all"></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<hr />
|
<hr />
|
||||||
<a href="#" ui-sref="modal.about" class="block">About</a>
|
<table style="width: 300px;background-color:transparent">
|
||||||
|
<tr>
|
||||||
|
<td style="width: 20px"><u>A</u></td>
|
||||||
|
<td slider min="0.65" def="sizeRatio" max="1.2" on-change="textSizeChange(val)" ignore-resize="true"></td>
|
||||||
|
<td style="width: 20px"><span style="font-size: 30px">A</span></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td><td style="text-align:center" class="primary-disabled cap" ng-click="resetTextSize()" translate="reset"></td><td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<hr />
|
||||||
|
<a href="#" ui-sref="modal.about" class="block" translate="about"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
<div class="sz">{{::['U','S','M','L','H'][hp.maxClass]}}</div>
|
<div class="sz">{{['U','S','M','L','H'][hp.maxClass] | translate}}</div>
|
||||||
<div class="empty" ng-if="!hp.c">EMPTY</div>
|
<div class="empty" ng-if="!hp.c" translate="empty"></div>
|
||||||
<div ng-if="hp.c">
|
<div ng-if="hp.c">
|
||||||
<div class="l">{{hp.c.class}}{{hp.c.rating}}<span ng-if="hp.c.mode">/{{hp.c.mode}}{{hp.c.missile}}</span> {{hp.c.name || lbl}}</div>
|
{{hp.c.class}}{{hp.c.rating}}<span ng-if="hp.c.mode">/{{hp.c.mode}}{{hp.c.missile}}</span> {{hp.c.name || hp.c.grp | translate}}
|
||||||
<div class="r">{{hp.c.mass}} <u>T</u></div>
|
<div class="r">{{hp.c.mass}} <u>T</u></div>
|
||||||
<div class="cb">
|
<div class="cb">
|
||||||
<div class="l" ng-if="hp.c.damage">DMG: {{hp.c.damage}} <span ng-if="hp.c.ssdam">({{$r.fCrd(hp.c.ssdam)}} <u>MJ</u>)</span></div>
|
<div class="l" ng-if="hp.c.damage">{{'damage' | translate}}: {{hp.c.damage}} <span ng-if="hp.c.ssdam">({{$r.fCrd(hp.c.ssdam)}} <u>MJ</u>)</span></div>
|
||||||
<div class="l" ng-if="hp.c.dps">DPS: {{hp.c.dps}} <span ng-if="hp.c.mjdps">({{$r.fCrd(hp.c.mjdps)}} <u>MJ</u>)</span></div>
|
<div class="l" ng-if="hp.c.dps">{{'DPS' | translate}}: {{hp.c.dps}} <span ng-if="hp.c.mjdps">({{$r.fCrd(hp.c.mjdps)}} <u>MJ</u>)</span></div>
|
||||||
<div class="l" ng-if="hp.c.mjeps">EPS: {{$r.fCrd(hp.c.mjeps)}} <u>MJ</u></div>
|
<div class="l" ng-if="hp.c.thermload">{{'T_LOAD' | translate}}: {{hp.c.thermload}}</div>
|
||||||
<div class="l" ng-if="hp.c.thermload">T-Load: {{hp.c.thermload}}</div>
|
<div class="l" ng-if="hp.c.type">{{'type' | translate}}: {{hp.c.type}}</div>
|
||||||
<div class="l" ng-if="hp.c.type">Type: {{hp.c.type}}</div>
|
<div class="l" ng-if="hp.c.rof">{{'ROF' | translate}}: {{hp.c.rof}}<u>/s</u></div>
|
||||||
<div class="l" ng-if="hp.c.rof">ROF: {{hp.c.rof}}<u>/s</u></div>
|
<div class="l" ng-if="hp.c.armourpen">{{'pen' | translate}}: {{hp.c.armourpen}}</div>
|
||||||
<div class="l" ng-if="hp.c.armourpen">Pen: {{hp.c.armourpen}}</div>
|
|
||||||
<div class="l" ng-if="hp.c.shieldmul">+{{$r.fRPct(hp.c.shieldmul)}}</div>
|
<div class="l" ng-if="hp.c.shieldmul">+{{$r.fRPct(hp.c.shieldmul)}}</div>
|
||||||
<div class="l" ng-if="hp.c.range">{{hp.c.range}} <u>KM</u></div>
|
<div class="l" ng-if="hp.c.range">{{hp.c.range}} <u>km</u></div>
|
||||||
<div class="l" ng-if="hp.c.ammo">Ammo: {{$r.fCrd(hp.c.clip)}}/{{$r.fCrd(hp.c.ammo)}}</div>
|
<div class="l" ng-if="hp.c.ammo >= 0">{{'ammo' | translate}}: {{$r.fCrd(hp.c.clip)}}+{{$r.fCrd(hp.c.ammo)}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,19 +1,22 @@
|
|||||||
<div class="sz" ng-bind="c.maxClass"></div>
|
<div class="sz" ng-bind="c.maxClass"></div>
|
||||||
<div class="empty" ng-if="!c.c">EMPTY</div>
|
<div class="empty" ng-if="!c.c" translate="empty"></div>
|
||||||
<div ng-if="c.c">
|
<div ng-if="c.c">
|
||||||
<div class="l">{{c.c.class}}{{c.c.rating}} {{c.c.name || lbl}}</div>
|
<div class="l name">{{c.c.class}}{{c.c.rating}} {{c.c.name || c.c.grp | translate}}</div>
|
||||||
<div class="r">{{c.c.mass || c.c.capacity || '0'}} <u>T</u></div>
|
<div class="r">{{c.c.mass || c.c.capacity || '0'}} <u translate="T"></u></div>
|
||||||
<div class="cb"></div>
|
<div class="cb"></div>
|
||||||
<div class="l" ng-if="c.c.optmass">Opt: {{c.c.optmass}} <u>T</u></div>
|
<div class="l" ng-if="c.c.optmass">{{'optimal mass' | translate}}: {{c.c.optmass}} <u translate="T"></u></div>
|
||||||
<div class="l" ng-if="c.c.maxmass">Max: {{c.c.maxmass}} <u>T</u></div>
|
<div class="l" ng-if="c.c.maxmass">{{'max mass' | translate}}: {{c.c.maxmass}} <u translate="T"></u></div>
|
||||||
<div class="l" ng-if="c.c.bins">{{c.c.bins}} <u>Bins</u></div>
|
<div class="l" ng-if="c.c.bins">{{c.c.bins}} <u translate="bins"></u></div>
|
||||||
<div class="l" ng-if="c.c.rate">Rate: {{c.c.rate}} <u>Kg/s</u> Refuel Time: {{$r.fTime(ft.c.capacity * 1000 / c.c.rate)}}</div>
|
<div class="l" ng-if="c.c.rate">{{'rate' | translate}}: {{c.c.rate}} <u>kg/s</u> {{'refuel time' | translate}}: {{$r.fTime(fuel * 1000 / c.c.rate)}}</div>
|
||||||
<div class="l" ng-if="c.c.ammo">Ammo: {{c.c.ammo}}</div>
|
<div class="l" ng-if="c.c.ammo">{{'ammo' | translate}}: {{$r.fCrd(c.c.ammo)}}</div>
|
||||||
<div class="l" ng-if="c.c.cells">Cells: {{c.c.cells}}</div>
|
<div class="l" ng-if="c.c.cells">{{'cells' | translate}}: {{c.c.cells}}</div>
|
||||||
<div class="l" ng-if="c.c.recharge">Recharge: {{c.c.recharge}} <u>Mj</u></div>
|
<div class="l" ng-if="c.c.recharge">{{'recharge' | translate}}: {{c.c.recharge}} <u>MJ</u> {{'total' | translate}}: {{c.c.cells * c.c.recharge}} <u>MJ</u></div>
|
||||||
<div class="l" ng-if="c.c.repair">Repair: {{c.c.repair}}</div>
|
<div class="l" ng-if="c.c.repair">{{'repair' | translate}}: {{c.c.repair}}</div>
|
||||||
<div class="l" ng-if="c.c.rangeLS">{{c.c.rangeLS}} <u>LS</u></div>
|
<div class="l" ng-if="c.c.range">{{'range' | translate}} {{c.c.range}} <u>km</u></div>
|
||||||
<div class="l" ng-if="c.c.rangeLS === null"><svg class="icon"><use xlink:href="#infinite"></use></svg> <u>LS</u></div>
|
<div class="l" ng-if="c.c.time">{{'time' | translate}}: {{$r.fTime(c.c.time)}}</div>
|
||||||
<div class="l" ng-if="c.c.rangeRating">Range: {{c.c.rangeRating}}</div>
|
<div class="l" ng-if="c.c.maximum">{{'max' | translate}}: {{(c.c.maximum)}}</div>
|
||||||
<div class="l" ng-if="c.c.armouradd">+{{c.c.armouradd}} <u>Armour</u></div>
|
<div class="l" ng-if="c.c.rangeLS">{{c.c.rangeLS}} <u translate="LS"></u></div>
|
||||||
|
<div class="l" ng-if="c.c.rangeLS === null"><svg class="icon"><use xlink:href="#infinite"></use></svg> <u translate="LS"></u></div>
|
||||||
|
<div class="l" ng-if="c.c.rangeRating">{{'range' | translate}}: {{c.c.rangeRating}}</div>
|
||||||
|
<div class="l" ng-if="c.c.armouradd">+{{c.c.armouradd}} <u translate="armour"></u></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -15,4 +15,15 @@
|
|||||||
Coriolis is an open source project. Checkout the list of upcoming features and to-do list on github.
|
Coriolis is an open source project. Checkout the list of upcoming features and to-do list on github.
|
||||||
Any and all contributions and feedback are welcome. If you encounter any bugs please report them and provide as much detail as possible.
|
Any and all contributions and feedback are welcome. If you encounter any bugs please report them and provide as much detail as possible.
|
||||||
</p>
|
</p>
|
||||||
<button class="r dismiss" ng-click="dismiss()">Close</button>
|
|
||||||
|
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
|
||||||
|
<input type="hidden" name="cmd" value="_s-xclick">
|
||||||
|
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCjl3XoqQ3Q+x/qS7Va1lwvF0IgUs8gBbrwj1/uEv/xFyPSB2G0kgWqiB2c/8vvfcjjyMr4nlzLUlmQ0yl1zZaeTXFciN5a+JsvaBISThIlN9UP7PXP61TVHCECtt/hBNtlOmg8/gG8khJCj8+qi81XsNAz5bEDpdahKW3fwGHD4jELMAkGBSsOAwIaBQAwgawGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI4EVkn3RE+9qAgYhg2sTmY1Gul2yJyLYJZPRMO/PwgzEogb2NlIcshJSO+KvBea5NjjTXN2EJNqJa24h4lGA1mdrSgzTGDrVbdcnuti9+7ggn5R5s5IwEEQnN4JQx3IAqsp3UmJbti5t776Ns50nQbjA8NzxI+gwUmIvUQaVs6wC4HYXG6q8QtqUIWeVDhvbnt+H8oIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTUwNjA1MjEwNDQzWjAjBgkqhkiG9w0BCQQxFgQUx6Bs50H7tbYJln13pP5J7J1KiSUwDQYJKoZIhvcNAQEBBQAEgYBiOr1RX38uvwghuIZxKpjXX4LG/GoyYM6citfsBD5vjUGj0udmsamjlur+dwxJNs9dULnJO6huoTvxqxTui0Mh3n21YKoMqVE/erfNk2XygrJw9bEtW+HXjU3F+OGKR7dfD9STp2ZlvTEvZR9JRV5A/udC9/9U9eD5iLKRRwkIBg==-----END PKCS7-----
|
||||||
|
">
|
||||||
|
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - Donate to Coriolis.io" style="border:none;">
|
||||||
|
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<p>Help keep the lights on! Donations will be used to cover costs of running and maintaining Coriolis. Thanks for helping!</p>
|
||||||
|
|
||||||
|
<button class="r dismiss cap" ng-click="dismiss()" translate="close"></button>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<h2>Delete All</h2>
|
<h2 translate="delete all"></h2>
|
||||||
<p style="text-align:center;">Are you sure?</p>
|
<p style="text-align:center;" translate="PHRASE_CONFIRMATION"></p>
|
||||||
<button class="l" ng-click="deleteAll()">Yes</button>
|
<button class="l cap" ng-click="deleteAll()" translate="yes"></button>
|
||||||
<button class="r" ng-click="dismiss()">No</button>
|
<button class="r cap" ng-click="dismiss()" translate="no"></button>
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
<h2 ng-bind="title"></h2>
|
<h2 ng-bind="title | translate"></h2>
|
||||||
|
<div ng-if="description" ng-bind="description | translate"></div>
|
||||||
<div>
|
<div>
|
||||||
<textarea class="cb json" ng-click="onTextClick($event)" ng-bind="export"></textarea>
|
<textarea class="cb json" ng-click="onTextClick($event)" ng-bind="export"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<button class="r dismiss" ng-click="dismiss()">Close</button>
|
<button class="r dismiss cap" ng-click="dismiss()" translate="close"></button>
|
||||||
@@ -1,26 +1,46 @@
|
|||||||
<h2>Import</h2>
|
<h2 translate="import"></h2>
|
||||||
<div ng-show="!processed">
|
<div ng-show="!processed">
|
||||||
<textarea class="cb json" ng-model="importData" ng-change="validateJson()" placeholder="Paste JSON Here"></textarea>
|
<textarea class="cb json" ng-model="importString" ng-change="validateImport()" placeholder="{{'PHRASE_IMPORT' | translate}}"></textarea>
|
||||||
<button class="l" ng-click="process()" ng-disabled="!jsonValid">Proceed</button>
|
<button class="l cap" ng-click="process()" ng-disabled="!importValid" translate="proceed"></button>
|
||||||
<div class="l warning" style="margin-left:3em;">{{errorMsg}}</div>
|
<div class="l warning" style="margin-left:3em;">{{errorMsg}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-show="processed">
|
<div ng-show="processed">
|
||||||
<table class="l" style="overflow:hidden;margin: 1em 0;">
|
<table class="l" style="overflow:hidden;margin: 1em 0; width: 100%;">
|
||||||
<thead><tr><th>Ship</th><th>Build Name</th><th>Action</th></tr></thead>
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="text-align:left" translate="ship"></th>
|
||||||
|
<th style="text-align:left" translate="build name"></th>
|
||||||
|
<th translate="action"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
<tbody ng-repeat="(shipId,shipBuilds) in builds">
|
<tbody ng-repeat="(shipId,shipBuilds) in builds">
|
||||||
<tr class="cb" ng-repeat="(buildName, b) in shipBuilds">
|
<tr class="cb" ng-repeat="(buildName, b) in shipBuilds">
|
||||||
<td>{{ships[shipId].properties.name}}</td>
|
<td>{{ships[shipId].properties.name}}</td>
|
||||||
<td><input type="text" ng-model="b.useName"/></td>
|
<td><input type="text" ng-model="b.useName"/></td>
|
||||||
<td ng-class="{warning: hasBuild(shipId, b.useName) == true, disabled: b.useName == ''}">
|
<td style="text-align:center" ng-class="{warning: hasBuild(shipId, b.useName) == true, disabled: b.useName == ''}">
|
||||||
<span ng-show="b.useName">{{ hasBuild(shipId, b.useName)? 'Overwrite' : 'Create' }}</span>
|
<span ng-show="b.useName" translate="{{ hasBuild(shipId, b.useName)? 'overwrite' : 'create' }}"></span>
|
||||||
<span ng-show="b.useName == ''">Skip</span>
|
<span ng-show="b.useName == ''" translate="skip"></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<button class="cl l" ng-click="import()"><svg class="icon"><use xlink:href="#download"></use></svg> Import</button>
|
|
||||||
<button class="l" style="margin-left: 2em;" ng-click="processed = false" ng-show="canEdit">Edit JSON</button>
|
<table class="l" style="overflow:hidden;margin: 1em 0; width: 100%;" ng-if="comparisons">
|
||||||
|
<thead><tr><th style="text-align:left" translate="comparison"></th><th translate="action"></th></tr></thead>
|
||||||
|
<tbody>
|
||||||
|
<tr class="cb" ng-repeat="(name, comparison) in comparisons">
|
||||||
|
<td><input type="text" ng-model="comparison.useName"/></td>
|
||||||
|
<td style="text-align:center" ng-class="{warning: hasComparison(comparison.useName) == true, disabled: comparison.useName == ''}">
|
||||||
|
<span ng-show="comparison.useName" translate="{{ hasComparison(comparison.useName)? 'overwrite' : 'create' }}"></span>
|
||||||
|
<span ng-show="comparison.useName == ''" translate="skip"></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<button class="cl l" ng-click="import()"><svg class="icon"><use xlink:href="#download"></use></svg> {{'import' | translate}}</button>
|
||||||
|
<button class="l cap" style="margin-left: 2em;" ng-click="processed = false" ng-show="canEdit" translate="edit data"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="r dismiss" ng-click="dismiss()">Cancel</button>
|
<button class="r dismiss cap" ng-click="dismiss()" translate="cancel"></button>
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
<h2>Permalink</h2>
|
<h2 translate="permalink"></h2>
|
||||||
<br>
|
<br>
|
||||||
<h3>URL</h3>
|
<h3 translate="URL"></h3>
|
||||||
<input ng-model="url" size="70" ng-click="onTextClick($event)">
|
<input ng-model="url" size="40" ng-click="onTextClick($event)">
|
||||||
<br><br>
|
<br><br>
|
||||||
<h3>Shortened</h3>
|
<h3 translate="shortened"></h3>
|
||||||
<input ng-model="shortenedUrl" size="25" ng-click="onTextClick($event)">
|
<input ng-model="shortenedUrl" size="25" ng-click="onTextClick($event)">
|
||||||
<br><br>
|
<br><br>
|
||||||
<button class="r dismiss" ng-click="dismiss()">Close</button>
|
<button class="r dismiss cap" ng-click="dismiss()" translate="close"></button>
|
||||||
|
|||||||
@@ -1,49 +1,57 @@
|
|||||||
|
|
||||||
<table id="comparison">
|
<table id="comparison">
|
||||||
<tr ng-show="compareMode">
|
<tr ng-show="compareMode">
|
||||||
<td class="head">Comparison</td>
|
<td class="head" translate="comparison"></td>
|
||||||
<td>
|
<td>
|
||||||
<input ng-model="name" ng-change="nameChange()" placeholder="Enter Comparison Name" maxlength="50" />
|
<input ng-model="name" ng-change="nameChange()" placeholder="{{'enter name' | translate}}" maxlength="50" />
|
||||||
</td>
|
<button ng-click="save()" ng-disabled="!name || name == 'all' || saved">
|
||||||
<td>
|
<svg class="icon lg "><use xlink:href="#floppy-disk"></use></svg><span class="button-lbl"> {{'save' | translate}}</span>
|
||||||
<button ng-click="save()" ng-disabled="!name || name == 'all' || saved"><svg class="icon lg "><use xlink:href="#floppy-disk"></use></svg> Save</button>
|
</button>
|
||||||
<button ng-click="delete()" ng-disabled="name == 'all' || !saved"><svg class="icon lg warning "><use xlink:href="#bin"></use></svg></button>
|
<button ng-click="delete()" ng-disabled="name == 'all' || !saved"><svg class="icon lg warning "><use xlink:href="#bin"></use></svg></button>
|
||||||
<button ng-click="selectBuilds(true, $event)"><svg class="icon lg "><use xlink:href="#rocket"></use></svg> Builds</button>
|
<button ng-click="selectBuilds(true, $event)">
|
||||||
<button class="r" ng-click="permalink($event)" ng-disabled="builds.length == 0"><svg class="icon lg "><use xlink:href="#link"></use></svg> Permalink</button>
|
<svg class="icon lg "><use xlink:href="#rocket"></use></svg><span class="button-lbl"> {{'builds' | translate}}</span>
|
||||||
<button class="r" ng-click="embed($event)" ng-disabled="builds.length == 0"><svg class="icon lg "><use xlink:href="#embed"></use></svg> Forum</button>
|
</button>
|
||||||
|
<button class="r" ng-click="permalink($event)" ng-disabled="builds.length == 0">
|
||||||
|
<svg class="icon lg "><use xlink:href="#link"></use></svg><span class="button-lbl"> {{'permalink' | translate}}</span>
|
||||||
|
</button>
|
||||||
|
<button class="r" ng-click="embed($event)" ng-disabled="builds.length == 0">
|
||||||
|
<svg class="icon lg "><use xlink:href="#embed"></use></svg><span class="button-lbl"> {{'forum' | translate}}</span>
|
||||||
|
</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-show="!compareMode">
|
<tr ng-show="!compareMode">
|
||||||
<td class="head">Comparison</td>
|
<td class="head" translate="comparison"></td>
|
||||||
<td colspan="2">
|
<td>
|
||||||
<h3 ng-bind="name"></h3>
|
<h3 ng-bind="name"></h3>
|
||||||
<button class="r" ui-sref="modal.import({obj:importObj})"><svg class="icon lg "><use xlink:href="#download"></use></svg> Import Builds</button>
|
<button class="r" ui-sref="modal.import({obj:importObj})"><svg class="icon lg "><use xlink:href="#download"></use></svg> {{'import' | translate}}</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="head">Compare</td>
|
<td class="head" translate="compare"></td>
|
||||||
<td colspan="2">
|
<td>
|
||||||
<ul id="facet-container" as-sortable="facetSortOpts" ng-model="facets" class="sortable" update="tblUpdate">
|
<ul id="facet-container" as-sortable="facetSortOpts" ng-model="facets" class="sortable" update="tblUpdate">
|
||||||
<li ng-repeat="(i,f) in facets" as-sortable-item class="facet" ng-class="{active: f.active}" ng-click="toggleFacet(i)">
|
<li ng-repeat="(i,f) in facets" as-sortable-item class="facet" ng-class="{active: f.active}" ng-click="toggleFacet(i)">
|
||||||
<div as-sortable-item-handle><span ng-bind="f.title"></span></div>
|
<div as-sortable-item-handle>↔ <span ng-bind="f.title | translate"></span></div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table id="comp-tbl" comparison-table ng-click="handleClick($event)"></table>
|
<div class="scroll-x">
|
||||||
|
<table id="comp-tbl" comparison-table ng-click="handleClick($event)"></table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div ng-repeat="f in facets | filter:{active:true}" ng-if="builds.length > 0" class="chart" bar-chart width="480" facet="f" data="builds">
|
<div ng-repeat="f in facets | filter:{active:true}" ng-if="builds.length > 0" class="chart" bar-chart facet="f" data="builds">
|
||||||
<h3 ng-click="sort(f.props[0])" >{{f.title}}</h3>
|
<h3 ng-click="sort(f.props[0])" >{{f.title | translate}}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-bg" ng-show="showBuilds" ng-click="selectBuilds(false, $event)">
|
<div class="modal-bg" ng-show="showBuilds" ng-click="selectBuilds(false, $event)">
|
||||||
<div class="modal" ui-view="modal-content" ng-click="$event.stopPropagation()">
|
<div class="modal" ui-view="modal-content" ng-click="$event.stopPropagation()">
|
||||||
<h3>Select Builds to Compare</h3>
|
<h3 translate="PHRASE_SELECT_BUILDS"></h3>
|
||||||
<div id="build-select">
|
<div id="build-select">
|
||||||
<table>
|
<table>
|
||||||
<thead><tr><th colspan="2">Available</th></tr></thead>
|
<thead><tr><th colspan="2" translate="available"></th></tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat="b in unusedBuilds | orderBy:'name'" ng-click="addBuild(b.id, b.buildName)">
|
<tr ng-repeat="b in unusedBuilds | orderBy:'name'" ng-click="addBuild(b.id, b.buildName)">
|
||||||
<td class="tl" ng-bind="b.name"></td><td class="tl" ng-bind="b.buildName"></td>
|
<td class="tl" ng-bind="b.name"></td><td class="tl" ng-bind="b.buildName"></td>
|
||||||
@@ -52,14 +60,15 @@
|
|||||||
</table>
|
</table>
|
||||||
<h1>⇆</h1>
|
<h1>⇆</h1>
|
||||||
<table>
|
<table>
|
||||||
|
<thead><tr><th colspan="2" translate="added"></th></tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<thead><tr><th colspan="2">Added</th></tr></thead>
|
|
||||||
<tr ng-repeat="b in builds | orderBy:'name'" ng-click="removeBuild(b.id, b.buildName)">
|
<tr ng-repeat="b in builds | orderBy:'name'" ng-click="removeBuild(b.id, b.buildName)">
|
||||||
<td class="tl" ng-bind="b.name"></td><td class="tl" ng-bind="b.buildName"></td>
|
<td class="tl" ng-bind="b.name"></td><td class="tl" ng-bind="b.buildName"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<button class="r dismiss" ng-click="selectBuilds(false, $event)">Done</button>
|
<br>
|
||||||
|
<button class="r dismiss cap" ng-click="selectBuilds(false, $event)" translate="done"></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||