Skip to content
ℕ𝔸𝕊𝔸™ℕ𝕒𝕤𝕒𝕣𝕖™𝕊𝕡𝕒𝕔𝕖𝕏™ https://nasa.re/

Nasare™🚀

フレッシュ スペース & テクノロジー NEWS📢

  • About 𝒩𝒶𝓈𝒶𝓇𝑒™
  • SMART Tools
  • SMART AI
    • Kubeshark PCAP Export/Import
    • Coaching engineering managers to employ on organizational issues
    • Zelda: Hyperlink’s Awakening game engine documentation (2021)
    • Commercial Resupply Services-CRS
  • Show HN
    • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
    • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
    • 主な BGP 増加をレジデンス Windows デスクトップに追加する
    • ガジェットの複雑さが増し、余分な IP の再利用が促進される
    • 新しい GitHub CLI 拡張インストゥルメント
    • Kubernetes を 7,500 ノードにスケーリング (2021 年)
    • Wander アプリ用の軽量なオンザフリット構成ライブラリ
    • Ask HN
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Level to HN: A corpulent game of snake encoded in a url
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Show HN
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Android phones will at the moment obtain iPhone-love SOS satellite texting
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Level to HN: A corpulent game of snake encoded in a url
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Tag HN: Using Key-Value Retail outlets in Serverless Codehooks.io Applications
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Level to HN: A corpulent game of snake encoded in a url
    • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
    • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Speak HN: What sub $200 product improved HN readers’ 2022
    • Level to HN: An initiate source tool to generate Jet Engine compressors
    • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
    • Insist HN: Ov – characteristic smartly off terminal pager
    • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
    • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
    • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
    • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
  • A Computer virus and a Dilemma
    • OCIS – OwnCloud Countless Scale
    • A Princeton student built an app which is ready to detect if ChatGPT wrote an essay
    • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
    • Adobe’s Command material analysis can be using photos/videos to narrate AI w/o consent
    • Ultralearning a.k.a. how I learned to code
    • Automatic1111 is assist on GitHub after taking away Embedding Links
    • Where Your Sides Came From
    • What Is a Pig Butchering Rip-off?
    • Submit-processing is ruining iPhone photos
    • Clos Topologies and Centralized Retain a watch on in Google’s Datacenter Community
    • Miller Engineering DS-1 House Planetarium
    • Gimel Studio: Non-harmful, 2D image editor
  • Technology
    • Miller Engineering DS-1 House Planetarium
    • Apple Doctors: to construct it as a file it is advisable to electronic mail it to your self
    • The Air India passenger who urinated on a girl has been fired by Wells Fargo
    • The Filesystem Hierarchy Usual Comes to Guix Containers
    • Sooner than it sued Google for copying from Java, Oracle changed into as soon as copying IBM’s SQL (2020)
    • The i3-gaps mission has been merged with i3
    • Making an Alphorn from Scratch
    • Apple: Braille Individual Guides
    • MotherDuck Is a Original Thought
    • The class of CGI and simple make
    • Like a mercurial tour of DragonFly BSD 6.4?
    • computer science
    • AI
    • Artificial intelligence
    • Technology
    • Ai
    • Apple
    • digital
  • TOP HN
    • anti-Mastodon
    • TOP HN
      • Show HN
      • Ask HN
      • coding
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 新しい GitHub CLI 拡張インストゥルメント
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • Artificial intelligence
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • Technology
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Level to HN: A corpulent game of snake encoded in a url
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • 新しい GitHub CLI 拡張インストゥルメント
      • ロンドンで*ダウン*を継続的に見つめる: Pavement Oddities
      • 報酬 HN: C の 30 行でスピンロック
      • FAA の NOTAM とは何ですか? 航空専門家が機械の仕組みを説明
      • ナノGPT
      • 1 ビット LCD のグレースケール (2022)
      • The Muse (YC W12) は FP&A のシニア ディレクターを採用しています
      • Zen (YC S21) はグロース エンジニアを採用しています
      • Tall Inquire of (YC W21) が B2B 回顧録の幹部を採用
      • Actiondesk (YC S19) は、プロダクト ドレスメーカーを採用しています (4-6 か月の契約)
      • Oven (YC S19) は、Bun を作成するために C/C++ または Zig エンジニアを採用しています。
      • WInd3x, the iPod Bootrom exploit 10 years too unhurried
      • Sign HN: FASTA recordsdata を操作するための FUSE モジュール
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • Wage Development Continues to Gradual in the UK and Euro House
      • Stage Supervisor for the unimpressed: 1 Getting started
      • First public free up of Pushup: a brand unique compiler for making net apps in Trip
      • Fixing Cart-Pole Swingup with a Hierarchical Controller
      • Flight Testing the Touchdown Radar for Mars Science Laboratory 2011-06-21T17:36:36Z
      • Flightcontrol (YC W22) is hiring first Developer Recommend
      • Flying boats and other tech for cleaner shipping
      • Four Finalist Touchdown Location Candidates for Mars Science Laboratory 2008-11-19T16:21:01Z
      • France’s prized nuclear sector stalled in Europe’s hour of want
      • French startup unveils new residential thermo-acoustic warmth pump
      • FTC Cracks Down on Firms That Impose Contaminated Noncompete Restrictions
      • FTX’s Aged Prime Lawyer Aided US Authorities in Bankman-Fried Case
      • FY18 NASA lėšų šnypštimas 2017-05-22T00:00:00Z
      • G-3PO: A protocol droid for Ghidra, or GPT-3 for reverse-engineering
      • Gail.com FAQ
      • Gemini-Titan (GT)-6 – Gemini 6 of 7 – 지역 사진 – 외부 지역 1965-12-15T00:00:00Z
      • Geoffrey Hinton Publishes Original Deep Learning Algorithm
      • Germany warns: AI fingers flee already underway (2021)
      • Gimel Studio: Non-harmful, 2D image editor
      • GitHub Availability File
      • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
      • Google needs RISC-V to be a “tier-1” Android architecture
      • Google researcher, lengthy out of math, cracks devilish dispute about gadgets
      • Google start sourced CDC File Transfer from the ashes of Stadia
      • GRC-2003-C-02097 2004-05-01T00:00:00Z
      • GRC-2013-C-05246 2009-11-26T00:00:00Z
      • Hello world!
      • Highlights of Science Launching on SpaceX CRS-15 2018-06-24T00:00:00Z
      • Hilf Al-Fudul
      • HiOperator (YC S16) Is Hiring VP of Engineering
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • How kind I blueprint a pair of buttocks?
      • How will the haj switch as international temperatures upward thrust?
      • Human gene linked to bigger brains turned into as soon as born from apparently pointless DNA
      • Hundreds of scientists publish a paper every 5 days
      • In Favor of Friction and Flexibility
      • Indicate HN: Klotho – Change into straightforward code into cloud native code
      • Indoor farming isn’t exact for the smartly off
      • Iranian assault drone came across to have parts from more than a dozen US companies
      • Israeli researcher experiences leak of 235M Twitter-linked e-mail addresses
      • Jam Stations in Low Earth Orbit
      • Jazz Is Freedom
      • JPL-20171102-TECHf-0001-ドローントリップ 人間vs機械 2017-11-17T00:00:00Z
      • JPL에서 NASA의 MSI 콘도미니엄 액셀러레이터 2022-08-25T00:00:00Z
      • JPSO extinct facial recognition abilities to arrest a man. The tech modified into once defective
      • jsc2017e136097 – 12 月 4 日,俄罗斯联邦地区公司 (Roscosmos) 的远征 54-55 号机组人员 Anton Shkaplerov 在俄罗斯 Principal person City 的加加林宇航员训练中心上向整洁的祝福者挥手致意,当时他登上了前往附近的 Chkalovsky Ai 的公共汽车2017-12-04T00:00:00Z
      • Kemble’s Cascade of Stars
      • Kepler-90 マシン (アーティストの考え) 2017-12-14T00:00:00Z
      • Koichi Wakata SpaceX 코칭 2022-06-27T00:00:00Z
      • KSC and Proud to Be Heart-Wide Diversity Tournament 2019-08-20T00:00:00Z
      • KSC ir „Proud to Be Center“ įvairovės turnyras 2019-08-20T00:00:00Z
      • AI
      • Artificial intelligence
      • Auto-Generate
      • anti-Mastodon
      • Awesome
      • BioSentinel
      • CATEGORIES
      • DC
      • Dione
      • Diversity
      • drone racing
      • drones
      • Dulles
      • education
      • Event
      • filmstock
      • Goddard
      • AI
      • Ask HN
      • autonomous
      • coding
      • computer science
      • Clusters
      • Artificial intelligence
        • Ai
        • Apple
        • Tesla
        • digital
        • MESSENGER
        • Device
        • Charts
        • change
        • Shows
        • fraud
        • Former
        • fucking
        • purge
        • Works
        • entering
        • Databases
        • Review
        • Strangely
        • Instinct
        • staff
        • Salesforce
        • intern
        • Involuntary
        • promise
        • Twilio’s
        • nisv live
        • attack
        • Iranian
        • France’s
        • prized
        • infrastructure
        • Debian-based
        • nisv s02 ep03
        • siduction
        • Awesome
        • Calculate
        • Beautiful
        • Linux
        • Start
        • dollar
        • Messier
        • Daughters
        • ‘Breakthrough’
        • obesity
        • Al-Fudul
        • sixty years
        • PyTorch
        • discloses
        • Ancient
        • Stone
        • Popup
        • design
        • public
        • expanding
        • cloud
        • forest
        • startup
        • French
        • batteries
        • fleas
        • spotted
        • Petals
        • language
        • Habitual
        • checking
        • GitHub
        • Availability
        • layers
        • inconsistencies
        • Affair
        • Quasi-War
        • Sergey
        • Irate
        • bestseller
        • necessarily
        • Scientists
        • Titan
        • twitch
        • FGS/NIRISS – Fine Guidance Sensor/Near InfraRed Imager and Slitless Spectrograph
        • infrared
        • ISIM – Integrated Science Instrument Module
        • JHU – Johns Hopkins University
        • JWST – James Webb Space Telescope
        • JWST – James Webb Space Telescope
        • absolute zero
        • Big Bang
        • Peace
        • Studio
        • Making
        • project
        • -gaps
        • warns
        • Germany
        • Braille
        • MotherDuck
        • prototype
        • Challenges
        • Infinite
        • OwnCloud
        • Novel
        • Before
        • copying
        • California
        • getting
        • States
        • Criminal
        • Brother
        • Released
        • Method
        • owners
        • ‘richsession’
        • email
        • Elements
        • Where
        • passenger
        • Hierarchy
        • Filesystem
        • economic
        • Crew Dragon
        • Bridenstine
        • Scientific
        • Heaviosity
        • Patterns
        • Unexpected
        • minimalist
        • Ecode
        • Alpha
        • Wolfram
        • Tailwind
        • HiOperator
        • Klotho
        • TEAMS
        • ROBOTICS
        • Antelope
        • Sponsors
        • Ellen Gertsen
        • Transform
        • Flightcontrol
        • subscriptions
        • Internet
        • Theory-building
        • you’re
        • looking
        • Transfer
        • error’
        • Tails
        • migrate
        • Building
        • Bitmovin
        • Remote
        • PhotoRoom
        • Company
        • Taking
        • Ribbon
        • BibDesk
        • Android
        • profilers
        • phones
        • modern
        • Mastercard
        • private
        • We’ve
        • reportedly
        • Microsoft
        • Artsy
        • trades
        • skilled
        • Polygon
        • Flying
        • Princeton
        • Codemods
        • Coaching
        • UK’s
        • popping
        • sourced
        • Wikipedia
        • admin
        • Indoor
        • quick
        • Mysterious
        • Spotify
        • Fancy
        • Spotify
        • Weird
        • mail-order
        • Recipients
        • computer
        • optics
        • partnership
        • commercial
        • telemetry
        • Crisis
        • billionaire
        • Party
        • Onelab
        • Faster
        • general
        • Adobe’s
        • database
        • FinanceDatabase
        • Numerical
        • Freedom
        • concrete
        • Stacks
        • computer science
        • NASA
    • Show HN
    • Ask HN
    • Technology
    • computer science
    • coding
    • Clusters
    • AI
    • drones
    • autonomous
    • Auto-Generate
    • Ask HN
    • Show HN
    • The SMART Science™
    • google
  • CRYPTO
    • Blockchain
    • farming
    • Billionaires
    • FTX’s
    • FinanceDatabase: A database of 300.000 symbols (ETFs, Currencies, Crypto)
  • Artificial intelligence
  • Toggle search form
  • Cod's Shadow で Redfish 上向きの推力
    Cod's Shadow で Redfish 上向きの推力 anti-Mastodon
  • 南中国の広東省で報告されたH5N6鳥インフルエンザの現代的な症例
    南中国の広東省で報告されたH5N6鳥インフルエンザの現代的な症例 anti-Mastodon
  • Lego は abet Blender によって GPL に違反しています – 本質的に基本的にはほとんど BrickLink Studio のソースがクローズされています (2021)
    Lego は abet Blender によって GPL に違反しています – 本質的に基本的にはほとんど BrickLink Studio のソースがクローズされています (2021) Artificial intelligence
  • Excessive Avenue コーヒーのカフェイン ステージはさまざまで、テストでは
    Excessive Avenue コーヒーのカフェイン ステージはさまざまで、テストでは anti-Mastodon
  • ML ガジェットの 91% は時間の経過とともに劣化します Show HN
  • Alphabet のレイオフは Google らしくない
    Alphabet のレイオフは Google らしくない Alphabet’s
  • オレゴンシュリークでの IC3 Flexliner デモ (1997)
    オレゴンシュリークでの IC3 Flexliner デモ (1997) anti-Mastodon
  • Google の CEO は、Bard チャットボットがすすり泣きを内部メモに集めることを懸念している
    Google の CEO は、Bard チャットボットがすすり泣きを内部メモに集めることを懸念している anti-Mastodon
  • Why JVM standard profilers are restful safepoint biased?
    Why JVM standard profilers are restful safepoint biased? NASA
  • 微分を使用しない最適化: Prima Fortran モデルと SciPy への組み込み
    微分を使用しない最適化: Prima Fortran モデルと SciPy への組み込み Artificial intelligence
  • Total Electronics の内なる素晴らしいこと
    Total Electronics の内なる素晴らしいこと Artificial intelligence
  • Google はスタート サプライ チームで何をしていますか?
    Google はスタート サプライ チームで何をしていますか? anti-Mastodon
  • Nostr: リレーによって送信されるメモと多数のもの
    Nostr: リレーによって送信されるメモと多数のもの Artificial intelligence
  • ChatGPT は私の意志を書きました。 私は財産犯罪の教育を受けています。 さよなら職業
    ChatGPT は私の意志を書きました。 私は財産犯罪の教育を受けています。 さよなら職業 anti-Mastodon
  • 8 ビット ウルフ – 子供たちにウォール アベニューを征服するよう指導する NES スポーツを思い出す Show HN
