GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Aral Balkan (aral@mastodon.ar.al)'s status on Thursday, 30-Jan-2025 03:43:58 JSTAral BalkanAral Balkan
    in reply to

    Alt text for first screenshot continued here to due to arbitrary Mastodon character limit on alt text:

    Code lines shown are lines 90-128:

    class ImportProgress extends kitten.Component {
    importStarted = false
    importEnded = false
    message = 'Uploading…'
    /** @type {boolean|string} */
    error = false
    stats = {
    domainsFound: 0,
    domainsImported: 0,
    duplicatesIgnored: 0
    }

    html () {
    return kitten.html`
    <div id='import-status'>
    <if ${this.importStarted}>
    <if ${this.importEnded && !this.error}>
    <then>
    <markdown>
    #### Import complete!

    | Domains | |
    | -------------------- | ---------------------------------------- |
    | Found | ${this.stats.domainsFound} |
    | Imported | ${this.stats.domainsImported} |
    | Ignored (duplicates) | ${this.stats.duplicatesIgnored} |

    [View places](/settings/places/)
    </markdown>
    <style>
    table {
    table-layout: auto;
    }
    </style>
    </then>
    <else>
    <div><${SvgSpinner} /> ${this.message}</div>
    </else>
    </if>
    </if>
    <if ${this.error}>
    <div class='error'>❌ ${this.error}</div>
    </if>
    </div>
    `
    }

    onConnect () {
    this.addEventHandler(this.page.request.session, 'placesExportUploaded', /** @this {ImportProgress} */ async function (upload) {

    In conversationabout 4 months ago from mastodon.ar.alpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.