Type | Old enhance | Today's enhance | Proposal |
---|---|---|---|
Simple result - script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const overlayNode = document.getElementsByClassName("overlayer").item(0); | |
const timeout = 20; | |
const config = { | |
subtree: true, | |
characterData: true, | |
}; | |
const layerObserver = new MutationObserver(mutated); | |
function mutated(mutations) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { invalidate } from '$app/navigation'; | |
// this action (https://svelte.dev/tutorial/actions) allows us to | |
// progressively enhance a <form> that already works without JS | |
/** | |
* @param {HTMLFormElement} form | |
* @param {{ | |
* pending?: ({ data, form }: { data: FormData; form: HTMLFormElement }) => void; | |
* error?: ({ | |
* data, | |
* form, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function handle({ event, resolve }) { | |
const cookies = await cookie.parse(event.request.headers.get('cookie') || ''); | |
if (event.url.pathname == '/login') { | |
// skip verifying user, and allow to load website | |
const response = await resolve(event); | |
return response; | |
} | |
const user = DB.User.findOne({session: cookies.token}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { build, files, version } from '$service-worker'; | |
// https://github.com/microsoft/TypeScript/issues/11781 - this is needed for TS and ESLint | |
/// env serviceworker | |
const globalThis = /** @type {unknown} */ (self); | |
/// <reference no-default-lib="true"/> | |
/// <reference lib="es2020" /> | |
/// <reference lib="WebWorker" /> | |
const sw = /** @type {ServiceWorkerGlobalScope & typeof globalThis} */ (globalThis); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import { shell } from 'electron'; | |
</script> | |
<div> | |
<a href="url" on:click|preventDefault={() => shell.openExternal(this.href)}>link</a> | |
</div> |
NOTE: This preset is for PE version 4.7.x
Set microphone volume at 10% (-60dB).
Put file to ~/.config/PulseEffects/input
NOTE: This preset is for PE version 4.7.x
Put files to ~/.config/PulseEffects/output
Preset was created primarly for Z333 & Z337 and also was tested on Z333, but probably/maybe can be used on any 2.1 speaker. Preset can be customized for Your needs and Your audio system.
Preset is focused primarly for music.
For best experience, I recommend to set subwoofer "volume" at half (50%), on back of Your subwoofer. Like on this image:
NewerOlder