Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions public/js/admin-app-form.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { clr, el, inp as inpById, q as qSel, qa, qi, tgt } from '/js/utils.js?v=eadafbcd';
import { clr, el, inp as inpById, q as qSel, qa, qi, tgt } from '/js/utils.js?v=7d0a2f7d';
import { html, raw, setHtml } from '/js/html.js?v=c71f8903';
import { loadLocalIcons, resolveIcon, iconChain, cdnIconRef, splitIconRef } from '/js/icons.js?v=9c8c550c';
import { state } from '/js/admin-state.js?v=831e219e';
Expand All @@ -21,13 +21,13 @@ import {
reveal,
setTogDisabled,
swapContent,
} from '/js/admin-shared.js?v=d2e8b6dc';
import { createListbox } from '/js/listbox.js?v=f057351d';
} from '/js/admin-shared.js?v=9d789975';
import { createListbox } from '/js/listbox.js?v=c14ab216';
import { MAX_LABELS } from '/js/badge-logic.js?v=9e6d9d4b';
import { renderColorControl, BADGE_DEFAULT } from '/js/admin-color-control.js?v=e963853a';
import { renderColorControl, BADGE_DEFAULT } from '/js/admin-color-control.js?v=15d6a495';
import { badgeErrorAdvice, TONE } from '/js/admin-error.js?v=e4ea7820';
import { fluidHoverClear, fluidHoverKb } from '/js/fluid-hover.js?v=cb886e86';
import { iconSvg } from '/js/icon-set.js?v=08b74a28';
import { iconSvg } from '/js/icon-set.js?v=34af798f';

