Files
tauri.studio/docs/js/92e72970.61d2aa82.js
nothingismagick e9e0b5beda feat(site): initial scaffolding [WIP] (#1)
* feat(site): initial scaffolding

* fix(redirect): 404

* feat(CNAME): reference to tauri-apps.org

* feat(CNAME): add CNAME to build script CMD

* feat(work): various things, including patterns page

* feat(sidebar): Now scroll works

- needed to close the sidebar, because there is no docheight
- added a # to urls

* feat(slides): add landing carousel

* feat(landing): add ministories and roadmap and mermaid

* feat(links): update links, enhance mermaid

* feat(patterns): stylish page, 5 patterns, dynamic mermaid
- note: trollbridge -> api-bridge
- update mermaid

* feat(patterns):
- add multiwin pattern
- add pattern icons
- rename patterns
- add config section with dynamic markdown
- use keep-alive
- minor revisions to landing page

* feat(security): add docs/security page

* feat(patterns): add cloudish flowchart

* feat(patterns): fix infobar for mobile

* feat(quasar): update deps

* feat(examples): basic scaffolding

* feat(patterns): mosts, bests

* feat(patterns): icons

* feat(build): last manual build
2019-09-23 23:27:08 +02:00

1 line
10 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["92e72970"],{2514:function(t,e,n){"use strict";var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"full-width q-pa-md"},[n("q-page-sticky",{directives:[{name:"scroll",rawName:"v-scroll",value:t.scrolled,expression:"scrolled"}],staticClass:"page-header fixed-top shadow-8 scroll-determined",staticStyle:{position:"fixed!important"},attrs:{expand:""}},[n("q-chip",{staticClass:"claim text-weight-light text-black bg-cyan-1 shadow-8",staticStyle:{top:"84%"},attrs:{outline:"",dense:"",square:"",icon:"star","icon-right":"star"}},[t._v("Build more secure native apps with fast, tiny binaries.")]),n("div",{staticClass:"bg-container scroll-determined q-pa-md q-ml-lg"}),n("div",[n("router-link",{attrs:{to:"/"}},[n("img",{staticClass:"tauri-name scroll-determined",staticStyle:{cursor:"pointer"},attrs:{src:"statics/tauri-wordmark.png"}})]),t.buttons?n("div",{staticClass:"row",staticStyle:{"margin-top":"90px"}},[n("q-btn",{staticClass:"btn",attrs:{dense:"",size:"small",to:"/docs/quickstart",label:"Quick Start","no-caps":"",color:"yellow-2","text-color":"black"}}),n("q-btn",{staticClass:"btn",attrs:{dense:"",size:"small",to:"/docs/patterns",label:"Patterns","no-caps":"",color:"yellow-2","text-color":"black"}}),t.showDocs?n("q-btn",{staticClass:"btn",attrs:{dense:"",size:"small",to:"/docs",label:"Docs","no-caps":"",color:"yellow-2","text-color":"black"}}):t._e()],1):n("div",{staticClass:"absolute-right",staticStyle:{margin:"18px 35px 0 0"}},[n("q-btn-dropdown",{staticClass:"q-mr-lg",attrs:{dense:"",color:"yellow-2",label:t.current,"no-caps":"","text-color":"black"}},[n("q-list",{attrs:{color:"yellow-2"}},[t.showDocs?n("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:"",to:"/docs"},on:{click:function(e){t.current="Docs"}}},[n("q-item-section",[n("q-item-label",[t._v("Docs")])],1)],1):t._e(),n("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:"",to:"/docs/quickstart"}},[n("q-item-section",[n("q-item-label",[t._v("Quick Start")])],1)],1),n("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:"",to:"/docs/patterns"}},[n("q-item-section",[n("q-item-label",[t._v("Patterns")])],1)],1),n("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:"",to:"/docs/environment"}},[n("q-item-section",[n("q-item-label",[t._v("Environment")])],1)],1)],1)],1)],1)],1)],1),n("main",{staticClass:"flex flex-start justify-center"},[n("div",{staticClass:"q-pa-sm col-12-sm col-10-md col-8-lg",staticStyle:{"max-width":"1024px",width:"100%"}},[t._t("default")],2)])],1)},o=[],a={name:"Hero",data:function(){return{buttons:!0,current:"Menu",height:270,heightName:140,heightPic:250,heightClaim:100,rightDrawerOpen:this.$q.platform.is.desktop}},mounted:function(){},computed:{showDocs:function(){var t=this.$route.meta.showDocslink;return"undefined"===typeof t||t}},methods:{scrolled:function(t){var e=t/4;this.height=270-e,this.heightName=140-e,this.heightPic=250-e,this.heightClaim=220-e,e>=50&&!1!==this.buttons?(this.buttons=!1,document.getElementsByClassName("scroll-determined")[0].setAttribute("style","height: 70px"),document.getElementsByClassName("scroll-determined")[1].setAttribute("style","height: 55px;width: 55px;transform: rotate(".concat(t,"deg)")),document.getElementsByClassName("tauri-name")[0].setAttribute("style","\n height: 35px;\n "),document.getElementsByClassName("q-drawer__content")[0].setAttribute("style","background-color: #FDFADE;margin-top: 60px;padding-top:20px"),document.getElementById("scrollHolder").setAttribute("style","height: calc(100% - 132px)"),document.getElementById("padding").setAttribute("style","height: 40px")):!1===this.buttons?document.getElementsByClassName("scroll-determined")[1].setAttribute("style","height: 55px;width: 55px;transform: rotate(".concat(t,"deg)")):document.getElementsByClassName("scroll-determined")[1].setAttribute("style","transform: rotate(".concat(t,"deg)"))}}},i=a,r=(n("42ef"),n("2877")),l=Object(r["a"])(i,s,o,!1,null,null,null);e["a"]=l.exports},"253d":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("hero",[n("div",{staticStyle:{"padding-top":"260px"},attrs:{id:"padding"}}),n("q-markdown",{attrs:{src:t.markdown,toc:"","line-number-alt":"$"},on:{data:t.onToc}}),n("q-page-scroller",{attrs:{position:"bottom-right","scroll-offset":150,offset:[18,18]}},[n("q-btn",{attrs:{fab:"",icon:"keyboard_arrow_up",color:"warning"}})],1)],1)},o=[],a=n("2514"),i="## Test Drive\nThis assumes you have git, node 10LTS, yarn, rust and cargo installed. If not, see below.\n\n```\ngit clone https://github.com/tauri-apps/smoke-tests\ncd smoke-tests/test\nyarn\ncargo install --path node_modules/@tauri-apps/tauri/tools/rust/cargo-tauri-bundle --force\nyarn tauri build\n```\n\nAfter tauri has compiled its rust resources, look in the `src-tauri/target/release/bundle`.\n\n## Add Rust and Build Toolchain\n### Windows 64 or 32 bit\nYou will need to have Visual Studio and windows-build-tools installed.\n\nFirst you should visit the [Microsoft docs](https://docs.microsoft.com/en-us/visualstudio/install/install-visual-studio?view=vs-2019) and install Visual Studio.\n\n $ npm install --global windows-build-tools\n\nIf you are running Windows 64-bit, download and run [rustupinit.exe](https://win.rustup.rs/x86_64) and then follow the onscreen instructions.\n\nIf you are running Windows 32-bit, download and run [rustupinit.exe](https://win.rustup.rs/i686) and then follow the onscreen instructions.\n\n### Arch\nAccording to the Arch manual, this is something you were born knowing. But seriously, if you want to help out explaining how newbies to Arch can do this, please feel free to make a PR to this doc.\n\n### BSD\nSimilar to Arch, you already have everything installed because you compile kernels. However:\n- Execution on OpenBSD requires wxallowed mount(8) option.\n- FreeBSD is also supported, to install webkit2 run pkg install webkit2-gtk3.\n\n### Ubuntu\nFirst install Ubuntu then:\n\n $ sudo apt update && sudo apt install libwebkit2gtk-4.0-dev build-essential\n\n### MacOS\n $ brew install gcc\n\n### Everybody except Windows\n\n $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n\n> We have audited this bash script, and it does what it says it is supposed to do. Nevertheless, before blindly curl-bashing a script, it is always wise to look at it first. Here is file as a mere [download link](https://sh.rustup.rs)\n\nMake sure that `rustc` and `cargo` are in your $PATH. Run\n\n $ rustc --version\n latest update on 2019-07-04, rust version 1.37.0\n\nand make sure you are on latest update on 2019-07-04, rust version 1.37.0 - otherwise be sure to update.\n\n $ rustup update stable\n $ rustup override set 1.37.0\n\n\n## About `rustup` (from their [website](https://rustup.rs))\n`rustup` installs rustc, cargo, rustup and other standard tools to Cargo's bin directory. On Unix it is located at `$HOME/.cargo/bin` and on Windows at `%USERPROFILE%\\.cargo\\bin`. This is the same directory that cargo install will install Rust programs and Cargo plugins.\n\nThis directory will be in your `$PATH` environment variable, which means you can run them from the shell without further configuration. **Open a new shell** and type the following:\n\n $ rustc --version\n\nor run:\n\n source $HOME/.cargo/env\n \n # and then\n \n $ rustc --version\n\nIf you don't see 1.37.0 or later, then you'll need to upgrade your rust.\n \n $ rustup update stable\n $ rustup override set 1.37.0\n\n### bundler\nAfter you have installed Rust and the build toolchain, it is wise to open a new shell before continuing.\n\nSetup the bundler:\n\n $ cargo install --path node_modules/@tauri-apps/tauri/tools/rust/cargo-tauri-bundle --force\n\nWant to debug?\n#### *nix\n\n $ cd src-tauri\n $ RUST_DEBUG=1 cargo build\n\n#### Windows\n\n $ cd src-tauri\n $ set RUST_DEBUG=1\n $ cargo build\n\n\n\n## experimental anti-bloat features\n\nsee: https://github.com/RazrFalcon/cargo-bloat\nhttps://lifthrasiir.github.io/rustlog/why-is-a-rust-executable-large.html\nhttps://doc.rust-lang.org/cargo/reference/manifest.html#the-profile-sections\n\n### Bundler\nadd this to your `/src-tauri/Cargo.toml` (currently being used in the /test project)\n\n [profile.release]\n panic = \"abort\"\n codegen-units = 1\n lto = true\n incremental = false\n opt-level = \"z\"\n\n\n### upx\nUPX, **Ultimate Packer for eXecutables**, is a dinosaur amongst the binary packers. This 23-year old, well-maintained piece of kit is GPL-v2 licensed with a pretty liberal usage declaration. Our understanding of the licensing is that you can use it for any purposes (commercial or otherwise) without needing to change your license unless you modify the source code of UPX.\n\n Basically it compresses the binary and decompresses it at runtime. It should work for pretty much any binary type out there. Read more: https://github.com/upx/upx\n \n> You should know that this technique might flag your binary as a virus on Windows and MacOS - so use at your own discretion, and as always validate with Frida and do real distribution testing!\n \n#### Usage on MacOS\n $ brew install upx\n $ yarn tauri build\n $ upx --ultra-brute src-tauri/target/release/bundle/osx/app.app/Contents/MacOS/app\n Ultimate Packer for eXecutables\n Copyright (C) 1996 - 2018\n UPX 3.95 Markus Oberhumer, Laszlo Molnar & John Reiser Aug 26th 2018\n \n File size Ratio Format Name\n -------------------- ------ ----------- -----------\n 963140 -> 274448 28.50% macho/amd64 app \n\n## error reporting\nPlease report all library errors at https://github.com/tauri-apps/tauri \n\n",r={name:"PageIndex",components:{Hero:a["a"]},data:function(){return{markdown:i}},computed:{toc:{get:function(){return this.$store.state.common.toc},set:function(t){this.$store.commit("common/toc",t)}}},methods:{onToc:function(t){this.toc=t}}},l=r,u=(n("cb41"),n("2877")),c=Object(u["a"])(l,s,o,!1,null,null,null);e["default"]=c.exports},"42ef":function(t,e,n){"use strict";var s=n("efb7"),o=n.n(s);o.a},"735c":function(t,e,n){},cb41:function(t,e,n){"use strict";var s=n("735c"),o=n.n(s);o.a},efb7:function(t,e,n){}}]);