diff options
Diffstat (limited to 'applications/luci-app-pagekitec')
6 files changed, 160 insertions, 0 deletions
diff --git a/applications/luci-app-pagekitec/Makefile b/applications/luci-app-pagekitec/Makefile new file mode 100644 index 0000000000..d875009772 --- /dev/null +++ b/applications/luci-app-pagekitec/Makefile @@ -0,0 +1,16 @@ +# +# Copyright (C) 2018 Karl Palsson <karlp@tweak.net.au> +# +# This is free software, licensed under the Apache License, Version 2.0 . +# + +include $(TOPDIR)/rules.mk + +LUCI_TITLE:=LuCI Support for PageKite +LUCI_DEPENDS:=+pagekitec + +PKG_MAINTAINER:=Karl Palsson <karlp@tweak.net.au> + +include ../../luci.mk + +# call BuildPackage - OpenWrt buildroot signature diff --git a/applications/luci-app-pagekitec/luasrc/controller/pagekitec.lua b/applications/luci-app-pagekitec/luasrc/controller/pagekitec.lua new file mode 100644 index 0000000000..938356be64 --- /dev/null +++ b/applications/luci-app-pagekitec/luasrc/controller/pagekitec.lua @@ -0,0 +1,8 @@ +-- Copyright 2018 Karl Palsson <karlp@tweak.net.au> +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.pagekitec", package.seeall) + +function index() + entry({"admin", "services", "pagekitec"}, cbi("pagekitec"), _("PageKite")) +end diff --git a/applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua b/applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua new file mode 100644 index 0000000000..1abd3f79d5 --- /dev/null +++ b/applications/luci-app-pagekitec/luasrc/model/cbi/pagekitec.lua @@ -0,0 +1,26 @@ +m = Map("pagekitec", translate("PageKite"), + translate([[ +<p/>Note: you need a working PageKite account, or at least, your own running front end for this form to work. +Visit <a href="https://pagekite.net/home/">your account</a> to set up a name for your +router and get a secret key for the connection. +<p/><em>Note: this web configurator only supports +some very very basic uses of pagekite.</em> +]])) + +s = m:section(TypedSection, "pagekitec", translate("PageKite")) +s.anonymous = true + +p = s:option(Value, "kitename", translate("Kite Name")) +p = s:option(Value, "kitesecret", translate("Kite Secret")) +p.password = true +p = s:option(Flag, "static", translate("Static Setup"), + translate([[Static setup, disable FE failover and DDNS updates, set this if you are running your + own frontend without a pagekite.me account]])) + +p = s:option(Flag, "simple_http", translate("Basic HTTP"), + translate([[Enable a tunnel to the local HTTP server (in most cases, this admin +site)]])) +p = s:option(Flag, "simple_ssh", translate("Basic SSH"), + translate([[Enable a tunnel to the local SSH server]])) + +return m diff --git a/applications/luci-app-pagekitec/po/ja/pagekitec.po b/applications/luci-app-pagekitec/po/ja/pagekitec.po new file mode 100644 index 0000000000..c303f58289 --- /dev/null +++ b/applications/luci-app-pagekitec/po/ja/pagekitec.po @@ -0,0 +1,59 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Project-Id-Version: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.7\n" +"Last-Translator: INAGAKI Hiroshi <musashino.open@gmail.com>\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"Language: ja\n" + +msgid "" +"<p/>Note: you need a working PageKite account, or at least, your own running " +"front end for this form to work. Visit <a href=\"https://pagekite.net/home/" +"\">your account</a> to set up a name for your router and get a secret key " +"for the connection. <p/><em>Note: this web configurator only supports some " +"very very basic uses of pagekite.</em>" +msgstr "" +"<p/>注意: 動作には PageKite アカウント、もしくは少なくともこのフォーム用の実" +"行中のフロントエンドが必要です。ルーター用の名前をセットアップするには<a " +"href=\"https://pagekite.net/home/\">アカウント</a>へアクセスし、接続用のシー" +"クレット キーを取得します。<p/><em>注意: この Web 設定は、PageKite の非常に簡" +"易な使用のみサポートしています。</em>" + +msgid "Basic HTTP" +msgstr "ベーシック HTTP" + +msgid "Basic SSH" +msgstr "ベーシック SSH" + +msgid "" +"Enable a tunnel to the local HTTP server (in most cases, this admin site)" +msgstr "ローカル HTTP サーバーへのトンネルを有効化(通常、この管理サイト)" + +msgid "Enable a tunnel to the local SSH server" +msgstr "ローカル SSH サーバーへのトンネルを有効化" + +msgid "Kite Name" +msgstr "Kite 名" + +msgid "Kite Secret" +msgstr "Kite シークレット" + +msgid "PageKite" +msgstr "PageKite" + +msgid "Static Setup" +msgstr "静的セットアップ" + +msgid "" +"Static setup, disable FE failover and DDNS updates, set this if you are " +"running your own frontend without a pagekite.me account" +msgstr "" +"静的セットアップは、 FE フェイルオーバーと DDNS アップデートを無効にします。" +"もし pagekite.me アカウント無しにフロントエンドを実行している場合、これを設定" +"します。" diff --git a/applications/luci-app-pagekitec/po/templates/pagekitec.pot b/applications/luci-app-pagekitec/po/templates/pagekitec.pot new file mode 100644 index 0000000000..3b76ee60fd --- /dev/null +++ b/applications/luci-app-pagekitec/po/templates/pagekitec.pot @@ -0,0 +1,40 @@ +msgid "" +msgstr "Content-Type: text/plain; charset=UTF-8" + +msgid "" +"<p/>Note: you need a working PageKite account, or at least, your own running " +"front end for this form to work. Visit <a href=\"https://pagekite.net/home/" +"\">your account</a> to set up a name for your router and get a secret key " +"for the connection. <p/><em>Note: this web configurator only supports some " +"very very basic uses of pagekite.</em>" +msgstr "" + +msgid "Basic HTTP" +msgstr "" + +msgid "Basic SSH" +msgstr "" + +msgid "" +"Enable a tunnel to the local HTTP server (in most cases, this admin site)" +msgstr "" + +msgid "Enable a tunnel to the local SSH server" +msgstr "" + +msgid "Kite Name" +msgstr "" + +msgid "Kite Secret" +msgstr "" + +msgid "PageKite" +msgstr "" + +msgid "Static Setup" +msgstr "" + +msgid "" +"Static setup, disable FE failover and DDNS updates, set this if you are " +"running your own frontend without a pagekite.me account" +msgstr "" diff --git a/applications/luci-app-pagekitec/root/etc/uci-defaults/40_luci-pagekitec b/applications/luci-app-pagekitec/root/etc/uci-defaults/40_luci-pagekitec new file mode 100755 index 0000000000..95d7e9ec8f --- /dev/null +++ b/applications/luci-app-pagekitec/root/etc/uci-defaults/40_luci-pagekitec @@ -0,0 +1,11 @@ +#!/bin/sh + +uci -q batch <<-EOF >/dev/null + delete ucitrack.@pagekitec[-1] + add ucitrack pagekitec + set ucitrack.@pagekitec[-1].init=pagekitec + commit ucitrack +EOF + +rm -f /tmp/luci-indexcache +exit 0 |