Skip to content

Commit

Permalink
Self-host high-version of some assets
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroHc committed Feb 13, 2017
1 parent 8870d95 commit 6f68467
Show file tree
Hide file tree
Showing 46 changed files with 40 additions and 35 deletions.
Binary file added src/assets/img/avatar/1-bc54262faa435b63.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/10-dd6d56bc7686aeb6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/11-a693f1b1a7103d5f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/12-6627995d3090c8bd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/15-9f48af96ebbecc3d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/19-34981cea53f465d9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/2-35d8889c06baa039.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/6-3b464ff64c2bd151.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/62-22cb1caff72c8df2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/63-6fe68c1ddabdb628.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/7-fbb20faad27dc3d5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/avatar/9-dffa3ff5431cea78.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/1-c8fa579bddd2fcd5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/10-08b993876cef7584.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/11-14ef3a4fc4ee9107.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/12-6901877cdefa6564.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/14-3c47ab950d8d4ac0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/15-bfb519e862a6c5c5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/17-d7cb3a0c9a4f3b1b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/2-7e39b3f5947b50be.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/29-70ec36c282363469.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/3-5a487dc2b5742d3d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/30-e9630ede46551912.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/31-2f5207a31e66fa53.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/36-83686cd7148d751c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/emotion/4-55f4bf0e89eb42cb.png
Binary file added src/assets/img/emotion/5-a0197b43ebdd242c.png
Binary file added src/assets/img/emotion/6-3eaf31f49ef10daf.png
Binary file added src/assets/img/emotion/7-7e3731fcde612da3.png
Binary file added src/assets/img/emotion/702-0984f335ae935183.png
Binary file added src/assets/img/emotion/705-81f609f8e74bd734.png
Binary file added src/assets/img/emotion/77-d3ca72ef3e2ea54e.png
Binary file added src/assets/img/emotion/8-0f830c80a70bc366.png
Binary file added src/assets/img/emotion/9-3079f94c4e567843.png
Binary file added src/assets/img/scene/1-938f8d285289b68b.jpg
Binary file added src/assets/img/scene/2-98976cf117e7835f.jpg
Binary file added src/assets/img/scene/3-030e3bada6b6436a.jpg
Binary file added src/assets/img/scene/4-58fb29de83d23557.jpg
Binary file added src/assets/img/scene/5-cf5cfca0a87e77a6.jpg
Binary file added src/assets/img/scene/6-78b327b40089e33d.jpg
23 changes: 12 additions & 11 deletions src/assets/js/conf.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CONFIG =
'use_sucrette': 'Usar Ficheiro'
'title': 'My Candy Love Editor'
'description': 'Amor Doce cenas editor.'
'welcome': 'Bem-vindo ao editor não oficial do Amor Doce! Uma ferramenta criada com Amor por <a href="https://tumblr.com/follow/lucasmciruzzi">Lucas</a> e <a href="https://tumblr.com/follow/myasaberhagen">Mya</a>. Esperemos que você se divirta! Você pode publicar as suas criações em <a href="https://tumblr.com/tagged/mcleditor">#mcleditor</a>.'
'welcome': 'Bem-vindo ao editor não oficial do Amor Doce! Uma ferramenta criada com Amor por <a href="https://tumblr.com/follow/lucasmciruzzi" target="_blank">Lucas</a> e <a href="https://tumblr.com/follow/myasaberhagen" target="_blank">Mya</a>. Esperemos que você se divirta! Você pode publicar as suas criações em <a href="https://tumblr.com/tagged/mcleditor">#mcleditor</a>.'
'account': 'Conta'
'region': 'Região'
'username': 'Nome'
Expand All @@ -18,7 +18,7 @@ CONFIG =
'characters': 'Personagens'
'avatar': 'Avatar'
'character': 'Caráter'
'legal': 'Todas as imagens pertencem a <a href="//beemoov.com">Beemoov</a> e <a href="//chinomiko.com">ChinoMiko</a>'
'legal': 'Todas as imagens pertencem a <a href="//beemoov.com" target="_blank">Beemoov</a> e <a href="//chinomiko.com" target="_blank">ChinoMiko</a>'
'view_result': 'Ver resultado'
'regions': [
{ 'id': 'br', 'name': 'Brazil — amordoce.com' }
Expand Down Expand Up @@ -1010,16 +1010,17 @@ CONFIG =
}
]
'avatars': [
{ 'name': 'Nathaniel', 'id': '1', 'checksum': '' }
{ 'name': 'Nathaniel', 'id': '1', 'checksum': 'bc54262faa435b63' }
{ 'name': 'Castiel', 'id': '2', 'checksum': '35d8889c06baa039' }
{ 'name': 'Ken', 'id': '6', 'checksum': '3b464ff64c2bd151' }
{ 'name': 'Diretora', 'id': '7', 'checksum': '' }
{ 'name': 'Amber', 'id': '10', 'checksum': '' }
{ 'name': 'Iris', 'id': '11', 'checksum': '' }
{ 'name': 'ChiNoMiko', 'id': '12', 'checksum': '' }
{ 'name': 'Boris', 'id': '15', 'checksum': '' }
{ 'name': 'Diretora', 'id': '7', 'checksum': 'fbb20faad27dc3d5' }
{ 'name': 'Agatha', 'id': '9', 'checksum': 'dffa3ff5431cea78' }
{ 'name': 'Amber', 'id': '10', 'checksum': 'dd6d56bc7686aeb6' }
{ 'name': 'Iris', 'id': '11', 'checksum': 'a693f1b1a7103d5f' }
{ 'name': 'ChiNoMiko', 'id': '12', 'checksum': '6627995d3090c8bd' }
{ 'name': 'Boris', 'id': '15', 'checksum': '9f48af96ebbecc3d' }
{ 'name': 'Jade', 'id': '18', 'checksum': '' }
{ 'name': 'Dajan', 'id': '19', 'checksum': '' }
{ 'name': 'Dajan', 'id': '19', 'checksum': '34981cea53f465d9' }
{ 'name': 'Prof. Faraize', 'id': '20', 'checksum': '' }
{ 'name': 'Rosalya', 'id': '22', 'checksum': '' }
{ 'name': 'Rosalya (Antiga)', 'id': '22_old', 'checksum': '' }
Expand Down Expand Up @@ -1055,8 +1056,8 @@ CONFIG =
{ 'name': 'Patrick', 'id': '58', 'checksum': '' }
{ 'name': 'Cupido', 'id': '59', 'checksum': '' }
{ 'name': 'Mãe de Docete', 'id': '60', 'checksum': '' }
{ 'name': 'Charlotte', 'id': '62', 'checksum': '' }
{ 'name': 'Li', 'id': '63', 'checksum': '' }
{ 'name': 'Charlotte', 'id': '62', 'checksum': '22cb1caff72c8df2' }
{ 'name': 'Li', 'id': '63', 'checksum': '6fe68c1ddabdb628' }
{ 'name': 'Pai de Nathaniel e Ambre','id': '64', 'checksum': '' }
{ 'name': 'Mãe de Nathaniel e Ambre','id': '65', 'checksum': '' }
{ 'name': 'Pai de Castiel', 'id': '66', 'checksum': '' }
Expand Down
26 changes: 15 additions & 11 deletions src/assets/js/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CONFIG = {
'use_sucrette': 'Usar Ficheiro',
'title': 'My Candy Love Editor',
'description': 'Amor Doce cenas editor.',
'welcome': 'Bem-vindo ao editor não oficial do Amor Doce! Uma ferramenta criada com Amor por <a href="https://tumblr.com/follow/lucasmciruzzi">Lucas</a> e <a href="https://tumblr.com/follow/myasaberhagen">Mya</a>. Esperemos que você se divirta! Você pode publicar as suas criações em <a href="https://tumblr.com/tagged/mcleditor">#mcleditor</a>.',
'welcome': 'Bem-vindo ao editor não oficial do Amor Doce! Uma ferramenta criada com Amor por <a href="https://tumblr.com/follow/lucasmciruzzi" target="_blank">Lucas</a> e <a href="https://tumblr.com/follow/myasaberhagen" target="_blank">Mya</a>. Esperemos que você se divirta! Você pode publicar as suas criações em <a href="https://tumblr.com/tagged/mcleditor">#mcleditor</a>.',
'account': 'Conta',
'region': 'Região',
'username': 'Nome',
Expand All @@ -20,7 +20,7 @@ CONFIG = {
'characters': 'Personagens',
'avatar': 'Avatar',
'character': 'Caráter',
'legal': 'Todas as imagens pertencem a <a href="//beemoov.com">Beemoov</a> e <a href="//chinomiko.com">ChinoMiko</a>',
'legal': 'Todas as imagens pertencem a <a href="//beemoov.com" target="_blank">Beemoov</a> e <a href="//chinomiko.com" target="_blank">ChinoMiko</a>',
'view_result': 'Ver resultado',
'regions': [
{
Expand Down Expand Up @@ -2991,7 +2991,7 @@ CONFIG = {
{
'name': 'Nathaniel',
'id': '1',
'checksum': ''
'checksum': 'bc54262faa435b63'
}, {
'name': 'Castiel',
'id': '2',
Expand All @@ -3003,31 +3003,35 @@ CONFIG = {
}, {
'name': 'Diretora',
'id': '7',
'checksum': ''
'checksum': 'fbb20faad27dc3d5'
}, {
'name': 'Agatha',
'id': '9',
'checksum': 'dffa3ff5431cea78'
}, {
'name': 'Amber',
'id': '10',
'checksum': ''
'checksum': 'dd6d56bc7686aeb6'
}, {
'name': 'Iris',
'id': '11',
'checksum': ''
'checksum': 'a693f1b1a7103d5f'
}, {
'name': 'ChiNoMiko',
'id': '12',
'checksum': ''
'checksum': '6627995d3090c8bd'
}, {
'name': 'Boris',
'id': '15',
'checksum': ''
'checksum': '9f48af96ebbecc3d'
}, {
'name': 'Jade',
'id': '18',
'checksum': ''
}, {
'name': 'Dajan',
'id': '19',
'checksum': ''
'checksum': '34981cea53f465d9'
}, {
'name': 'Prof. Faraize',
'id': '20',
Expand Down Expand Up @@ -3171,11 +3175,11 @@ CONFIG = {
}, {
'name': 'Charlotte',
'id': '62',
'checksum': ''
'checksum': '22cb1caff72c8df2'
}, {
'name': 'Li',
'id': '63',
'checksum': ''
'checksum': '6fe68c1ddabdb628'
}, {
'name': 'Pai de Nathaniel e Ambre',
'id': '64',
Expand Down
16 changes: 8 additions & 8 deletions src/assets/js/editor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ load_from_file = (file_in, img_out, bg_out) ->
render = Mustache.render(querySelector('body').innerHTML, CONFIG)
site = 'http://assets.amordoce.com/'
assets =
body: 'assets/img/unknown_body.png' # Original: http://avatars.amordoce.com/full/d.png
face: 'assets/img/unknown_face.png' # Original: http://avatars.amordoce.com/face/d.png
body: 'assets/img/unknown_body.png' # Web: http://avatars.amordoce.com/full/d.png
face: 'assets/img/unknown_face.png' # Web: http://avatars.amordoce.com/face/d.png
sites =
br: 'amordoce.com'
de: 'sweetamoris.de'
Expand Down Expand Up @@ -247,8 +247,8 @@ load_from_file = (file_in, img_out, bg_out) ->
target.src = ''
variation = emotion.variations[@value]
if variation.checksum
target.src = site + 'emotion/web/high/' + variation.id + '-' + variation.checksum + '.png'
else # Local hosting
target.src = 'assets/img/emotion/' + variation.id + '-' + variation.checksum + '.png' # Web: site + 'emotion/web/high/id-checksum.png'
else
target.src = 'assets/img/emotion/' + variation.id + '.png'

target.style.height = '92.24138%'
Expand All @@ -267,8 +267,8 @@ load_from_file = (file_in, img_out, bg_out) ->
target = querySelector(@dataset.target)
variation = scene.variations[@value]
if variation.checksum
target.style.backgroundImage = 'url(' + site + 'place/web/high/' + variation.id + '-' + variation.checksum + '.jpg)'
else # Local hosting
target.style.backgroundImage = 'url(assets/img/scene/' + variation.id + '-' + variation.checksum + '.jpg)' # Web: site + 'place/web/high/id-checksum.jpg'
else
target.style.backgroundImage = 'url(assets/img/scene/' + variation.id + '.jpg)'

loveometer_level = ->
Expand Down Expand Up @@ -339,8 +339,8 @@ load_from_file = (file_in, img_out, bg_out) ->
return

if avatar.checksum
el.src = site + 'npc/web/thumbnail/' + avatar.id + '-' + avatar.checksum + '.png'
else # Local hosting
el.src = 'assets/img/avatar/' + avatar.id + '-' + avatar.checksum + '.png' # Web: http://assets.amordoce.com/npc/web/thumbnail/id-checksum.png
else
el.src = 'assets/img/avatar/' + avatar.id + '.png'
el.style.bottom = '0'
return
Expand Down
6 changes: 3 additions & 3 deletions src/assets/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ load_from_file = function(file_in, img_out, bg_out) {
target.src = '';
variation = emotion.variations[this.value];
if (variation.checksum) {
target.src = site + 'emotion/web/high/' + variation.id + '-' + variation.checksum + '.png';
target.src = 'assets/img/emotion/' + variation.id + '-' + variation.checksum + '.png';
} else {
target.src = 'assets/img/emotion/' + variation.id + '.png';
}
Expand All @@ -296,7 +296,7 @@ load_from_file = function(file_in, img_out, bg_out) {
target = querySelector(this.dataset.target);
variation = scene.variations[this.value];
if (variation.checksum) {
return target.style.backgroundImage = 'url(' + site + 'place/web/high/' + variation.id + '-' + variation.checksum + '.jpg)';
return target.style.backgroundImage = 'url(assets/img/scene/' + variation.id + '-' + variation.checksum + '.jpg)';
} else {
return target.style.backgroundImage = 'url(assets/img/scene/' + variation.id + '.jpg)';
}
Expand Down Expand Up @@ -376,7 +376,7 @@ load_from_file = function(file_in, img_out, bg_out) {
return;
}
if (avatar.checksum) {
el.src = site + 'npc/web/thumbnail/' + avatar.id + '-' + avatar.checksum + '.png';
el.src = 'assets/img/avatar/' + avatar.id + '-' + avatar.checksum + '.png';
} else {
el.src = 'assets/img/avatar/' + avatar.id + '.png';
}
Expand Down
Binary file added src/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<title>MCL Editor</title>
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="http://amordoce.com/favicon.ico">
<link rel="shortcut icon" href="favicon.ico">

<!-- CDN: https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css -->
<link rel="stylesheet" href="assets/css/libs/materialize.min.css">
Expand Down Expand Up @@ -183,7 +183,7 @@
<ul class="responses"></ul>
</div>
<div class="player" style="display:none">
<img class="player-avatar" src="http://avatars.amordoce.com/face/d.png" alt="Avatar do personagem">
<img class="player-avatar" src="assets/img/unknown_face.png" alt="Avatar do personagem">
</div>
</div>

Expand Down

0 comments on commit 6f68467

Please sign in to comment.