Svelte-spa-router: Svelte 3 を使用した SPA 用ルーター

Svelte-spa-router: Svelte 3 を使用した SPA 用ルーター

Posted on May 25, 2023 By 📢 𝔾𝕠𝕠𝕘𝕝𝕖™

Svelte 3 と、Svelte 3 を使用してシングル ページ アプリ (SPA) を取得する方法を学びたい (そしてこのルーターでは)? 私の電子書籍 Svelte 3 Up and Running を Amazon で試してみてください。

Svelte 3 稼働中

npm GitHub このモジュールは、

    Svelte 3 機能、つまりシングル用に最適化ページ機能 (SPA)。

    貴重な側面:

  • レバレッジ ハッシュ本質ベースのルーティング 、SPA に最適で、サーバー側の処理を必要としません
  • めちゃくちゃ使いやすい、フットプリントは最小限です
  • 指小形を使用します regexparam ルート解析用、パラメータの強化を行う (例:

    /e book/:identification?

    ) もっと

)

このモジュールは MIT ライセンスの下で起動されます。

ビデオ

「では、ルーターを利用したほうがいいのでしょうか?」 Svelte Summit 2020 で @ItalyPaleAle が焦点を当てました。ルーターの 2 つの形式の説明と svelte-spa-router のデモが含まれます。 (キルトの画像をクリックするとYouTubeでビデオが再生されます)

  • Click to play video: 'So you want to pick a router?'
    )ハッシュ本質ベースのルーティング ハッシュ本質ベースのルーティングでは、よそよそしい視線をパーセントで保存することでナビゲーションが想像可能になります。 # 以降の URL 、「ハッシュ」または「フラグメント」として知られます。 例として、SPA が という静的ファイルにある場合) index.html 、アプリ全体をナビゲートするための URL には、愛すべき点が 1 つあります

    index.html#/profile 、 index.html#/e book/42 など (

      index.html 共有できます一般に、インデックス ファイルでは無視されるため、可能性としては、愛を示す URL を組み立てるだけになる可能性があります http://instance.com/#/profile). この部分を作成したとき、Svelte 3 用のさまざまなルーターは、HTML5 の歴史的な過去の API を利用してナビゲーションを実装しました。 これらの URL はより良く見えますが (たとえば、おそらく間違いなく に移動する可能性があります。 http://instance.com/profile)、静的な単一ページ機能には適していません。 ユーザーがハイパーリンクを共有したり、ページを更新したりするために uncover を行う場合、バックエンドでクエリを処理するサーバーを受け入れる必要がある可能性があり、その結果、完全に静的なアプリを構築するのははるかに困難になります。 .

      ハッシュ本質ベースのルーティングはより素晴らしいですは、サーバーがなくても正常に動作します。静的 SPA にとっては、つまり、アプリが認証を必要とする場合のように、Web 最適化が決して通知されない場合には、全体として快適です。 多くの標準アプリは、GMail とともにハッシュ本質ベースのルーティングを使用します!

      サンプルコード Build Status のコードをテストします。 examples フォルダにはいくつかの利用例が含まれています。

      サンプルを削除するには、リポジトリのクローンを作成し、依存関係をインストールしてから、すべてのファイルを取得します。 Rollup の使用例: git clone https://github.com/ItalyPaleAle/svelte-spa-router

      CD svelte-spa-router npm install   #Build Status  サンプルに移動します  

      CD の例/… # 例として

        Build Status CD 例/流行ルーティング

    # 発明と失敗 (サンプルのフォルダー内) npx rollup -c npx 手を貸す -n -l 5000 dist

    サンプルはおそらく npm で動作します。 http://localhost: 5000 )スターター テンプレート おそらく、 で Svelte 3 と svelte-spa-router を備えたスターター テンプレートを見つけるのが一流になる可能性があります。 italypaleale/svelte -spa-router-template. テンプレートを使用するには:
    npx degit italypaleale/svelte-spa-router-template svelte-app CD svelte-app 余分なデータが

      上で偶然見つかる可能性もあります。 テンプレートのリポジトリ

    .

    Svelte 3 を利用するあらゆる冒険において、ルーターを組み込むことに成功する可能性があります。

    NPM からセットアップ

    あなたのベンチャーに svelte-spa-router を追加するには:

    npm install svelte-spa-router

    対応ブラウザ

    svelte-spa-router は、スタイリッシュなブラウザを強化するターゲットと、次の超然としたバリエーション:

      クロム Edge (「脆弱」かつクロム - 本質的にベース)

      Firefox

    • Safari Web Explorer を強化することだけが目的ではありませんこのベンチャー。 一部のユーザーは、トランスパイル後に (Babel などで) IE11 で svelte-spa-router を使用することに成功したという報告を受け入れていますが、ここだけは保証されません。
    • ルートの説明を提示してください

      それぞれのルートは、マークアップ、スクリプト、バインディングなどを備えた、洗練された Svelte パーツです。全体の Svelte パーツはすべてルートです。

      ルート定義はもっぱら JavaScript 辞書 (オブジェクト) であり、重要なのはコースを含む文字列 (パラメーターとともに) です。 、など)、値はルート オブジェクトです。

      例として:

    輸入 家

  • から './routes/Home.svelte'
  • svelte-spaの活用-ルーター
    輸入 著者 から './routes/Author.svelte'

    輸入 電子書籍

    から

    './routes/E book.svelte'

    輸入 見つかりません から './routes/NotFound.svelte' npm const

    ルート =

    { // しっかりコース '/':

    家 、 // 名前付きパラメータの使用。final は必須ではありませんBuild Status '/creator/:first/:final?' : 著者、 // ワイルドカードパラメータ '/電子書籍/*' : 電子書籍
    、 npm // すべて取ります // これは義務ではありませんが、よそよそしい場合はそれが最後になるはずだ '*'
    : 見つかりません ,

    }

    ルートは で配信する必要があります/

    (また * ためにすべてを盗むルート).

    または、以下に概説するように、カスタム正規表現を使用してルートを詳しく説明する可能性もあります。

    明らかにすることが重要であることを伝えてください! ユーザーがアプリ内を移動するとき、最初に一致したコースによってロードするルートが決定されます。 最も重要なことは、終了時に「すべてを盗む」ルート (「ページがつまずいていない」ルートなど) を許可することです。 ルーターの視線を包み込む

    ルーターに対するレベル、Svelte 部分 (一般的に ) App.svelte)、最初にルーター部分をインポートします。

    輸入 Click to play video: 'So you want to pick a router?' ルーター から 「svelte-spa-router」

    次に、その部分をマークアップに配置することで、おそらく気に入った可能性のある場所にルーターをレベル付けします。 例として:

    <体> <ルーターGitHub {

  • ルート }/> body>

    The

    ルートnpm prop は上で概説した辞書です。 それだ! 完全に機能するルート旅行について希望するすべてをすでに受け入れています。

    動的-インポートされた部分とコード分割

    バージョンで起動3.0 の svelte-spa-router は、 のジョブにより) 動的にインポートされたパーツをサポートします。 インポート()作成)。 動的インポートの利用に適しているのは、バンドラーが動的インポートをサポートしている場合、コード分割が可能になり、ユーザーに配布するバンドルのサイズが小さくなる可能性があることです。 これは、Rollup および Webpack とともにバンドラーでテストされています。 動的にインポートされたパーツを使用するかどうかにかかわらず、GitHub を利用することを受け入れる必要があります。 wrap 手法(

  • のドキュメントによると、これはさまざまなアクションに対して時代遅れになる可能性がありますルートラッピング
    )。 まず、wrap

    をインポートします。 方法論: 輸入 {包む} から 「velte-spa-router/wrap」

    次に、ルート定義に、包む メソッド、動的にインポートされた部分を に返す特性を渡します。 asyncComponent 財産:

    import('./Foo.svelte') })" dir="auto">

     包む
    ({ 
      asyncComponent : ( ) =>

    輸入GitHub (

    './Foo.svelte'

    )
    }
    )

    現在: の値asyncComponent

    は である必要があります動的に返す特性の定義 -インポートされた部分、asyncComponent と同等: ()=> import('./Foo.svelte')。
    やめる いいえ 使用 asyncComponent: import('./Foo.svelte')、置換としての特徴的な呼び出しです。

    例として、最初のインスタンスから著者と電子書籍のルートを作成するには動的にインポートされた場合、コードを次のように置き換えることができます: import('./routes/Author.svelte') }), // 電子書籍部分 '/e book/*' をラップ: Wrap({ asyncComponent: ()=> import('./routes/E book.svelte') }), // Take-all ルートの最終 '*': NotFound, }" dir="auto">

     // ラップをインポートする方法論  輸入  {GitHub  包む }  から   'velte-spa-router/wrap'
      Build Status // 現在、著者と電子書籍はここではもうインポートされていないため、彼らは推測する可能性があります おそらく実行時にインポートすることもできます
    輸入 家

    から './routes/ホーム.svelte' 輸入

      見つかりません から './routes/NotFound. svelte'
      const ルート
      = {
      '/':

      家 ,Build Status

    // Author 部分をラップする
    」 /creator/:first/:final?': 包む (

    {

    asyncComponent:
    ( )=>

    輸入 ('./routes/Author.svelte' )

    }

    )、 // 電子書籍部分のラッピング

    '/電子書籍/*':
    包む(
      { asyncComponent : ( )

      => 輸入

      ( './routes/ E book.svelte') }

      ) , // テイクオールルート最終

    '*': 見つかりません ,

    }

    包む 方法論は、多くのプロパティを持つオブジェクトを受け入れ、次のようなさまざまな側面を有効にします。 環境 動的に確認される「読み込み」部分インポートされたパーツは、前提条件 (ルート ガード)、静的プロパティの受け渡し、およびカスタム買い物客データとともにリクエストされています。 の全体的な側面についてさらに詳しく学ぶことができる可能性があります。 包む のドキュメント内ルートラッピング .

    ページ間の移動 次のようにしてページ間を移動できる可能性があります。ファッションアンカー ( ) タグ。 例として:

    Thus Spoke Zarathustra" dir="auto"> <a href

      =Build Status " #/本/123

      ">ツァラトゥストラはこう語ったa>

      使用:ハイパーリンク 循環 親切にするよりは比較的#

      すべてのハイパーリンクの前に、おそらく も使用する可能性があります。 use:ハイパーリンク 循環:

      The Little Prince" dir="auto"> <脚本>

        Build Status 輸入

      { ハイパーリンク

      } から

      '

        svelte-spa-router

      '

       script>  <a   href=  "

      /本/321

      "
      use:link>小柄な王子様a>

      The use:ハイパーリンクBuild Status 循環は必須ではないパラメータ を受け入れますopts、

      の一員になる準備ができています
    • 辞書 {href: '/foo'、無効: false} すべてのキーは必須ではありません: の値を考案する場合*)href、ハイパーリンクはおそらく次のように更新されます。表示を隠す、reac
    • 𝚆𝚊𝚝𝚌𝚑 𝙽𝙾𝚆 📺

    anti-Mastodon, Ask HN, Auto-Generate, Billionaires, Blockchain, coding, computer science, CRYPTO, Router, Show HN, Svelte-spa-router, Technology, TOP HN Tags:Blockchain, Router, Svelte-spa-router

    Post navigation

    Previous Post: ポルシェと日産を滅ぼした世界的に有名なMK1ゴルフ
    Next Post: UCLA の PC 卒業生が「暗号学の最高の宝石」を構築

    Related Posts

    • Temu: それが何であり、なぜそれが重要なのか
      Temu: それが何であり、なぜそれが重要なのか anti-Mastodon
    • ファーミントン大学: ICE が偽の大学で 250 人の大学生を逮捕 (2019) Show HN
    • モンタナ州のTikTok禁止:なぜピクルスが必要になったのか、そしてそれはうまくいくのか?
      モンタナ州のTikTok禁止:なぜピクルスが必要になったのか、そしてそれはうまくいくのか? anti-Mastodon
    • ブログの過去の歴史 (1997-2023)
      ブログの過去の歴史 (1997-2023) anti-Mastodon
    • 実現された VPA を使用したスト​​リーミング JSON ペーパーワークの検証
      実現された VPA を使用したスト​​リーミング JSON ペーパーワークの検証 anti-Mastodon
    • 異常な説明: 10 年で DNS を発見する Show HN
    • ロボティクス企業 Mujin が ProMat でコンピューター化されたアンローダーを発表
      ロボティクス企業 Mujin が ProMat でコンピューター化されたアンローダーを発表 anti-Mastodon
    • 悪意のある攻撃者は検出を回避するために Python で Unicode の増加を実行します Show HN
    • HN のデモンストレーション: Smoosh – ブレイジング フリート、ビット指向のシリアライザー
      HN のデモンストレーション: Smoosh – ブレイジング フリート、ビット指向のシリアライザー anti-Mastodon
    • 最も単純な Mac ゲームの旅は、PC をダラスのナレッジ センターに置くことです
      最も単純な Mac ゲームの旅は、PC をダラスのナレッジ センターに置くことです anti-Mastodon

    Recent Posts

    • Easy Effects: PipeWire の有益な特性のオーディオ結果
    • io_uring は libuv を強化します – スループットが 8 倍延長します
    • Dolphin 任天堂が Wii と GameCube エミュレータの Steam 解放をブロックしたと発表
    • 簡単な結果: PipeWire 関数のオーディオ エフェクト
    • MySQL のインデックスキーとして巨大な文字列を使用するとどうなるか

    Recent Comments

    1. robga on Excessive Avenue コーヒーのカフェイン ステージはさまざまで、テストでは
    2. Loic on 行方不明の放射性タブレットは、必死の捜索の後、WA奥地で偶然見つけました
    3. minihat on メタは、標準的な VR e スポーツ Echo Area をシャットダウンします
    4. dafelst on フレーム ポインターの巻き戻しによる Move 実行トレーサーのオーバーヘッドの削減
    5. cloudking on GraphGPT: 構造化されていないテキストの肯定的な素材からのレコードデータ グラフの外挿
    • 保守可能な Plod コードの記述
      保守可能な Plod コードの記述 anti-Mastodon
    • あなたはIBMのAIXに未来があったと信じていますが、
      あなたはIBMのAIXに未来があったと信じていますが、 anti-Mastodon
    • Look Finds That Buttons in Vehicles Are Safer and Quicker to Use Than Touchscreens
      Look Finds That Buttons in Vehicles Are Safer and Quicker to Use Than Touchscreens Artificial intelligence
    • クリプトは賭けが大好きで、ChatGPT-4 を行いますか?
      クリプトは賭けが大好きで、ChatGPT-4 を行いますか? anti-Mastodon
    • GoMechanic の失敗は、インドのスタートアップにとってハネムーンの始まりになるかもしれない
      GoMechanic の失敗は、インドのスタートアップにとってハネムーンの始まりになるかもしれない anti-Mastodon
    • オープンサプライ Radeon ドライバー用の初期の Vulkan AV1 デコーディング
      オープンサプライ Radeon ドライバー用の初期の Vulkan AV1 デコーディング anti-Mastodon
    • Derek Sivers が Ruby と彼のプログラミング哲学をどのように使用しているか
      Derek Sivers が Ruby と彼のプログラミング哲学をどのように使用しているか anti-Mastodon
    • 好奇心 侵入危険回避 デジカメ 2012-08-06 Ask HN
    MAILANON
    2100 MAIL
    SEO
    METAVERSE
    BioLINK
    CRYPTO MINING
    CASINO
    DEFI-TRACKER
    StartApp Network
    RAVES-MONSTER-GAME
    RAVES EXCHANGE
    RAVES NFT
    KVANTA TV

    Copyright © 2023 Nasare™🚀.

    Powered by PressBook News Dark theme