Explorer

html-ui.home-tools

description
(en) The forms of the home page of the editable html-ui: create a project, receive from and send to the public server
type
Fn(language: String) -> List<@html.node>
expression
fn(language$990) =>
  @html.concat(
    lists: [
      [
        @html.element(
          name: "h2",
          attributes: [],
          children: [
            @html.text(
              text: @html-ui.text(language: $990, en: "Create a project", ja: "プロジェクトを作る", eo: "Krei projekton")
            )
          ]
        )
      ],
      @html-ui.tool-form(
        tool: "definy_create_project",
        then: "/p/{project}/main",
        confirm: "",
        fields: [
          @html.element(
            name: "input",
            attributes: [
              {name: "name", value: "project"},
              {
                name: "placeholder",
                value: @html-ui.text(language: $990, en: "Project name", ja: "プロジェクトの名前", eo: "Nomo de la projekto")
              },
              {name: "required", value: ""}
            ],
            children: []
          ),
          @html.text(text: " "),
          @html.element(
            name: "input",
            attributes: [
              {name: "name", value: "description"},
              {
                name: "placeholder",
                value: @html-ui.text(
                  language: $990,
                  en: "English description (optional)",
                  ja: "英語の説明 (省略可)",
                  eo: "Angla priskribo (nedeviga)"
                )
              }
            ],
            children: []
          )
        ],
        button: @html-ui.text(language: $990, en: "Create", ja: "作る", eo: "Krei")
      ),
      [
        @html.element(
          name: "h2",
          attributes: [],
          children: [
            @html.text(text: @html-ui.text(language: $990, en: "Secrets", ja: "シークレット", eo: "Sekretoj"))
          ]
        ),
        @html.element(
          name: "p",
          attributes: [],
          children: @html-ui.text-nodes(
            language: $990,
            en: [
              @html.text(text: "Values such as API tokens used by programs that do I/O (wasi.io) are listed in "),
              @html.element(
                name: "a",
                attributes: [{name: "href", value: "/secrets"}],
                children: [@html.text(text: "Secrets")]
              ),
              @html.text(text: ". Enter a value on the page of the secret part.")
            ],
            ja: [
              @html.text(text: "I/O をするプログラム (wasi.io) が使う API トークンなどの値は "),
              @html.element(
                name: "a",
                attributes: [{name: "href", value: "/secrets"}],
                children: [@html.text(text: "シークレット")]
              ),
              @html.text(text: " で見られます。値はシークレットのパーツのページで入れます。")
            ],
            eo: [
              @html.text(
                text: "Valoroj kiel API-ĵetonoj uzataj de programoj kun enigo/eligo (wasi.io) estas listigitaj en "
              ),
              @html.element(
                name: "a",
                attributes: [{name: "href", value: "/secrets"}],
                children: [@html.text(text: "Sekretoj")]
              ),
              @html.text(text: ". Enigu valoron en la paĝo de la sekreta parto.")
            ]
          )
        ),
        @html.element(
          name: "h2",
          attributes: [],
          children: [
            @html.text(
              text: @html-ui.text(
                language: $990,
                en: "Sync with the public server",
                ja: "公開サーバーと同期",
                eo: "Sinkronigi kun la publika servilo"
              )
            )
          ]
        ),
        @html.element(
          name: "p",
          attributes: [],
          children: [
            @html.text(
              text: @html-ui.text(
                language: $990,
                en: "The other side is https://definy-html-narumincho.fly.dev. Receive takes in its events, and send sends the events of the key of this server.",
                ja: "相手は https://definy-html-narumincho.fly.dev 。受信は相手のイベントを取り込み, 送信はこのサーバーの鍵のイベントを送ります。",
                eo: "La alia flanko estas https://definy-html-narumincho.fly.dev. Ricevi prenas ĝiajn eventojn, kaj sendi sendas la eventojn de la ŝlosilo de ĉi tiu servilo."
              )
            )
          ]
        )
      ],
      @html-ui.tool-form(
        tool: "definy_receive",
        then: "",
        confirm: "",
        fields: [@html-ui.hidden(name: "remote", value: @html-ui.public-server-url)],
        button: @html-ui.text(language: $990, en: "Receive", ja: "受信", eo: "Ricevi")
      ),
      @html-ui.tool-form(
        tool: "definy_send",
        then: "",
        confirm: @html-ui.text(
          language: $990,
          en: "Send to the public server?",
          ja: "公開サーバーに送りますか?",
          eo: "Ĉu sendi al la publika servilo?"
        ),
        fields: [@html-ui.hidden(name: "remote", value: @html-ui.public-server-url)],
        button: @html-ui.text(language: $990, en: "Send", ja: "送信", eo: "Sendi")
      )
    ]
  )
visibility
public
html-ui.home-tools (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: RpQSXGe1Qh6OFSFaKoZ90tYJwhARV51ojKi05SEswps
content hash: IsAIhoUQwlWQINBTvDAWZb1_VN0lVYKP_hueHoskt24