Procházet zdrojové kódy

Add web ui for lang=pt

nagadomi před 9 roky
rodič
revize
26d4179cfe
4 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 1 1
      assets/index.html
  2. 1 1
      assets/index.ja.html
  3. 1 1
      assets/index.ru.html
  4. 1 0
      web.lua

+ 1 - 1
assets/index.html

@@ -15,7 +15,7 @@
         <img class="github-banner-image" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png">
         <a class="github-banner-link" href="https://github.com/nagadomi/waifu2x" target="_blank"></a>
       </div>
-      <a href="index.html">en</a>/<a href="index.ja.html">ja</a>/<a href="index.ru.html">ru</a>
+      <a href="index.html">en</a>/<a href="index.ja.html">ja</a>/<a href="index.ru.html">ru</a>/<a href="index.pt.html">pt</a>
     </div>
     <div class="about">
       <div>Single-Image Super-Resolution for Anime-Style Art using Deep Convolutional Neural Networks. And it supports photo. <a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" target="_blank">about</a>.</div>

+ 1 - 1
assets/index.ja.html

@@ -15,7 +15,7 @@
         <img class="github-banner-image" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png">
         <a class="github-banner-link" href="https://github.com/nagadomi/waifu2x" target="_blank"></a>
       </div>
-      <a href="index.html">en</a>/<a href="index.ja.html">ja</a>/<a href="index.ru.html">ru</a>
+      <a href="index.html">en</a>/<a href="index.ja.html">ja</a>/<a href="index.ru.html">ru</a>/<a href="index.pt.html">pt</a>
     </div>
     <div class="about">
       <div>深層畳み込みニューラルネットワークによる二次元画像のための超解像システム. 写真にも対応. <a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" target="_blank">about</a>.</div>

+ 1 - 1
assets/index.ru.html

@@ -16,7 +16,7 @@
         <img class="github-banner-image" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png">
         <a class="github-banner-link" href="https://github.com/nagadomi/waifu2x" target="_blank"></a>
       </div>
-      <a href="index.html">en</a>/<a href="index.ja.html">ja</a>/<a href="index.ru.html">ru</a>
+      <a href="index.html">en</a>/<a href="index.ja.html">ja</a>/<a href="index.ru.html">ru</a>/<a href="index.pt.html">pt</a>
     </div>
     <div class="about">
       <div>Увеличение в 4 раза рисованных изображений, например, аниме или фан-арт, а также устранение шума (преимущественно артефактов сжатия JPEG), см. <a href="https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png" target="_blank">демонстрацию и сравнения</a></div>

+ 1 - 0
web.lua

@@ -286,6 +286,7 @@ local app = turbo.web.Application:new(
       {"^/index.html", turbo.web.StaticFileHandler, path.join(ROOT, "assets", "index.html")},
       {"^/index.ja.html", turbo.web.StaticFileHandler, path.join(ROOT, "assets", "index.ja.html")},
       {"^/index.ru.html", turbo.web.StaticFileHandler, path.join(ROOT, "assets", "index.ru.html")},
+      {"^/index.pt.html", turbo.web.StaticFileHandler, path.join(ROOT, "assets", "index.pt.html")},
       {"^/api$", APIHandler},
    }
 )