Skip to content

Instantly share code, notes, and snippets.

View lucasfernog's full-sized avatar

Lucas Fernandes Nogueira lucasfernog

View GitHub Profile
@lucasfernog
lucasfernog / latest.json
Last active July 24, 2022 13:53
Tauri Updater JSON test
{
"version": "v0.1.0",
"pub_date": "2022-07-24T22:55:50Z",
"platforms": {
"linux-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRdTcyMlFiTzlhY2hHL3dXelhPTDJISEhwcGtiaDJWV0YvRC9tZXQ3a1hRUVRvclRQSEVHYVRGQWx0U2FNc3VMT3F6VUFrTDNJUE5uWTZ6SXdiYVhUcGlZcG45eldBM1FnPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjU4NjY5ODE2CWZpbGU6dXBkYXRlcl8wLjEuMF9hbWQ2NC5BcHBJbWFnZS50YXIuZ3oKQ2trVGRzWnZhai9VSkFDUnIvMWt6QnpEQVNnMzdtS04rK2lEMDl0b3kyYzdoemVQa3c2ZG8zWTJQM1hueWNPdzRXNjZWKzNTbUpSQXBlSmxJVHBlQUE9PQo=",
"url": "https://github.com/lucasfernog/discourse/releases/download/v2.8.0.beta7/updater_0.1.0_amd64.AppImage.tar.gz"
}
}
}
@lucasfernog
lucasfernog / schema.json
Created July 6, 2020 12:03
schema.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"defaultProperties": [
],
"definitions": {
"CliArg": {
"additionalProperties": false,
"defaultProperties": [
],
@lucasfernog
lucasfernog / tauri.js
Created July 3, 2020 20:42
Map window.tauri to window.__TAURI__
window.tauri = {
invoke: window.__TAURI__.invoke,
promisified: window.__TAURI__.promisified,
transformCallback: window.__TAURI__.transformCallback,
listen: window.__TAURI__.event.listen,
emit: window.__TAURI__.event.emit,
Dir: window.__TAURI__.fs.Dir,
readTextFile: window.__TAURI__.fs.readTextFile,
readBinaryFile: window.__TAURI__.fs.readBinaryFile,
writeFile: window.__TAURI__.fs.writeFile,
@lucasfernog
lucasfernog / index.js
Created May 12, 2020 01:00
iota.rs wasm
const wasm = import('./pkg/iota_wasm')
class Client {
constructor(uri) {
this.clientConfig = {
uri
}
}
getNodeInfo() {
@lucasfernog
lucasfernog / Activity Feed
Last active January 12, 2020 18:38
Activity Feed
We couldn’t find that file to show.
@lucasfernog
lucasfernog / .gitignore
Created January 11, 2020 16:18
Spark-Wallet no-server changes
# Generated by UI
.build
node_modules
# Generated by Cargo
src-tauri/target/
# Generated by Tauri
src-tauri/tauri.js
src-tauri/WixTools/
struct Ext {
}
impl tauri::extension::Extension for Ext {
fn ready(&self, webview: &mut tauri_ui::WebView<'_, ()>) {
println!("ready");
tauri::event::emit(webview.handle(), "test", "'a'".to_string());
}
<template>
<q-page class="flex flex-center">
<div class="col">
<img alt="Quasar logo" src="statics/icons/icon-128x128.png">
<q-input class="col-12" label="Search folder..." v-model="path" outlined filled @keypress.enter="getFiles()">
<template #append>
<q-icon class="cursor-pointer" name="search" @click="getFiles()"/>
</template>
</q-input>