export function buildFolderForm(body, item) {
const children = item?.children || [];
Expand Down
4 changes: 2 additions & 2 deletions public/js/admin-auth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { apiGet, apiPost } from '/js/admin-shared.js?v=d2e8b6dc';
import { apiGet, apiPost } from '/js/admin-shared.js?v=9d789975';
import { t } from '/js/i18n.js?v=1f1ea9c1';
import { pwStrength } from '/js/password-strength.js?v=42f45ac7';
import { el, inp as inpById, qa } from '/js/utils.js?v=eadafbcd';
import { el, inp as inpById, qa } from '/js/utils.js?v=7d0a2f7d';

export async function checkAuth(onLogin) {
try {
Expand Down
6 changes: 3 additions & 3 deletions public/js/admin-color-control.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PE_SVG, initInlineEdit, toast, reveal } from '/js/admin-shared.js?v=d2e8b6dc';
import { PE_SVG, initInlineEdit, toast, reveal } from '/js/admin-shared.js?v=9d789975';
import { t } from '/js/i18n.js?v=1f1ea9c1';
import { html, raw, setHtml } from '/js/html.js?v=c71f8903';
import { qa, q } from '/js/utils.js?v=eadafbcd';
import { iconSvg } from '/js/icon-set.js?v=08b74a28';
import { qa, q } from '/js/utils.js?v=7d0a2f7d';
import { iconSvg } from '/js/icon-set.js?v=34af798f';
import { HUE_NAMES, ROLE_NAMES, TILE_KEYWORDS, pageTheme, tileColor } from '/js/palette.js?v=3fb8ae43';

const CC_SWATCHES = ['#1c1c1e', '#8e8e93', '#f2f2f7', '#ff393c', '#ffcd00', '#35c759', '#0289ff', '#cb30df'];
Expand Down
2 changes: 1 addition & 1 deletion public/js/admin-drag.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import { applyDrop, canJoinFolder, folderRowZone } from '/js/admin-drag-logic.js?v=6b767e76';
import { state } from '/js/admin-state.js?v=831e219e';
import { snapshotItems } from '/js/admin-save-logic.js?v=60a82419';
import { qa } from '/js/utils.js?v=eadafbcd';
import { qa } from '/js/utils.js?v=7d0a2f7d';

/** @type {(before: unknown) => void} */
let _save = () => {};
Expand Down
12 changes: 6 additions & 6 deletions public/js/admin-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
import { collapsedFolders, filter, state } from '/js/admin-state.js?v=831e219e';
import { snapshotItems } from '/js/admin-save-logic.js?v=60a82419';
import { reorderItems } from '/js/admin-logic.js?v=cbb7417d';
import { initDrag, wireRowDrag } from '/js/admin-drag.js?v=36006b2b';
import { paintIcon } from '/js/admin-shared.js?v=d2e8b6dc';
import { clr, el, qa, setUserText } from '/js/utils.js?v=eadafbcd';
import { initDrag, wireRowDrag } from '/js/admin-drag.js?v=e31d2128';
import { paintIcon } from '/js/admin-shared.js?v=9d789975';
import { clr, el, qa, setUserText } from '/js/utils.js?v=7d0a2f7d';
import { html, raw, setHtml } from '/js/html.js?v=c71f8903';
import { t } from '/js/i18n.js?v=1f1ea9c1';
import { sizeLabel } from '/js/admin-widget-form.js?v=fd3dcc6c';
import { widgetGlyph } from '/js/widget-glyphs.js?v=e1d968ad';
import { iconSvg } from '/js/icon-set.js?v=08b74a28';
import { sizeLabel } from '/js/admin-widget-form.js?v=f9235794';
import { widgetGlyph } from '/js/widget-glyphs.js?v=648cc374';
import { iconSvg } from '/js/icon-set.js?v=34af798f';

/** @type {{ openModal: (idx: number|null) => void,
openFolderPicker: (appId: string|null, targetFolderId?: string|null) => void,
Expand Down
8 changes: 4 additions & 4 deletions public/js/admin-settings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { toast, apiGet, apiPost, reveal, swapContent } from '/js/admin-shared.js?v=d2e8b6dc';
import { toast, apiGet, apiPost, reveal, swapContent } from '/js/admin-shared.js?v=9d789975';
import { pwStrength } from '/js/password-strength.js?v=42f45ac7';
import { t } from '/js/i18n.js?v=1f1ea9c1';
import {
Expand All @@ -9,9 +9,9 @@ import {
BLOCK,
} from '/js/admin-logic.js?v=cbb7417d';
import { confirmText } from '/js/modal.js?v=11fa1eff';
import { el, inp, setUserText } from '/js/utils.js?v=eadafbcd';
import { renderColorControl } from '/js/admin-color-control.js?v=e963853a';
import { BACKDROP } from '/js/background.js?v=175d9a7f';
import { el, inp, setUserText } from '/js/utils.js?v=7d0a2f7d';
import { renderColorControl } from '/js/admin-color-control.js?v=15d6a495';
import { BACKDROP } from '/js/background.js?v=92d3f3c2';

/* Mirrors the server's rule: auth cannot be switched on with no password. */
let _passwordSet = false;
Expand Down
4 changes: 2 additions & 2 deletions public/js/admin-shared.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* Stateless helpers shared by the admin modules. Mutable state stays out. */
import { recoversSession, toastHoldMs } from '/js/admin-logic.js?v=cbb7417d';
import { el, q } from '/js/utils.js?v=eadafbcd';
import { el, q } from '/js/utils.js?v=7d0a2f7d';
import { t } from '/js/i18n.js?v=1f1ea9c1';
import { iconChain } from '/js/icons.js?v=9c8c550c';
import { iconSvg } from '/js/icon-set.js?v=08b74a28';
import { iconSvg } from '/js/icon-set.js?v=34af798f';

export const API = '';

Expand Down
10 changes: 5 additions & 5 deletions public/js/admin-widget-form.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { state } from '/js/admin-state.js?v=831e219e';
import { PE_SVG, initInlineEdit, swapContent } from '/js/admin-shared.js?v=d2e8b6dc';
import { createListbox } from '/js/listbox.js?v=f057351d';
import { renderWidgetConfigForm } from '/js/widget-config-form.js?v=73604add';
import { PE_SVG, initInlineEdit, swapContent } from '/js/admin-shared.js?v=9d789975';
import { createListbox } from '/js/listbox.js?v=c14ab216';
import { renderWidgetConfigForm } from '/js/widget-config-form.js?v=a57a9501';
import { html, raw, setHtml } from '/js/html.js?v=c71f8903';
import { sizesForView, widgetConfigMode, rejectionLines, carriesTypedValues } from '/js/admin-logic.js?v=cbb7417d';
import { t } from '/js/i18n.js?v=1f1ea9c1';
import { q, qi, qa } from '/js/utils.js?v=eadafbcd';
import { iconSvg } from '/js/icon-set.js?v=08b74a28';
import { q, qi, qa } from '/js/utils.js?v=7d0a2f7d';
import { iconSvg } from '/js/icon-set.js?v=34af798f';

const SIZES_WITH_ICONS = new Set(['small', 'medium', 'large', 'xlarge']);

Expand Down
20 changes: 10 additions & 10 deletions public/js/admin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { buildAppForm, buildFolderForm, captureActLabels, serializeKvRows } from '/js/admin-app-form.js?v=58e2b685';
import { checkAuth, requireLogin, wirePasswordStrength } from '/js/admin-auth.js?v=2bd61e6c';
import { initList, render, syncFilterUI } from '/js/admin-list.js?v=4e82ea4a';
import { buildAppForm, buildFolderForm, captureActLabels, serializeKvRows } from '/js/admin-app-form.js?v=7604b201';
import { checkAuth, requireLogin, wirePasswordStrength } from '/js/admin-auth.js?v=1d822df2';
import { initList, render, syncFilterUI } from '/js/admin-list.js?v=fe5e00b2';
import { resolveAdminSection } from '/js/admin-logic.js?v=cbb7417d';
import {
buildAppItem,
Expand All @@ -10,7 +10,7 @@ import {
snapshotItems,
upsertItem,
} from '/js/admin-save-logic.js?v=60a82419';
import { loadSettings, settingsDirty, showBgFields, showWallpaperFile } from '/js/admin-settings.js?v=23cfe19f';
import { loadSettings, settingsDirty, showBgFields, showWallpaperFile } from '/js/admin-settings.js?v=9ed2fd03';
import {
apiGet,
apiPost,
Expand All @@ -19,16 +19,16 @@ import {
reveal,
setReauthHandler,
toast,
} from '/js/admin-shared.js?v=d2e8b6dc';
} from '/js/admin-shared.js?v=9d789975';
import { collapsedFolders, filter, state } from '/js/admin-state.js?v=831e219e';
import { buildWidgetForm } from '/js/admin-widget-form.js?v=fd3dcc6c';
import { buildWidgetForm } from '/js/admin-widget-form.js?v=f9235794';
import { initFluidHover } from '/js/fluid-hover.js?v=cb886e86';
import { initGlideSelect, syncGlideSelect } from '/js/glide-select.js?v=8b39e9d0';
import { createListbox } from '/js/listbox.js?v=f057351d';
import { createListbox } from '/js/listbox.js?v=c14ab216';
import { html, raw, setHtml } from '/js/html.js?v=c71f8903';
import { initI18n, LANGUAGES, t } from '/js/i18n.js?v=1f1ea9c1';
import { loadLocalIcons } from '/js/icons.js?v=9c8c550c';
import { ensureSprite, iconSvg } from '/js/icon-set.js?v=08b74a28';
import { ensureSprite, iconSvg } from '/js/icon-set.js?v=34af798f';
import {
clearSkipTls,
convert,
Expand All @@ -49,8 +49,8 @@ import {
watchSystemTheme,
writeMode,
} from '/js/theme.js?v=eeafa4b5';
import { el, inp, q, qa, clr, setUserText, tgt } from '/js/utils.js?v=eadafbcd';
import { applyBackground, resolveBackground } from '/js/background.js?v=175d9a7f';
import { el, inp, q, qa, clr, setUserText, tgt } from '/js/utils.js?v=7d0a2f7d';
import { applyBackground, resolveBackground } from '/js/background.js?v=92d3f3c2';
import { parseYamlTolerant, YamlLiteError } from '/js/yaml-lite.js?v=6ebb564c';

ensureSprite();
Expand Down
2 changes: 1 addition & 1 deletion public/js/background.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import { cssColor, sanitizeCssUrl } from '/js/utils.js?v=eadafbcd';
import { cssColor, sanitizeCssUrl } from '/js/utils.js?v=7d0a2f7d';
import { loadWallpaper, saveWallpaper } from '/js/wallpaper-cache.js?v=c5f8a3e6';

export const BACKDROP = '#0d1117';
Expand Down
6 changes: 0 additions & 6 deletions public/js/brand-mark.js

This file was deleted.

10 changes: 5 additions & 5 deletions public/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import {
setUserText,
teardownWidgets,
titleWhenTruncated,
} from '/js/utils.js?v=eadafbcd';
} from '/js/utils.js?v=7d0a2f7d';
import { initFluidHover } from '/js/fluid-hover.js?v=cb886e86';
import { initSpotlight } from '/js/spotlight.js?v=9056fab5';
import { initSpotlight } from '/js/spotlight.js?v=a6f5775a';
import { html, setHtml, raw } from '/js/html.js?v=c71f8903';
import { initI18n, t, currentLang } from '/js/i18n.js?v=1f1ea9c1';
import { pwStrength, passwordMismatch } from '/js/password-strength.js?v=42f45ac7';
Expand All @@ -40,7 +40,7 @@ import {
buildMobile,
resetMobileChrome,
mkFolderGlyph,
} from '/js/ui.js?v=cdfe7685';
} from '/js/ui.js?v=67ae7e42';
import { badgeMinimum, badgeSignature, computeBadgeVisual, readBadgeUpdate } from '/js/badge-logic.js?v=9e6d9d4b';
import { formatNumber } from '/js/format-number.js?v=4a5ccef4';
import { closeBadgePopover, wireBadgePopover } from '/js/badge-popover.js?v=aa52b1a3';
Expand All @@ -52,12 +52,12 @@ import {
landingAfterSetup,
restorePage,
} from '/js/dashboard-logic.js?v=0d519f8b';
import { applyBackground, BACKDROP, resolveBackground } from '/js/background.js?v=175d9a7f';
import { applyBackground, BACKDROP, resolveBackground } from '/js/background.js?v=92d3f3c2';
import { jitter } from '/js/jitter.js?v=4eeef4c9';
import { isMobileLayout, onLayoutChange } from '/js/layout.js?v=e9f4b607';
import { startWakeLock } from '/js/wake-lock.js?v=6b9591cf';
import { applyLabelTones, loadSamplingImage, sampleImage, toneForColor } from '/js/label-contrast.js?v=c1ac6fb8';
import { ensureSprite, iconSvg } from '/js/icon-set.js?v=08b74a28';
import { ensureSprite, iconSvg } from '/js/icon-set.js?v=34af798f';
import { pageTheme, paletteColor } from '/js/palette.js?v=3fb8ae43';
import { THEME_KEY, applyTheme, prefersDark, readMode, resolveTheme } from '/js/theme.js?v=eeafa4b5';

Expand Down
1 change: 0 additions & 1 deletion public/js/icon-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ const TOGGLES = {
};
const CLOUD = 'M6 20h10a4 4 0 0 0 0-8 5 5 0 0 0-9.6 1.2A3.5 3.5 0 0 0 6 20z';

/* Keep the fractions. Whole units drift from the logo files. */
function logoIcon() {
const f = n => +n.toFixed(3);
const k = 24 / 1024;
Expand Down
4 changes: 2 additions & 2 deletions public/js/listbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import { nextActiveIndex } from '/js/admin-logic.js?v=cbb7417d';
import { fluidHoverClear, fluidHoverKb } from '/js/fluid-hover.js?v=cb886e86';
import { html, raw, setHtml } from '/js/html.js?v=c71f8903';
import { qa } from '/js/utils.js?v=eadafbcd';
import { iconSvg } from '/js/icon-set.js?v=08b74a28';
import { qa } from '/js/utils.js?v=7d0a2f7d';
import { iconSvg } from '/js/icon-set.js?v=34af798f';

const CHEV = iconSvg('chevrons', 22, 'solid', 'dd-chev');

Expand Down
2 changes: 1 addition & 1 deletion public/js/spotlight.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fluidHoverClear, fluidHoverKb } from '/js/fluid-hover.js?v=cb886e86';
import { mk, clr, el, inp as inpById, q, qa, setUserText } from '/js/utils.js?v=eadafbcd';
import { mk, clr, el, inp as inpById, q, qa, setUserText } from '/js/utils.js?v=7d0a2f7d';
import { t } from '/js/i18n.js?v=1f1ea9c1';

/* Attached to the window so a re-open can undo the previous one. */
Expand Down
2 changes: 1 addition & 1 deletion public/js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
q,
qa,
setUserText,
} from '/js/utils.js?v=eadafbcd';
} from '/js/utils.js?v=7d0a2f7d';
import { t, currentLang } from '/js/i18n.js?v=1f1ea9c1';
import { toneForColor } from '/js/label-contrast.js?v=c1ac6fb8';
import { mobileMetrics, gridColumnWidth, gridCellCount } from '/js/mobile-metrics.js?v=349f4300';
Expand Down
10 changes: 7 additions & 3 deletions public/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { toneForColor } from '/js/label-contrast.js?v=c1ac6fb8';
import { SETTINGS_ICON, SETTINGS_ICON_LIGHT } from '/js/settings-icon.js?v=4079b66a';
import { mkGlassRim } from '/js/glass-rim.js?v=3faec233';
import { smoothRectPath } from '/js/smooth-corner.js?v=b7dda7e1';
import { BRAND_MARK } from '/js/brand-mark.js?v=e363e477';
import { t } from '/js/i18n.js?v=1f1ea9c1';
import { pageTheme, tileColor } from '/js/palette.js?v=3fb8ae43';

