Skip to content

Commit

Permalink
Built, fixed a little node runtime bug and added image buttons click …
Browse files Browse the repository at this point in the history
…status
  • Loading branch information
TommasoPrinetti committed Jan 22, 2025
1 parent 5e84a53 commit d5a0a8b
Show file tree
Hide file tree
Showing 150 changed files with 1,934 additions and 77,230 deletions.
26 changes: 4 additions & 22 deletions .svelte-kit/ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ declare module '$env/static/private' {
export const HOMEBREW_REPOSITORY: string;
export const TMPDIR: string;
export const npm_config_global_prefix: string;
export const CONDA_SHLVL: string;
export const TERM_PROGRAM_VERSION: string;
export const CONDA_PROMPT_MODIFIER: string;
export const GSETTINGS_SCHEMA_DIR_CONDA_BACKUP: string;
export const ZDOTDIR: string;
export const ORIGINAL_XDG_CURRENT_DESKTOP: string;
export const MallocNanoZone: string;
Expand All @@ -50,21 +47,17 @@ declare module '$env/static/private' {
export const USER: string;
export const COMMAND_MODE: string;
export const npm_config_globalconfig: string;
export const CONDA_EXE: string;
export const SSH_AUTH_SOCK: string;
export const __CF_USER_TEXT_ENCODING: string;
export const npm_execpath: string;
export const _CE_CONDA: string;
export const PATH: string;
export const GSETTINGS_SCHEMA_DIR: string;
export const npm_package_json: string;
export const npm_config_engine_strict: string;
export const _: string;
export const XML_CATALOG_FILES: string;
export const LaunchInstanceID: string;
export const npm_config_userconfig: string;
export const npm_config_init_module: string;
export const USER_ZDOTDIR: string;
export const CONDA_PREFIX: string;
export const __CFBundleIdentifier: string;
export const npm_command: string;
export const PWD: string;
Expand All @@ -77,25 +70,23 @@ declare module '$env/static/private' {
export const XPC_FLAGS: string;
export const npm_config_node_gyp: string;
export const npm_package_version: string;
export const _CE_M: string;
export const XPC_SERVICE_NAME: string;
export const VSCODE_INJECTION: string;
export const SHLVL: string;
export const HOME: string;
export const VSCODE_GIT_ASKPASS_MAIN: string;
export const HOMEBREW_PREFIX: string;
export const npm_config_cache: string;
export const CONDA_PYTHON_EXE: string;
export const LOGNAME: string;
export const npm_lifecycle_script: string;
export const VSCODE_GIT_IPC_HANDLE: string;
export const NVM_BIN: string;
export const CONDA_DEFAULT_ENV: string;
export const npm_config_user_agent: string;
export const VSCODE_GIT_ASKPASS_NODE: string;
export const GIT_ASKPASS: string;
export const INFOPATH: string;
export const HOMEBREW_CELLAR: string;
export const SECURITYSESSIONID: string;
export const npm_node_execpath: string;
export const npm_config_prefix: string;
export const COLORTERM: string;
Expand Down Expand Up @@ -142,10 +133,7 @@ declare module '$env/dynamic/private' {
HOMEBREW_REPOSITORY: string;
TMPDIR: string;
npm_config_global_prefix: string;
CONDA_SHLVL: string;
TERM_PROGRAM_VERSION: string;
CONDA_PROMPT_MODIFIER: string;
GSETTINGS_SCHEMA_DIR_CONDA_BACKUP: string;
ZDOTDIR: string;
ORIGINAL_XDG_CURRENT_DESKTOP: string;
MallocNanoZone: string;
Expand All @@ -156,21 +144,17 @@ declare module '$env/dynamic/private' {
USER: string;
COMMAND_MODE: string;
npm_config_globalconfig: string;
CONDA_EXE: string;
SSH_AUTH_SOCK: string;
__CF_USER_TEXT_ENCODING: string;
npm_execpath: string;
_CE_CONDA: string;
PATH: string;
GSETTINGS_SCHEMA_DIR: string;
npm_package_json: string;
npm_config_engine_strict: string;
_: string;
XML_CATALOG_FILES: string;
LaunchInstanceID: string;
npm_config_userconfig: string;
npm_config_init_module: string;
USER_ZDOTDIR: string;
CONDA_PREFIX: string;
__CFBundleIdentifier: string;
npm_command: string;
PWD: string;
Expand All @@ -183,25 +167,23 @@ declare module '$env/dynamic/private' {
XPC_FLAGS: string;
npm_config_node_gyp: string;
npm_package_version: string;
_CE_M: string;
XPC_SERVICE_NAME: string;
VSCODE_INJECTION: string;
SHLVL: string;
HOME: string;
VSCODE_GIT_ASKPASS_MAIN: string;
HOMEBREW_PREFIX: string;
npm_config_cache: string;
CONDA_PYTHON_EXE: string;
LOGNAME: string;
npm_lifecycle_script: string;
VSCODE_GIT_IPC_HANDLE: string;
NVM_BIN: string;
CONDA_DEFAULT_ENV: string;
npm_config_user_agent: string;
VSCODE_GIT_ASKPASS_NODE: string;
GIT_ASKPASS: string;
INFOPATH: string;
HOMEBREW_CELLAR: string;
SECURITYSESSIONID: string;
npm_node_execpath: string;
npm_config_prefix: string;
COLORTERM: string;
Expand Down
2 changes: 1 addition & 1 deletion .svelte-kit/generated/server/internal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .svelte-kit/output/server/.vite/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@
"_escaping.js"
],
"css": [
"_app/immutable/assets/_page.6Bh70td-.css"
"_app/immutable/assets/_page.W1SmDnTH.css"
]
}
}
67 changes: 50 additions & 17 deletions .svelte-kit/output/server/chunks/internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function mutable_source(initial_value, immutable = false) {
return s;
}
function set(source2, value) {
if (active_reaction !== null && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT)) !== 0 && // If the source was created locally within the current derived, then
if (active_reaction !== null && !untracking && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT)) !== 0 && // If the source was created locally within the current derived, then
// we allow the mutation.
(derived_sources === null || !derived_sources.includes(source2))) {
state_unsafe_mutation();
Expand All @@ -100,16 +100,11 @@ function internal_set(source2, value) {
source2.v = value;
source2.wv = increment_write_version();
mark_reactions(source2, DIRTY);
if (active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & BRANCH_EFFECT) === 0) {
if (new_deps !== null && new_deps.includes(source2)) {
set_signal_status(active_effect, DIRTY);
schedule_effect(active_effect);
if (active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
if (untracked_writes === null) {
set_untracked_writes([source2]);
} else {
if (untracked_writes === null) {
set_untracked_writes([source2]);
} else {
untracked_writes.push(source2);
}
untracked_writes.push(source2);
}
}
}
Expand Down Expand Up @@ -303,7 +298,7 @@ function create_effect(type, fn, sync, push2 = true) {
} else if (fn !== null) {
schedule_effect(effect2);
}
var inert = sync && effect2.deps === null && effect2.first === null && effect2.nodes_start === null && effect2.teardown === null && (effect2.f & EFFECT_HAS_DERIVED) === 0;
var inert = sync && effect2.deps === null && effect2.first === null && effect2.nodes_start === null && effect2.teardown === null && (effect2.f & (EFFECT_HAS_DERIVED | BOUNDARY_EFFECT)) === 0;
if (!inert && !is_root && push2) {
if (parent_effect !== null) {
push_effect(effect2, parent_effect);
Expand Down Expand Up @@ -476,6 +471,7 @@ let queued_root_effects = [];
let flush_count = 0;
let dev_effect_stack = [];
let active_reaction = null;
let untracking = false;
function set_active_reaction(reaction) {
active_reaction = reaction;
}
Expand Down Expand Up @@ -584,6 +580,31 @@ function handle_error(error, effect2, previous_effect, component_context2) {
return;
}
}
function schedule_possible_effect_self_invalidation(signal, effect2, depth = 0) {
var reactions = signal.reactions;
if (reactions === null) return;
for (var i = 0; i < reactions.length; i++) {
var reaction = reactions[i];
if ((reaction.f & DERIVED) !== 0) {
schedule_possible_effect_self_invalidation(
/** @type {Derived} */
reaction,
effect2,
depth + 1
);
} else if (effect2 === reaction) {
if (depth === 0) {
set_signal_status(reaction, DIRTY);
} else if ((reaction.f & CLEAN) !== 0) {
set_signal_status(reaction, MAYBE_DIRTY);
}
schedule_effect(
/** @type {Effect} */
reaction
);
}
}
}
function update_reaction(reaction) {
var previous_deps = new_deps;
var previous_skipped_deps = skipped_deps;
Expand All @@ -592,6 +613,7 @@ function update_reaction(reaction) {
var previous_skip_reaction = skip_reaction;
var prev_derived_sources = derived_sources;
var previous_component_context = component_context;
var previous_untracking = untracking;
var flags = reaction.f;
new_deps = /** @type {null | Value[]} */
null;
Expand All @@ -601,6 +623,7 @@ function update_reaction(reaction) {
skip_reaction = !is_flushing_effect && (flags & UNOWNED) !== 0;
derived_sources = null;
component_context = reaction.ctx;
untracking = false;
read_version++;
try {
var result = (
Expand Down Expand Up @@ -628,6 +651,19 @@ function update_reaction(reaction) {
remove_reactions(reaction, skipped_deps);
deps.length = skipped_deps;
}
if (is_runes() && untracked_writes !== null && (reaction.f & (DERIVED | MAYBE_DIRTY | DIRTY)) === 0) {
for (i = 0; i < /** @type {Source[]} */
untracked_writes.length; i++) {
schedule_possible_effect_self_invalidation(
untracked_writes[i],
/** @type {Effect} */
reaction
);
}
}
if (previous_reaction !== null) {
read_version++;
}
return result;
} finally {
new_deps = previous_deps;
Expand All @@ -637,6 +673,7 @@ function update_reaction(reaction) {
skip_reaction = previous_skip_reaction;
derived_sources = prev_derived_sources;
component_context = previous_component_context;
untracking = previous_untracking;
}
}
function remove_reaction(signal, dependency) {
Expand Down Expand Up @@ -889,7 +926,7 @@ function get(signal) {
);
return value;
}
if (active_reaction !== null) {
if (active_reaction !== null && !untracking) {
if (derived_sources !== null && derived_sources.includes(signal)) {
state_unsafe_local_read();
}
Expand All @@ -903,10 +940,6 @@ function get(signal) {
} else {
new_deps.push(signal);
}
if (untracked_writes !== null && active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & BRANCH_EFFECT) === 0 && untracked_writes.includes(signal)) {
set_signal_status(active_effect, DIRTY);
schedule_effect(active_effect);
}
}
} else if (is_derived && /** @type {Derived} */
signal.deps === null) {
Expand Down Expand Up @@ -1491,7 +1524,7 @@ const options = {
<div class="error">
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
},
version_hash: "1ibsnxw"
version_hash: "1yuvo53"
};
async function get_hooks() {
let handle;
Expand Down
Loading

0 comments on commit d5a0a8b

Please sign in to comment.