Update Yew to 0.20.0 and other dependencies
This commit is contained in:
parent
ca6ac79125
commit
11648a574d
|
@ -17,8 +17,8 @@ argon2 = "0.4"
|
|||
base64 = "0.13"
|
||||
bytes = "1"
|
||||
# chrono = { version = "0.4", features = ["serde"] }
|
||||
clap = { version = "3", features = ["derive"] }
|
||||
comrak = "0.14"
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
comrak = "0.15"
|
||||
# ctrlc = { version = "3.0", features = ["termination"] }
|
||||
# crc = "^1.0.0"
|
||||
futures = "0.3"
|
||||
|
@ -28,14 +28,14 @@ image = { version = "0.24", features = ["jpeg", "png", "gif"] }
|
|||
lazy_static = "1.4"
|
||||
lazy-static-include = "3"
|
||||
log = "0.4"
|
||||
once_cell = "1.13"
|
||||
once_cell = "1.16"
|
||||
parking_lot = "0.12"
|
||||
password-hash = { version = "0.4", features = ["rand_core"] }
|
||||
# percent-encoding = "2.1"
|
||||
pretty_env_logger = "0.4"
|
||||
# pulldown-cmark = "0.9"
|
||||
rand = "0.8"
|
||||
regex = "1.6"
|
||||
regex = "1.7"
|
||||
reqwest = "0.11"
|
||||
# subtle = "2"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
|
@ -43,7 +43,7 @@ serde_json = "1"
|
|||
sled = "0.34"
|
||||
sqlx = { version = "0.6", default-features = false, features = [ "runtime-tokio-rustls", "macros", "sqlite"], optional = false }
|
||||
#scrypt = { version = "0.6", default-features = false }
|
||||
tera = "1.16"
|
||||
tera = "1.17"
|
||||
# time = { version = "0.3", features = ["serde"] }
|
||||
tokio = { version = "1", features = ["fs", "io-util", "macros", "rt", "rt-multi-thread", "signal", "time"] }
|
||||
uuid = { version = "1", features = ["v5"] }
|
||||
|
|
|
@ -1,990 +0,0 @@
|
|||
import { getContent, inputTag, showOriginTags, getAddedTags, randomTitleImage, uploadTitleImage } from './snippets/blog-frontend-9dee7438ed9a57b2/asset/editor.js';
|
||||
import { userLanguage, hideNotificationBox } from './snippets/blog-frontend-9dee7438ed9a57b2/asset/show.js';
|
||||
import * as __wbg_star0 from './snippets/blog-frontend-9dee7438ed9a57b2/asset/show.js';
|
||||
|
||||
let wasm;
|
||||
|
||||
const heap = new Array(32).fill(undefined);
|
||||
|
||||
heap.push(undefined, null, true, false);
|
||||
|
||||
function getObject(idx) { return heap[idx]; }
|
||||
|
||||
let heap_next = heap.length;
|
||||
|
||||
function dropObject(idx) {
|
||||
if (idx < 36) return;
|
||||
heap[idx] = heap_next;
|
||||
heap_next = idx;
|
||||
}
|
||||
|
||||
function takeObject(idx) {
|
||||
const ret = getObject(idx);
|
||||
dropObject(idx);
|
||||
return ret;
|
||||
}
|
||||
|
||||
function addHeapObject(obj) {
|
||||
if (heap_next === heap.length) heap.push(heap.length + 1);
|
||||
const idx = heap_next;
|
||||
heap_next = heap[idx];
|
||||
|
||||
heap[idx] = obj;
|
||||
return idx;
|
||||
}
|
||||
|
||||
let WASM_VECTOR_LEN = 0;
|
||||
|
||||
let cachegetUint8Memory0 = null;
|
||||
function getUint8Memory0() {
|
||||
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
|
||||
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
||||
}
|
||||
return cachegetUint8Memory0;
|
||||
}
|
||||
|
||||
const cachedTextEncoder = new TextEncoder('utf-8');
|
||||
|
||||
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
||||
? function (arg, view) {
|
||||
return cachedTextEncoder.encodeInto(arg, view);
|
||||
}
|
||||
: function (arg, view) {
|
||||
const buf = cachedTextEncoder.encode(arg);
|
||||
view.set(buf);
|
||||
return {
|
||||
read: arg.length,
|
||||
written: buf.length
|
||||
};
|
||||
});
|
||||
|
||||
function passStringToWasm0(arg, malloc, realloc) {
|
||||
|
||||
if (realloc === undefined) {
|
||||
const buf = cachedTextEncoder.encode(arg);
|
||||
const ptr = malloc(buf.length);
|
||||
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
||||
WASM_VECTOR_LEN = buf.length;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
let len = arg.length;
|
||||
let ptr = malloc(len);
|
||||
|
||||
const mem = getUint8Memory0();
|
||||
|
||||
let offset = 0;
|
||||
|
||||
for (; offset < len; offset++) {
|
||||
const code = arg.charCodeAt(offset);
|
||||
if (code > 0x7F) break;
|
||||
mem[ptr + offset] = code;
|
||||
}
|
||||
|
||||
if (offset !== len) {
|
||||
if (offset !== 0) {
|
||||
arg = arg.slice(offset);
|
||||
}
|
||||
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
||||
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
||||
const ret = encodeString(arg, view);
|
||||
|
||||
offset += ret.written;
|
||||
}
|
||||
|
||||
WASM_VECTOR_LEN = offset;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
let cachegetInt32Memory0 = null;
|
||||
function getInt32Memory0() {
|
||||
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
|
||||
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
||||
}
|
||||
return cachegetInt32Memory0;
|
||||
}
|
||||
|
||||
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
||||
|
||||
cachedTextDecoder.decode();
|
||||
|
||||
function getStringFromWasm0(ptr, len) {
|
||||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
||||
}
|
||||
|
||||
function isLikeNone(x) {
|
||||
return x === undefined || x === null;
|
||||
}
|
||||
|
||||
let cachegetFloat64Memory0 = null;
|
||||
function getFloat64Memory0() {
|
||||
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
|
||||
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
||||
}
|
||||
return cachegetFloat64Memory0;
|
||||
}
|
||||
|
||||
function debugString(val) {
|
||||
// primitive types
|
||||
const type = typeof val;
|
||||
if (type == 'number' || type == 'boolean' || val == null) {
|
||||
return `${val}`;
|
||||
}
|
||||
if (type == 'string') {
|
||||
return `"${val}"`;
|
||||
}
|
||||
if (type == 'symbol') {
|
||||
const description = val.description;
|
||||
if (description == null) {
|
||||
return 'Symbol';
|
||||
} else {
|
||||
return `Symbol(${description})`;
|
||||
}
|
||||
}
|
||||
if (type == 'function') {
|
||||
const name = val.name;
|
||||
if (typeof name == 'string' && name.length > 0) {
|
||||
return `Function(${name})`;
|
||||
} else {
|
||||
return 'Function';
|
||||
}
|
||||
}
|
||||
// objects
|
||||
if (Array.isArray(val)) {
|
||||
const length = val.length;
|
||||
let debug = '[';
|
||||
if (length > 0) {
|
||||
debug += debugString(val[0]);
|
||||
}
|
||||
for(let i = 1; i < length; i++) {
|
||||
debug += ', ' + debugString(val[i]);
|
||||
}
|
||||
debug += ']';
|
||||
return debug;
|
||||
}
|
||||
// Test for built-in
|
||||
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
||||
let className;
|
||||
if (builtInMatches.length > 1) {
|
||||
className = builtInMatches[1];
|
||||
} else {
|
||||
// Failed to match the standard '[object ClassName]'
|
||||
return toString.call(val);
|
||||
}
|
||||
if (className == 'Object') {
|
||||
// we're a user defined class or Object
|
||||
// JSON.stringify avoids problems with cycles, and is generally much
|
||||
// easier than looping through ownProperties of `val`.
|
||||
try {
|
||||
return 'Object(' + JSON.stringify(val) + ')';
|
||||
} catch (_) {
|
||||
return 'Object';
|
||||
}
|
||||
}
|
||||
// errors
|
||||
if (val instanceof Error) {
|
||||
return `${val.name}: ${val.message}\n${val.stack}`;
|
||||
}
|
||||
// TODO we could test for more things here, like `Set`s and `Map`s.
|
||||
return className;
|
||||
}
|
||||
|
||||
function makeMutClosure(arg0, arg1, dtor, f) {
|
||||
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
||||
const real = (...args) => {
|
||||
// First up with a closure we increment the internal reference
|
||||
// count. This ensures that the Rust closure environment won't
|
||||
// be deallocated while we're invoking it.
|
||||
state.cnt++;
|
||||
const a = state.a;
|
||||
state.a = 0;
|
||||
try {
|
||||
return f(a, state.b, ...args);
|
||||
} finally {
|
||||
if (--state.cnt === 0) {
|
||||
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
||||
|
||||
} else {
|
||||
state.a = a;
|
||||
}
|
||||
}
|
||||
};
|
||||
real.original = state;
|
||||
|
||||
return real;
|
||||
}
|
||||
|
||||
let stack_pointer = 32;
|
||||
|
||||
function addBorrowedObject(obj) {
|
||||
if (stack_pointer == 1) throw new Error('out of js stack');
|
||||
heap[--stack_pointer] = obj;
|
||||
return stack_pointer;
|
||||
}
|
||||
function __wbg_adapter_36(arg0, arg1, arg2) {
|
||||
try {
|
||||
wasm._dyn_core__ops__function__FnMut___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h65f078ce597081ae(arg0, arg1, addBorrowedObject(arg2));
|
||||
} finally {
|
||||
heap[stack_pointer++] = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
function __wbg_adapter_39(arg0, arg1, arg2) {
|
||||
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h502439bc2c34e032(arg0, arg1, ptr0, len0);
|
||||
}
|
||||
|
||||
function __wbg_adapter_42(arg0, arg1, arg2) {
|
||||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h03f676663020988c(arg0, arg1, addHeapObject(arg2));
|
||||
}
|
||||
|
||||
let cachegetUint32Memory0 = null;
|
||||
function getUint32Memory0() {
|
||||
if (cachegetUint32Memory0 === null || cachegetUint32Memory0.buffer !== wasm.memory.buffer) {
|
||||
cachegetUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
||||
}
|
||||
return cachegetUint32Memory0;
|
||||
}
|
||||
|
||||
function getArrayJsValueFromWasm0(ptr, len) {
|
||||
const mem = getUint32Memory0();
|
||||
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
||||
const result = [];
|
||||
for (let i = 0; i < slice.length; i++) {
|
||||
result.push(takeObject(slice[i]));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function passArrayJsValueToWasm0(array, malloc) {
|
||||
const ptr = malloc(array.length * 4);
|
||||
const mem = getUint32Memory0();
|
||||
for (let i = 0; i < array.length; i++) {
|
||||
mem[ptr / 4 + i] = addHeapObject(array[i]);
|
||||
}
|
||||
WASM_VECTOR_LEN = array.length;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
const u32CvtShim = new Uint32Array(2);
|
||||
|
||||
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
|
||||
|
||||
function handleError(f, args) {
|
||||
try {
|
||||
return f.apply(this, args);
|
||||
} catch (e) {
|
||||
wasm.__wbindgen_exn_store(addHeapObject(e));
|
||||
}
|
||||
}
|
||||
|
||||
function getArrayU8FromWasm0(ptr, len) {
|
||||
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
||||
}
|
||||
|
||||
async function load(module, imports) {
|
||||
if (typeof Response === 'function' && module instanceof Response) {
|
||||
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
||||
try {
|
||||
return await WebAssembly.instantiateStreaming(module, imports);
|
||||
|
||||
} catch (e) {
|
||||
if (module.headers.get('Content-Type') != 'application/wasm') {
|
||||
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
||||
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const bytes = await module.arrayBuffer();
|
||||
return await WebAssembly.instantiate(bytes, imports);
|
||||
|
||||
} else {
|
||||
const instance = await WebAssembly.instantiate(module, imports);
|
||||
|
||||
if (instance instanceof WebAssembly.Instance) {
|
||||
return { instance, module };
|
||||
|
||||
} else {
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function init(input) {
|
||||
if (typeof input === 'undefined') {
|
||||
input = new URL('blog-frontend-640500e0e5a849c3_bg.wasm', import.meta.url);
|
||||
}
|
||||
const imports = {};
|
||||
imports.wbg = {};
|
||||
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
||||
takeObject(arg0);
|
||||
};
|
||||
imports.wbg.__wbg_instanceof_Window_0e6c0f1096d66c3c = function(arg0) {
|
||||
const ret = getObject(arg0) instanceof Window;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_history_dd96d7b18f9170a6 = function() { return handleError(function (arg0) {
|
||||
const ret = getObject(arg0).history;
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
||||
const ret = getObject(arg0);
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_new_36359baae5a47e27 = function() {
|
||||
const ret = new Object();
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_addEventListener_be0c061a1359c1dd = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_body_2a1ff14b05042a51 = function(arg0) {
|
||||
const ret = getObject(arg0).body;
|
||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_lastChild_84687239bfef7d2f = function(arg0) {
|
||||
const ret = getObject(arg0).lastChild;
|
||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_removeChild_b4ce6c8d6e5d47be = function() { return handleError(function (arg0, arg1) {
|
||||
const ret = getObject(arg0).removeChild(getObject(arg1));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_json_df9259ba758ea2fe = function() { return handleError(function (arg0) {
|
||||
const ret = getObject(arg0).json();
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
||||
const obj = getObject(arg1);
|
||||
const ret = JSON.stringify(obj === undefined ? null : obj);
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
||||
const ret = getStringFromWasm0(arg0, arg1);
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_log_e8ba7b992c7ad0eb = function(arg0) {
|
||||
console.log(getObject(arg0));
|
||||
};
|
||||
imports.wbg.__wbg_location_fa9019d2eb2195e8 = function(arg0) {
|
||||
const ret = getObject(arg0).location;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_sethref_f9def32c4873559d = function() { return handleError(function (arg0, arg1, arg2) {
|
||||
getObject(arg0).href = getStringFromWasm0(arg1, arg2);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
||||
const obj = takeObject(arg0).original;
|
||||
if (obj.cnt-- == 1) {
|
||||
obj.a = 0;
|
||||
return true;
|
||||
}
|
||||
const ret = false;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_set_93b1c87ee2af852e = function() { return handleError(function (arg0, arg1, arg2) {
|
||||
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
||||
return ret;
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_newwithstrandinit_fd99688f189f053e = function() { return handleError(function (arg0, arg1, arg2) {
|
||||
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_fetch_ef7a6623d1fcd3b8 = function(arg0, arg1) {
|
||||
const ret = getObject(arg0).fetch(getObject(arg1));
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_instanceof_Response_ccfeb62399355bcd = function(arg0) {
|
||||
const ret = getObject(arg0) instanceof Response;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_pushState_b0c96c33f80b8f64 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
||||
getObject(arg0).pushState(getObject(arg1), getStringFromWasm0(arg2, arg3), arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5));
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_sethash_710d2b28d6f28bfd = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).hash = getStringFromWasm0(arg1, arg2);
|
||||
};
|
||||
imports.wbg.__wbg_href_35994dfcb93f4396 = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).href;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_warn_2aa0e7178e1d35f6 = function(arg0, arg1) {
|
||||
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
||||
wasm.__wbindgen_free(arg0, arg1 * 4);
|
||||
console.warn(...v0);
|
||||
};
|
||||
imports.wbg.__wbg_settitle_5bcc4365b1eefc7a = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).title = getStringFromWasm0(arg1, arg2);
|
||||
};
|
||||
imports.wbg.__wbg_scrollTo_366bf009d47091cf = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).scrollTo(arg1, arg2);
|
||||
};
|
||||
imports.wbg.__wbg_userLanguage_3efd2f45c021fec5 = function(arg0) {
|
||||
const ret = userLanguage();
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_log_9b7bdb677c030000 = function(arg0, arg1) {
|
||||
console.log(getObject(arg0), getObject(arg1));
|
||||
};
|
||||
imports.wbg.__wbg_createElement_3c9b5f3aa42457a1 = function() { return handleError(function (arg0, arg1, arg2) {
|
||||
const ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_setinnerHTML_cc7e5a208667d1bc = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).innerHTML = getStringFromWasm0(arg1, arg2);
|
||||
};
|
||||
imports.wbg.__wbg_setclassName_5b387ce4e3facf5e = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).className = getStringFromWasm0(arg1, arg2);
|
||||
};
|
||||
imports.wbg.__wbg_hideNotificationBox_f4d47ded99016504 = function(arg0) {
|
||||
hideNotificationBox(takeObject(arg0));
|
||||
};
|
||||
imports.wbg.__wbg_go_59319959a4942782 = function() { return handleError(function (arg0, arg1) {
|
||||
getObject(arg0).go(arg1);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_readyState_47f9913182583860 = function(arg0) {
|
||||
const ret = getObject(arg0).readyState;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_abort_821f6ad1b466c6a6 = function(arg0) {
|
||||
getObject(arg0).abort();
|
||||
};
|
||||
imports.wbg.__wbg_getAddedTags_d8dedf959e46aa39 = function(arg0) {
|
||||
const ret = getAddedTags();
|
||||
const ptr0 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_malloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
||||
const obj = getObject(arg1);
|
||||
const ret = typeof(obj) === 'string' ? obj : undefined;
|
||||
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
var len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_getContent_b97c7173b3837df3 = function(arg0) {
|
||||
const ret = getContent();
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_randomTitleImage_818c0339d768b6f3 = function(arg0, arg1, arg2, arg3) {
|
||||
u32CvtShim[0] = arg1;
|
||||
u32CvtShim[1] = arg2;
|
||||
const n0 = uint64CvtShim[0];
|
||||
randomTitleImage(takeObject(arg0), n0, takeObject(arg3));
|
||||
};
|
||||
imports.wbg.__wbg_uploadTitleImage_46b4768bb2cdc3ef = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
||||
u32CvtShim[0] = arg1;
|
||||
u32CvtShim[1] = arg2;
|
||||
const n0 = uint64CvtShim[0];
|
||||
var v1 = getArrayJsValueFromWasm0(arg3, arg4).slice();
|
||||
wasm.__wbindgen_free(arg3, arg4 * 4);
|
||||
uploadTitleImage(takeObject(arg0), n0, v1, takeObject(arg5));
|
||||
};
|
||||
imports.wbg.__wbg_removeEventListener_3e7319b5d7c8be8f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), arg4 !== 0);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_new_89d7f088c1c45353 = function() { return handleError(function () {
|
||||
const ret = new Headers();
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_set_6884dcc6cdd65022 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_showOriginTags_9b27918917df8c39 = function(arg0, arg1) {
|
||||
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
||||
wasm.__wbindgen_free(arg0, arg1 * 4);
|
||||
showOriginTags(v0);
|
||||
};
|
||||
imports.wbg.__wbg_inputTag_a094e2b3c162c2e3 = function(arg0) {
|
||||
inputTag(takeObject(arg0));
|
||||
};
|
||||
imports.wbg.__wbg_target_46fd3a29f64b0e43 = function(arg0) {
|
||||
const ret = getObject(arg0).target;
|
||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_value_14b43f7df5bd6160 = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).value;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_files_bb62a3b4d73b2fc9 = function(arg0) {
|
||||
const ret = getObject(arg0).files;
|
||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_iterator_4832ef1f15b0382b = function() {
|
||||
const ret = Symbol.iterator;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_get_a9cab131e3152c49 = function() { return handleError(function (arg0, arg1) {
|
||||
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbindgen_is_function = function(arg0) {
|
||||
const ret = typeof(getObject(arg0)) === 'function';
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_call_ae78342adc33730a = function() { return handleError(function (arg0, arg1) {
|
||||
const ret = getObject(arg0).call(getObject(arg1));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbindgen_is_object = function(arg0) {
|
||||
const val = getObject(arg0);
|
||||
const ret = typeof(val) === 'object' && val !== null;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_next_cabb70b365520721 = function(arg0) {
|
||||
const ret = getObject(arg0).next;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_next_bf3d83fc18df496e = function() { return handleError(function (arg0) {
|
||||
const ret = getObject(arg0).next();
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_done_040f966faa9a72b3 = function(arg0) {
|
||||
const ret = getObject(arg0).done;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_value_419afbd9b9574c4c = function(arg0) {
|
||||
const ret = getObject(arg0).value;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_preventDefault_747982fd5fe3b6d0 = function(arg0) {
|
||||
getObject(arg0).preventDefault();
|
||||
};
|
||||
imports.wbg.__wbg_href_ee02b91ff794f1c0 = function() { return handleError(function (arg0, arg1) {
|
||||
const ret = getObject(arg1).href;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_newwithbase_8069bce386c80f03 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
||||
const ret = new URL(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_setsearch_b10068a05534907b = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).search = getStringFromWasm0(arg1, arg2);
|
||||
};
|
||||
imports.wbg.__wbg_pathname_704bbbf916a0727d = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).pathname;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_search_83011637a4c4a3b8 = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).search;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_new_693216e109162396 = function() {
|
||||
const ret = new Error();
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).stack;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
||||
try {
|
||||
console.error(getStringFromWasm0(arg0, arg1));
|
||||
} finally {
|
||||
wasm.__wbindgen_free(arg0, arg1);
|
||||
}
|
||||
};
|
||||
imports.wbg.__wbg_error_1a35d3879f286b52 = function(arg0, arg1) {
|
||||
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
||||
wasm.__wbindgen_free(arg0, arg1 * 4);
|
||||
console.error(...v0);
|
||||
};
|
||||
imports.wbg.__wbg_hash_895b75e204995869 = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).hash;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_state_3840cb635545b27b = function() { return handleError(function (arg0) {
|
||||
const ret = getObject(arg0).state;
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_get_2d1407dba3452350 = function(arg0, arg1) {
|
||||
const ret = getObject(arg0)[takeObject(arg1)];
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
||||
const obj = getObject(arg1);
|
||||
const ret = typeof(obj) === 'number' ? obj : undefined;
|
||||
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
||||
};
|
||||
imports.wbg.__wbg_isSafeInteger_c87467ed96815119 = function(arg0) {
|
||||
const ret = Number.isSafeInteger(getObject(arg0));
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbindgen_is_string = function(arg0) {
|
||||
const ret = typeof(getObject(arg0)) === 'string';
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_entries_aaf7a1fbe90f014a = function(arg0) {
|
||||
const ret = Object.entries(getObject(arg0));
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_length_2cd798326f2cc4c1 = function(arg0) {
|
||||
const ret = getObject(arg0).length;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_get_590a2cd912f2ae46 = function(arg0, arg1) {
|
||||
const ret = getObject(arg0)[arg1 >>> 0];
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbindgen_is_null = function(arg0) {
|
||||
const ret = getObject(arg0) === null;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
||||
const ret = getObject(arg0) === undefined;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_pathname_805641640383ca79 = function() { return handleError(function (arg0, arg1) {
|
||||
const ret = getObject(arg1).pathname;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_search_083c5449552cf16e = function() { return handleError(function (arg0, arg1) {
|
||||
const ret = getObject(arg1).search;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_hash_d124cf237fe7b7c1 = function() { return handleError(function (arg0, arg1) {
|
||||
const ret = getObject(arg1).hash;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_new_3047bf4b4f02b802 = function(arg0, arg1) {
|
||||
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbindgen_number_new = function(arg0) {
|
||||
const ret = arg0;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_set_f1a4ac8f3a605b11 = function(arg0, arg1, arg2) {
|
||||
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
||||
};
|
||||
imports.wbg.__wbg_new_25e89e4c66f17ba3 = function() { return handleError(function (arg0, arg1) {
|
||||
const ret = new URL(getStringFromWasm0(arg0, arg1));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_instanceof_Error_b074c76f6096db9b = function(arg0) {
|
||||
const ret = getObject(arg0) instanceof Error;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_name_642dd84602f48d65 = function(arg0) {
|
||||
const ret = getObject(arg0).name;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_message_dcca38fbff239fbf = function(arg0) {
|
||||
const ret = getObject(arg0).message;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_toString_eec28c54c24b830b = function(arg0) {
|
||||
const ret = getObject(arg0).toString();
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_document_99eddbbc11ec831e = function(arg0) {
|
||||
const ret = getObject(arg0).document;
|
||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_self_99737b4dcdf6f0d8 = function() { return handleError(function () {
|
||||
const ret = self.self;
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_window_9b61fbbf3564c4fb = function() { return handleError(function () {
|
||||
const ret = window.window;
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_globalThis_8e275ef40caea3a3 = function() { return handleError(function () {
|
||||
const ret = globalThis.globalThis;
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_global_5de1e0f82bddcd27 = function() { return handleError(function () {
|
||||
const ret = global.global;
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_newnoargs_e23b458e372830de = function(arg0, arg1) {
|
||||
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_length_0acb1cf9bbaf8519 = function(arg0) {
|
||||
const ret = getObject(arg0).length;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbindgen_memory = function() {
|
||||
const ret = wasm.memory;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_buffer_7af23f65f6c64548 = function(arg0) {
|
||||
const ret = getObject(arg0).buffer;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_new_cc9018bd6f283b6f = function(arg0) {
|
||||
const ret = new Uint8Array(getObject(arg0));
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_set_f25e869e4565d2a2 = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
||||
};
|
||||
imports.wbg.__wbg_process_e56fd54cf6319b6c = function(arg0) {
|
||||
const ret = getObject(arg0).process;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_versions_77e21455908dad33 = function(arg0) {
|
||||
const ret = getObject(arg0).versions;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_node_0dd25d832e4785d5 = function(arg0) {
|
||||
const ret = getObject(arg0).node;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_static_accessor_NODE_MODULE_26b231378c1be7dd = function() {
|
||||
const ret = module;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_require_0db1598d9ccecb30 = function() { return handleError(function (arg0, arg1, arg2) {
|
||||
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_crypto_b95d7173266618a9 = function(arg0) {
|
||||
const ret = getObject(arg0).crypto;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_msCrypto_5a86d77a66230f81 = function(arg0) {
|
||||
const ret = getObject(arg0).msCrypto;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_newwithlength_8f0657faca9f1422 = function(arg0) {
|
||||
const ret = new Uint8Array(arg0 >>> 0);
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_randomFillSync_91e2b39becca6147 = function() { return handleError(function (arg0, arg1, arg2) {
|
||||
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_subarray_da527dbd24eafb6b = function(arg0, arg1, arg2) {
|
||||
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_getRandomValues_b14734aa289bc356 = function() { return handleError(function (arg0, arg1) {
|
||||
getObject(arg0).getRandomValues(getObject(arg1));
|
||||
}, arguments) };
|
||||
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
||||
const v = getObject(arg0);
|
||||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_instanceof_Uint8Array_edb92795fc0c63b4 = function(arg0) {
|
||||
const ret = getObject(arg0) instanceof Uint8Array;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_instanceof_ArrayBuffer_b81b40c2ae0ab898 = function(arg0) {
|
||||
const ret = getObject(arg0) instanceof ArrayBuffer;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
||||
const ret = debugString(getObject(arg1));
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
||||
throw new Error(getStringFromWasm0(arg0, arg1));
|
||||
};
|
||||
imports.wbg.__wbg_then_842e65b843962f56 = function(arg0, arg1, arg2) {
|
||||
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_resolve_a9a87bdd64e9e62c = function(arg0) {
|
||||
const ret = Promise.resolve(getObject(arg0));
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_then_ce526c837d07b68f = function(arg0, arg1) {
|
||||
const ret = getObject(arg0).then(getObject(arg1));
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_is_40969b082b54c84d = function(arg0, arg1) {
|
||||
const ret = Object.is(getObject(arg0), getObject(arg1));
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_insertBefore_4df558a2aa0435c1 = function() { return handleError(function (arg0, arg1, arg2) {
|
||||
const ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_setnodeValue_77a78d32cf9e9152 = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).nodeValue = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
||||
};
|
||||
imports.wbg.__wbg_namespaceURI_3bb5841c365214c8 = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).namespaceURI;
|
||||
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
var len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_createElementNS_a0904ea4c02292f4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||
const ret = getObject(arg0).createElementNS(arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_setAttribute_8d90e00d652037be = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
||||
getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_setchecked_e37cbc4fab363e71 = function(arg0, arg1) {
|
||||
getObject(arg0).checked = arg1 !== 0;
|
||||
};
|
||||
imports.wbg.__wbg_setvalue_649eb7de76d4a493 = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
|
||||
};
|
||||
imports.wbg.__wbg_setvalue_8efcd1f77232ee9b = function(arg0, arg1, arg2) {
|
||||
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
|
||||
};
|
||||
imports.wbg.__wbg_createTextNode_72cf3c22f1eed9ee = function(arg0, arg1, arg2) {
|
||||
const ret = getObject(arg0).createTextNode(getStringFromWasm0(arg1, arg2));
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_appendChild_a86c0da8d152eae4 = function() { return handleError(function (arg0, arg1) {
|
||||
const ret = getObject(arg0).appendChild(getObject(arg1));
|
||||
return addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_setsubtreeid_6966527169be2ec4 = function(arg0, arg1) {
|
||||
getObject(arg0).__yew_subtree_id = arg1 >>> 0;
|
||||
};
|
||||
imports.wbg.__wbg_composedPath_d85b0cbc071610e9 = function(arg0) {
|
||||
const ret = getObject(arg0).composedPath();
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_cachekey_57f0ac7b26342cf7 = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).__yew_subtree_cache_key;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
||||
};
|
||||
imports.wbg.__wbg_subtreeid_05e7e8ba671b1a4e = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).__yew_subtree_id;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
||||
};
|
||||
imports.wbg.__wbg_instanceof_Element_4fafc1ceb4cdee77 = function(arg0) {
|
||||
const ret = getObject(arg0) instanceof Element;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_parentElement_d078cf0bd5c4b641 = function(arg0) {
|
||||
const ret = getObject(arg0).parentElement;
|
||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_parentNode_5da8bf287dc6bad7 = function(arg0) {
|
||||
const ret = getObject(arg0).parentNode;
|
||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_instanceof_ShadowRoot_66f9befa553d5ec6 = function(arg0) {
|
||||
const ret = getObject(arg0) instanceof ShadowRoot;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_host_8fb11848b02096c6 = function(arg0) {
|
||||
const ret = getObject(arg0).host;
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbg_setcachekey_a9744e4c550ca52b = function(arg0, arg1) {
|
||||
getObject(arg0).__yew_subtree_cache_key = arg1 >>> 0;
|
||||
};
|
||||
imports.wbg.__wbg_cancelBubble_7446704fccad1780 = function(arg0) {
|
||||
const ret = getObject(arg0).cancelBubble;
|
||||
return ret;
|
||||
};
|
||||
imports.wbg.__wbg_listenerid_25425097ae5fdb72 = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).__yew_listener_id;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
||||
};
|
||||
imports.wbg.__wbg_setlistenerid_007d4751f70f0e32 = function(arg0, arg1) {
|
||||
getObject(arg0).__yew_listener_id = arg1 >>> 0;
|
||||
};
|
||||
imports.wbg.__wbg_removeAttribute_8a8f459a4b627ec4 = function() { return handleError(function (arg0, arg1, arg2) {
|
||||
getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2));
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_value_f232184bd0e27b00 = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).value;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbg_querySelector_c03126fc82664294 = function() { return handleError(function (arg0, arg1, arg2) {
|
||||
const ret = getObject(arg0).querySelector(getStringFromWasm0(arg1, arg2));
|
||||
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
||||
}, arguments) };
|
||||
imports.wbg.__wbg_href_fbf5127aa00a8b86 = function(arg0, arg1) {
|
||||
const ret = getObject(arg1).href;
|
||||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||
const len0 = WASM_VECTOR_LEN;
|
||||
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
||||
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
||||
};
|
||||
imports.wbg.__wbindgen_closure_wrapper204 = function(arg0, arg1, arg2) {
|
||||
const ret = makeMutClosure(arg0, arg1, 34, __wbg_adapter_36);
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbindgen_closure_wrapper698 = function(arg0, arg1, arg2) {
|
||||
const ret = makeMutClosure(arg0, arg1, 34, __wbg_adapter_39);
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports.wbg.__wbindgen_closure_wrapper1699 = function(arg0, arg1, arg2) {
|
||||
const ret = makeMutClosure(arg0, arg1, 34, __wbg_adapter_42);
|
||||
return addHeapObject(ret);
|
||||
};
|
||||
imports['./snippets/blog-frontend-9dee7438ed9a57b2/asset/show.js'] = __wbg_star0;
|
||||
|
||||
if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
|
||||
input = fetch(input);
|
||||
}
|
||||
|
||||
|
||||
|
||||
const { instance, module } = await load(await input, imports);
|
||||
|
||||
wasm = instance.exports;
|
||||
init.__wbindgen_wasm_module = module;
|
||||
wasm.__wbindgen_start();
|
||||
return wasm;
|
||||
}
|
||||
|
||||
export default init;
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,86 +0,0 @@
|
|||
function fetch_get(t, url, callback) {
|
||||
const clazzName = t.className;
|
||||
t.disabled = true;
|
||||
t.className = clazzName + ' is-loading';
|
||||
fetch(url).then(response => response.json())
|
||||
.then(data => {
|
||||
t.className = clazzName;
|
||||
t.disabled = false;
|
||||
console.log(data);
|
||||
if (data.status === 0) {
|
||||
if (url.indexOf('push') > -1) {
|
||||
let d = document.createElement('div');
|
||||
d.innerHTML = 'Push successfully';
|
||||
t.parentNode.appendChild(d);
|
||||
} else {
|
||||
if (typeof(callback) === 'function')
|
||||
callback(data);
|
||||
else
|
||||
location.href = callback;
|
||||
}
|
||||
} else {
|
||||
showErr(data.error.detail);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
showErr(err);
|
||||
});
|
||||
}
|
||||
|
||||
function fetch_post(t, url, data, callback) {
|
||||
const clazzName = t.className;
|
||||
t.disabled = true;
|
||||
t.className = clazzName + ' is-loading';
|
||||
let contentType, body
|
||||
if (typeof(data.size) === 'undefined') {
|
||||
contentType = 'application/json';
|
||||
body = JSON.stringify(data);
|
||||
} else {
|
||||
contentType = 'application/x-www-form-urlencoded';
|
||||
let formBody = [];
|
||||
data.forEach(function (value, key, map) {
|
||||
formBody.push(key + "=" + encodeURIComponent(value));
|
||||
});
|
||||
body = formBody.join("&");
|
||||
}
|
||||
const options = {
|
||||
method: 'POST',
|
||||
body: body,
|
||||
headers: {
|
||||
'Content-Type': contentType + ';charset=UTF-8'
|
||||
}
|
||||
};
|
||||
fetch(url, options).then(response => response.json())
|
||||
.then(data => {
|
||||
t.className = clazzName;
|
||||
t.disabled = false;
|
||||
console.log(data);
|
||||
if (data.status === 0) {
|
||||
if (typeof(callback) === 'function')
|
||||
callback(data);
|
||||
else
|
||||
location.href = callback;
|
||||
} else {
|
||||
showErr(data.error.detail);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
|
||||
function showErr(err) {
|
||||
document.getElementById('errorMessage').innerHTML = err;
|
||||
document.getElementById('notification').style.display = 'block';
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
|
||||
const $notification = $delete.parentNode;
|
||||
|
||||
$delete.addEventListener('click', () => {
|
||||
$notification.style.display = 'none';
|
||||
});
|
||||
});
|
||||
});
|
Binary file not shown.
|
@ -1,30 +0,0 @@
|
|||
<!DOCTYPE html><html lang="en"><head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title></title>
|
||||
<style>body{margin:1px}</style>
|
||||
<link rel="stylesheet" href="/asset/codemirror.min.css" />
|
||||
<link rel="stylesheet" href="/asset/toastui-editor.min.css" />
|
||||
<script type="application/javascript">
|
||||
let editor = null;
|
||||
function initEditor() {
|
||||
const c = window.parent.document.getElementById('post-content');
|
||||
const content = c==null?'':c.innerHTML;
|
||||
const Editor = toastui.Editor;
|
||||
editor = new Editor({
|
||||
el: document.querySelector('#editorArea'),
|
||||
previewStyle: 'vertical',
|
||||
initialEditType: 'wysiwyg',
|
||||
initialValue: content,
|
||||
height: '500px',
|
||||
});
|
||||
}
|
||||
function getContent() {
|
||||
return editor.getMarkdown();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="editorArea"></div>
|
||||
<script src="/asset/toastui-editor-all.min.js" onload="initEditor()"></script>
|
||||
</body></html>
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 8.5 KiB |
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
.hero.has-background{position:relative;overflow:hidden}.hero-background{position:absolute;object-fit:cover;object-position:bottom;width:100%;height:100%}.hero-background.is-transparent{opacity:.5}.burger{background-color:rgba(0,0,0,0);border:none}.navbar-brand{align-items:center}
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
/*!
|
||||
* Font Awesome Free 6.0.0-beta2 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||
*/
|
||||
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url(/asset/webfonts/fa-regular-400.woff2) format("woff2"),url(/asset/webfonts/fa-regular-400.ttf) format("truetype")}.fa-regular,.far{font-family:"Font Awesome 6 Free";font-weight:400}
|
Binary file not shown.
|
@ -1,132 +0,0 @@
|
|||
export function getContent() {
|
||||
const w = document.getElementById("editor").contentWindow;
|
||||
// var iframeDocument = document.getElementById("iframe").contentDocument;
|
||||
// https://developer.mozilla.org/zh-CN/docs/Web/API/Window/postMessage
|
||||
// w.editor.setMarkdown(c, false);
|
||||
return w.getContent();
|
||||
}
|
||||
|
||||
let allTagsBox = null;
|
||||
|
||||
export function inputTag(event) {
|
||||
if (event.keyCode !== 13)
|
||||
return;
|
||||
const source = event.target;
|
||||
addTag(source.value);
|
||||
source.value = '';
|
||||
source.focus();
|
||||
}
|
||||
|
||||
export function showOriginTags(tags) {
|
||||
allTagsBox = document.getElementById('tags');
|
||||
document.getElementById('tagsContainer').style.display = 'block';
|
||||
for (let i = 0; i < tags.length; i++)
|
||||
addTag(tags[i]);
|
||||
}
|
||||
|
||||
function addTag(val) {
|
||||
if (!val)
|
||||
return;
|
||||
const tag = document.createElement('span');
|
||||
tag.className = "tag is-primary is-medium";
|
||||
tag.innerHTML = val;
|
||||
|
||||
const a = document.createElement('button');
|
||||
a.className = "delete is-small";
|
||||
a.addEventListener('click', function () {
|
||||
allTagsBox.removeChild(tag);
|
||||
})
|
||||
tag.appendChild(a);
|
||||
allTagsBox.appendChild(tag);
|
||||
// allTagsBox.insertBefore(tag, tagInput);
|
||||
}
|
||||
|
||||
export function getAddedTags() {
|
||||
const tags = [];
|
||||
for (let i = 0; i < allTagsBox.childNodes.length; i++) {
|
||||
if (allTagsBox.childNodes[i].tagName === 'SPAN')
|
||||
tags.push(allTagsBox.childNodes[i].firstChild.nodeValue);
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
export function randomTitleImage(event, post_id, callback) {
|
||||
let source = event.target || event.srcElement;
|
||||
while (source.tagName !== 'BUTTON' && source.parentNode)
|
||||
source = source.parentNode;
|
||||
source.disabled = true;
|
||||
const content = source.innerHtml;
|
||||
source.innerHtml = '';
|
||||
const classes = source.className;
|
||||
source.className += ' is-loading';
|
||||
fetch('/tool/random-title-image/' + post_id)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
console.log(data);
|
||||
if (data.status === 0) {
|
||||
const image = "/"+data.data;
|
||||
document.getElementById('title-image').setAttribute("src", image+"?_rnd="+Math.random());
|
||||
callback(image);
|
||||
}
|
||||
source.innerHtml = content;
|
||||
source.className = classes;
|
||||
source.disabled = false;
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
source.innerHtml = content;
|
||||
source.className = classes;
|
||||
source.disabled = false;
|
||||
});
|
||||
}
|
||||
|
||||
export const uploadTitleImage = (event, postId, files, callback) => {
|
||||
const file = files[0];
|
||||
// check file type
|
||||
if (!['image/jpeg', 'image/png'].includes(file.type)) {
|
||||
// document.getElementById('uploaded_image').innerHTML = '<div class="alert alert-danger">Only .jpg and .png image are allowed</div>';
|
||||
// document.getElementsByName('sample_image')[0].value = '';
|
||||
return;
|
||||
}
|
||||
// check file size
|
||||
if (file.size > 2 * 1024 * 1024) {
|
||||
// document.getElementById('uploaded_image').innerHTML = '<div class="alert alert-danger">File must be less than 2 MB</div>';
|
||||
// document.getElementsByName('sample_image')[0].value = '';
|
||||
return;
|
||||
}
|
||||
const form_data = new FormData();
|
||||
form_data.append('file', file);
|
||||
form_data.append('title-image-file-name', file.name);
|
||||
let source = event.target || event.srcElement;
|
||||
while (source.tagName !== 'BUTTON' && source.parentNode)
|
||||
source = source.parentNode;
|
||||
console.log(source);
|
||||
source.disabled = true;
|
||||
const content = source.innerHtml;
|
||||
source.innerHtml = '';
|
||||
const classes = source.className;
|
||||
source.className += ' is-loading';
|
||||
fetch("/image/upload-title-image/" + postId, {
|
||||
method:"POST",
|
||||
body : form_data
|
||||
}).then(response => response.json()).then(data => {
|
||||
// document.getElementById('uploaded_image').innerHTML = '<div class="alert alert-success">Image Uploaded Successfully</div> <img src="'+responseData.image_source+'" class="img-thumbnail" />';
|
||||
// document.getElementsByName('sample_image')[0].value = '';
|
||||
console.log(data);
|
||||
if (data.status === 0) {
|
||||
const image = "/"+data.data.relative_path;
|
||||
document.getElementById('title-image').setAttribute("src", image+"?_rnd="+Math.random());
|
||||
callback(image);
|
||||
}
|
||||
source.innerHtml = content;
|
||||
source.className = classes;
|
||||
source.disabled = false;
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
source.innerHtml = content;
|
||||
source.className = classes;
|
||||
source.disabled = false;
|
||||
});
|
||||
|
||||
}
|
Binary file not shown.
|
@ -1,12 +0,0 @@
|
|||
export function userLanguage() {
|
||||
return navigator.language;
|
||||
}
|
||||
export function showNotificationBox() {
|
||||
document.getElementById('notification').style.display = 'block';
|
||||
}
|
||||
export function hideNotificationBox(event) {
|
||||
let source = event.target || event.srcElement;
|
||||
while (source.id !== 'notification' && source.parentNode)
|
||||
source = source.parentNode;
|
||||
source.style.display = 'none';
|
||||
}
|
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
/*!
|
||||
* Font Awesome Free 6.0.0-beta2 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||
*/
|
||||
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(/asset/webfonts/fa-solid-900.woff2) format("woff2"),url(/asset/webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-family:"Font Awesome 6 Free";font-weight:900}
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,24 +0,0 @@
|
|||
<!DOCTYPE html><html lang="en"><head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/asset/favicon.ico">
|
||||
<link rel="icon" type="image/x-icon" href="/asset/favicon.ico">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="/asset/bulma.min-82aac43507618108.css">
|
||||
<link rel="stylesheet" href="/asset/fontawesome.min-5e9e696c59c57e83.css">
|
||||
<link rel="stylesheet" href="/asset/regular.min-a0c258fb7c5f655d.css">
|
||||
<link rel="stylesheet" href="/asset/solid.min-70c2e5caa950974d.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/asset/index-e5f29e5940420852.css">
|
||||
|
||||
<link rel="preload" href="/asset/blog-frontend-640500e0e5a849c3_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
|
||||
<link rel="modulepreload" href="/asset/blog-frontend-640500e0e5a849c3.js"></head>
|
||||
<body>
|
||||
<script type="module">import init from '/asset/blog-frontend-640500e0e5a849c3.js';init('/asset/blog-frontend-640500e0e5a849c3_bg.wasm');</script></body></html>
|
|
@ -1,24 +1,20 @@
|
|||
[
|
||||
("blog-frontend-640500e0e5a849c3.js", include_bytes!(r#"..\resource\asset/blog-frontend-640500e0e5a849c3.js.gz"#), "text/javascript"),
|
||||
("blog-frontend-640500e0e5a849c3_bg.wasm", include_bytes!(r#"..\resource\asset/blog-frontend-640500e0e5a849c3_bg.wasm.gz"#), "application/wasm"),
|
||||
("bulma.min-82aac43507618108.css", include_bytes!(r#"..\resource\asset/bulma.min-82aac43507618108.css.gz"#), "text/css"),
|
||||
("codemirror.min.css", include_bytes!(r#"..\resource\asset/codemirror.min.css.gz"#), "text/css"),
|
||||
("common.js", include_bytes!(r#"..\resource\asset/common.js.gz"#), "text/javascript"),
|
||||
("editor.html", include_bytes!(r#"..\resource\asset/editor.html.gz"#), "text/html; charset=utf-8"),
|
||||
("favicon.ico", include_bytes!(r#"..\resource\asset/favicon.ico.gz"#), ""),
|
||||
("fontawesome.min-5e9e696c59c57e83.css", include_bytes!(r#"..\resource\asset/fontawesome.min-5e9e696c59c57e83.css.gz"#), "text/css"),
|
||||
("index-e5f29e5940420852.css", include_bytes!(r#"..\resource\asset/index-e5f29e5940420852.css.gz"#), "text/css"),
|
||||
("logo.png", include_bytes!(r#"..\resource\asset/logo.png.gz"#), ""),
|
||||
("regular.min-a0c258fb7c5f655d.css", include_bytes!(r#"..\resource\asset/regular.min-a0c258fb7c5f655d.css.gz"#), "text/css"),
|
||||
("snippets/blog-frontend-9dee7438ed9a57b2/asset/editor.js", include_bytes!(r#"..\resource\asset/snippets\blog-frontend-9dee7438ed9a57b2\asset\editor.js.gz"#), "text/javascript"),
|
||||
("snippets/blog-frontend-9dee7438ed9a57b2/asset/show.js", include_bytes!(r#"..\resource\asset/snippets\blog-frontend-9dee7438ed9a57b2\asset\show.js.gz"#), "text/javascript"),
|
||||
("solid.min-70c2e5caa950974d.css", include_bytes!(r#"..\resource\asset/solid.min-70c2e5caa950974d.css.gz"#), "text/css"),
|
||||
("toastui-editor-all.min.js", include_bytes!(r#"..\resource\asset/toastui-editor-all.min.js.gz"#), "text/javascript"),
|
||||
("toastui-editor.min.css", include_bytes!(r#"..\resource\asset/toastui-editor.min.css.gz"#), "text/css"),
|
||||
("webfonts/fa-brands-400.ttf", include_bytes!(r#"..\resource\asset/webfonts\fa-brands-400.ttf.gz"#), ""),
|
||||
("webfonts/fa-brands-400.woff2", include_bytes!(r#"..\resource\asset/webfonts\fa-brands-400.woff2.gz"#), ""),
|
||||
("webfonts/fa-regular-400.ttf", include_bytes!(r#"..\resource\asset/webfonts\fa-regular-400.ttf.gz"#), ""),
|
||||
("webfonts/fa-regular-400.woff2", include_bytes!(r#"..\resource\asset/webfonts\fa-regular-400.woff2.gz"#), ""),
|
||||
("webfonts/fa-solid-900.ttf", include_bytes!(r#"..\resource\asset/webfonts\fa-solid-900.ttf.gz"#), ""),
|
||||
("webfonts/fa-solid-900.woff2", include_bytes!(r#"..\resource\asset/webfonts\fa-solid-900.woff2.gz"#), ""),
|
||||
(".stage/bulma.min-82aac43507618108.css", include_bytes!(r#"..\resource\asset/.stage\bulma.min-82aac43507618108.css.gz"#), "text/css"),
|
||||
(".stage/codemirror.min.css", include_bytes!(r#"..\resource\asset/.stage\codemirror.min.css.gz"#), "text/css"),
|
||||
(".stage/common.js", include_bytes!(r#"..\resource\asset/.stage\common.js.gz"#), "text/javascript"),
|
||||
(".stage/editor.html", include_bytes!(r#"..\resource\asset/.stage\editor.html.gz"#), "text/html; charset=utf-8"),
|
||||
(".stage/favicon.ico", include_bytes!(r#"..\resource\asset/.stage\favicon.ico.gz"#), ""),
|
||||
(".stage/fontawesome.min-5e9e696c59c57e83.css", include_bytes!(r#"..\resource\asset/.stage\fontawesome.min-5e9e696c59c57e83.css.gz"#), "text/css"),
|
||||
(".stage/index-ec4ef66164c33b9c.css", include_bytes!(r#"..\resource\asset/.stage\index-ec4ef66164c33b9c.css.gz"#), "text/css"),
|
||||
(".stage/logo.png", include_bytes!(r#"..\resource\asset/.stage\logo.png.gz"#), ""),
|
||||
(".stage/regular.min-a0c258fb7c5f655d.css", include_bytes!(r#"..\resource\asset/.stage\regular.min-a0c258fb7c5f655d.css.gz"#), "text/css"),
|
||||
(".stage/solid.min-70c2e5caa950974d.css", include_bytes!(r#"..\resource\asset/.stage\solid.min-70c2e5caa950974d.css.gz"#), "text/css"),
|
||||
(".stage/toastui-editor-all.min.js", include_bytes!(r#"..\resource\asset/.stage\toastui-editor-all.min.js.gz"#), "text/javascript"),
|
||||
(".stage/toastui-editor.min.css", include_bytes!(r#"..\resource\asset/.stage\toastui-editor.min.css.gz"#), "text/css"),
|
||||
(".stage/webfonts/fa-brands-400.ttf", include_bytes!(r#"..\resource\asset/.stage\webfonts\fa-brands-400.ttf.gz"#), ""),
|
||||
(".stage/webfonts/fa-brands-400.woff2", include_bytes!(r#"..\resource\asset/.stage\webfonts\fa-brands-400.woff2.gz"#), ""),
|
||||
(".stage/webfonts/fa-regular-400.ttf", include_bytes!(r#"..\resource\asset/.stage\webfonts\fa-regular-400.ttf.gz"#), ""),
|
||||
(".stage/webfonts/fa-regular-400.woff2", include_bytes!(r#"..\resource\asset/.stage\webfonts\fa-regular-400.woff2.gz"#), ""),
|
||||
(".stage/webfonts/fa-solid-900.ttf", include_bytes!(r#"..\resource\asset/.stage\webfonts\fa-solid-900.ttf.gz"#), ""),
|
||||
(".stage/webfonts/fa-solid-900.woff2", include_bytes!(r#"..\resource\asset/.stage\webfonts\fa-solid-900.woff2.gz"#), ""),
|
||||
]
|
||||
|
|
|
@ -42,10 +42,10 @@ wasm-bindgen-futures = "0.4"
|
|||
weblog = "0.3.0"
|
||||
web-sys = { version = "0.3", features = ["Window", "Document", "HtmlDocument"] }
|
||||
wee_alloc = { version = "0.4" }
|
||||
#yew = "0.18"
|
||||
#yew-router = "0.15"
|
||||
yew = {git = "https://github.com/yewstack/yew", branch = "master", features = ["csr"]}
|
||||
yew-router = { git = "https://github.com/yewstack/yew", branch="master" }
|
||||
yew = { version = "0.20", features = ["csr"] }
|
||||
yew-router = "0.17"
|
||||
#yew = {git = "https://github.com/yewstack/yew", branch = "master", features = ["csr"]}
|
||||
#yew-router = { git = "https://github.com/yewstack/yew", branch="master" }
|
||||
yew-agent = { git = "https://github.com/yewstack/yew", branch="master" }
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -1,8 +1,8 @@
|
|||
<!DOCTYPE html><html lang="en"><head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" asset="">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/asset/favicon.ico">
|
||||
<link rel="icon" type="image/x-icon" href="/asset/favicon.ico">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="/bulma.min-82aac43507618108.css">
|
||||
<link rel="stylesheet" href="/fontawesome.min-5e9e696c59c57e83.css">
|
||||
|
@ -18,7 +18,8 @@
|
|||
|
||||
<link rel="stylesheet" href="/index-ec4ef66164c33b9c.css">
|
||||
|
||||
<link rel="preload" href="/blog-frontend-c64936652d93b260_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
|
||||
<link rel="modulepreload" href="/blog-frontend-c64936652d93b260.js"></head>
|
||||
<link rel="preload" href="/blog-frontend-7f71e347869e2ebb_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
|
||||
<link rel="modulepreload" href="/blog-frontend-7f71e347869e2ebb.js"></head>
|
||||
<body>
|
||||
<script type="module">import init from '/blog-frontend-c64936652d93b260.js';init('/blog-frontend-c64936652d93b260_bg.wasm');</script></body></html>
|
||||
|
||||
<script type="module">import init from '/blog-frontend-7f71e347869e2ebb.js';init('/blog-frontend-7f71e347869e2ebb_bg.wasm');</script></body></html>
|
|
@ -1,24 +1,24 @@
|
|||
<!doctype html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/asset/>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/asset/favicon.ico" />
|
||||
<link rel="icon" type="image/x-icon" href="/asset/favicon.ico" />
|
||||
<title></title>
|
||||
<link data-trunk rel="css" href="asset/bulma.min.css"/>
|
||||
<link data-trunk rel="css" href="asset/fontawesome.min.css"/>
|
||||
<link data-trunk rel="css" href="asset/regular.min.css"/>
|
||||
<link data-trunk rel="css" href="asset/solid.min.css"/>
|
||||
<link data-trunk rel="copy-file" href="asset/editor.html"/>
|
||||
<link data-trunk rel="copy-file" href="asset/codemirror.min.css"/>
|
||||
<link data-trunk rel="copy-file" href="asset/toastui-editor.min.css"/>
|
||||
<link data-trunk rel="copy-file" href="asset/toastui-editor-all.min.js"/>
|
||||
<link data-trunk rel="copy-file" href="asset/favicon.ico"/>
|
||||
<link data-trunk rel="copy-file" href="asset/logo.png"/>
|
||||
<link data-trunk rel="copy-file" href="asset/common.js"/>
|
||||
<link data-trunk rel="copy-dir" href="asset/webfonts"/>
|
||||
<link data-trunk rel="css" href="asset/bulma.min.css"/asset/>
|
||||
<link data-trunk rel="css" href="asset/fontawesome.min.css"/asset/>
|
||||
<link data-trunk rel="css" href="asset/regular.min.css"/asset/>
|
||||
<link data-trunk rel="css" href="asset/solid.min.css"/asset/>
|
||||
<link data-trunk rel="copy-file" href="asset/editor.html"/asset/>
|
||||
<link data-trunk rel="copy-file" href="asset/codemirror.min.css"/asset/>
|
||||
<link data-trunk rel="copy-file" href="asset/toastui-editor.min.css"/asset/>
|
||||
<link data-trunk rel="copy-file" href="asset/toastui-editor-all.min.js"/asset/>
|
||||
<link data-trunk rel="copy-file" href="asset/favicon.ico"/asset/>
|
||||
<link data-trunk rel="copy-file" href="asset/logo.png"/asset/>
|
||||
<link data-trunk rel="copy-file" href="asset/common.js"/asset/>
|
||||
<link data-trunk rel="copy-dir" href="asset/webfonts"/asset/>
|
||||
<link data-trunk rel="sass" href="asset/index.scss" />
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -15,7 +15,7 @@ impl Component for Unauthorized {
|
|||
Self {}
|
||||
}
|
||||
|
||||
fn changed(&mut self, ctx: &Context<Self>) -> bool {
|
||||
fn changed(&mut self, ctx: &Context<Self>, old_props: &Self::Properties) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ impl Component for PostDetail {
|
|||
}
|
||||
}
|
||||
|
||||
fn changed(&mut self, ctx: &Context<Self>) -> bool {
|
||||
fn changed(&mut self, ctx: &Context<Self>, old_props: &Self::Properties) -> bool {
|
||||
let changed = self.post_id != ctx.props().post_id;
|
||||
if changed {
|
||||
weblog::console_log!("changed to load");
|
||||
|
|
|
@ -323,7 +323,7 @@ impl Component for PostCompose {
|
|||
false
|
||||
}
|
||||
|
||||
fn changed(&mut self, ctx: &Context<Self>) -> bool {
|
||||
fn changed(&mut self, ctx: &Context<Self>, old_props: &Self::Properties) -> bool {
|
||||
let changed = self.post_id != ctx.props().post_id;
|
||||
if changed {
|
||||
self.post_id = ctx.props().post_id;
|
||||
|
|
|
@ -140,7 +140,7 @@ impl Component for PostDetail {
|
|||
}
|
||||
}
|
||||
|
||||
fn changed(&mut self, ctx: &Context<Self>) -> bool {
|
||||
fn changed(&mut self, ctx: &Context<Self>, old_props: &Self::Properties) -> bool {
|
||||
let changed = self.post_id != ctx.props().post_id;
|
||||
if changed {
|
||||
weblog::console_log!("changed to load");
|
||||
|
|
|
@ -30,7 +30,7 @@ impl Component for PostsListByTag {
|
|||
}
|
||||
}
|
||||
|
||||
fn changed(&mut self, ctx: &Context<Self>) -> bool {
|
||||
fn changed(&mut self, ctx: &Context<Self>, old_props: &Self::Properties) -> bool {
|
||||
let changed = self.tag_name.ne(&ctx.props().tag_name);
|
||||
if changed {
|
||||
weblog::console_log!("changed to load");
|
||||
|
|
Loading…
Reference in New Issue