Expand Down Expand Up @@ -436,8 +435,13 @@ export function renderEmptyState(items) {

const box = mk('div');
box.className = 'empty-state';
const mark = mk('img', { src: BRAND_MARK, alt: '' });
mark.className = 'empty-state-mark';
const mark = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
mark.setAttribute('class', 'sy-icon empty-state-mark');
mark.setAttribute('aria-hidden', 'true');
mark.setAttribute('focusable', 'false');
const use = document.createElementNS('http://www.w3.org/2000/svg', 'use');
use.setAttribute('href', '#sy-solid-logo');
mark.append(use);
const title = mk('h2');
title.className = 'empty-state-title';
title.textContent = t('home.emptyTitle');
Expand Down
8 changes: 4 additions & 4 deletions public/js/widget-config-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import { t } from '/js/i18n.js?v=1f1ea9c1';
import { html, raw, setHtml } from '/js/html.js?v=c71f8903';
import { reveal, wireInlineEdit } from '/js/admin-shared.js?v=d2e8b6dc';
import { createListbox } from '/js/listbox.js?v=f057351d';
import { renderColorControl } from '/js/admin-color-control.js?v=e963853a';
import { reveal, wireInlineEdit } from '/js/admin-shared.js?v=9d789975';
import { createListbox } from '/js/listbox.js?v=c14ab216';
import { renderColorControl } from '/js/admin-color-control.js?v=15d6a495';
import {
seedCarried,
applyOptionSet,
Expand All @@ -15,7 +15,7 @@ import {
visibleFieldFlags,
} from '/js/admin-logic.js?v=cbb7417d';
import { optionsErrorAdvice, TONE } from '/js/admin-error.js?v=e4ea7820';
import { qi } from '/js/utils.js?v=eadafbcd';
import { qi } from '/js/utils.js?v=7d0a2f7d';

const PE =
'<svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5"/><path d="M18.4 2.6a1.85 1.85 0 0 1 2.6 2.6l-9.1 9.1-3.4 1 1-3.4z"/></svg>';
Expand Down
2 changes: 1 addition & 1 deletion public/js/widget-glyphs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import { iconSvg } from '/js/icon-set.js?v=08b74a28';
import { iconSvg } from '/js/icon-set.js?v=34af798f';

/* Keys are the glyph names in widget.json files. Renaming one breaks that widget. */
/** @type {Record<string, string>} */
Expand Down
Loading