Skip to content

add viewfontmenu#8

Merged
Pita merged 2 commits intoether:masterfrom
guybrush:master
Apr 30, 2011
Merged

add viewfontmenu#8
Pita merged 2 commits intoether:masterfrom
guybrush:master

Conversation

@guybrush
Copy link
Copy Markdown
Contributor

Very simple.

Did not read the code entirely though, so you might want to check if i am doing anything wrong.

@Pita
Copy link
Copy Markdown
Contributor

Pita commented Apr 27, 2011

Thats cool for writing code in a pad. But can you do it so it needs less space horizontal, cause we want to keep it easy to embed

@guybrush
Copy link
Copy Markdown
Contributor Author

Less width will make the currently used font unreadable, since the name is too long.

But i think that is ok. Will make it smaller.

@Pita
Copy link
Copy Markdown
Contributor

Pita commented Apr 30, 2011

Sorry if there was an missunderstood. I mean: make a icon out of it or something, cause at the moment there are only two options or?

@guybrush
Copy link
Copy Markdown
Contributor Author

Yes there are only 2 options.

Sorry making an icon and stuff would take some time which i dont have right now (also i really didn't look into all of the code).

So this will be a "quickfix" for me for now, if someone comes up with a neat looking icon+menue I would be glad to install it :p

Pita added a commit that referenced this pull request Apr 30, 2011
@Pita Pita merged commit e9b3a17 into ether:master Apr 30, 2011
pedrobmarin pushed a commit to pedrobmarin/etherpad-lite that referenced this pull request Aug 17, 2020
Add settings option to force SameSite=None server side
JohnMcLear added a commit to JohnMcLear/etherpad that referenced this pull request Apr 29, 2026
Round 2 of Qodo review on ether#7601. Addressing the action-required items:

#1 Badge bypassed pad baseURL — derive basePath the same way
   padBootstrap.js does (`new URL('..', window.location.href).pathname`)
   and prefix the fetch with it. Subpath deployments now reach
   /<prefix>/api/version-status instead of 404ing.

ether#2 Updater poller could get stuck — `getCurrentState()` is now inside
   the try/finally so a one-time loadState() rejection can't leave
   `checkInFlight=true` and permanently silence polling.

ether#3 Updates off hung admin page — UpdatePage now self-fetches and
   renders explicit `disabled` (404), `unauthorized` (401/403), and
   `error` states instead of staying on "Loading...". Banner-driven
   prefetch is still honoured if it landed first.

ether#11 NaN polling interval — coerce `checkIntervalHours` to a number,
   clamp to [1h, 168h], log a warning and fall back to 6h on
   non-finite input. Math.max(1, NaN) === NaN previously meant a
   malformed settings.json could turn the poller into a tight loop.

ether#13 State validation accepted broken subfields — `isValid()` now
   inspects `latest.{version,tag,body,publishedAt,htmlUrl,prerelease}`,
   `vulnerableBelow[].{announcedBy,threshold}`, and
   `email.{severeAt,vulnerableAt,vulnerableNewReleaseTag}`. A
   hand-edited file with a number where a string is expected is now
   treated as corrupt and reset to EMPTY_STATE rather than crashing
   later in semver parsing or email rendering.

ether#14 Badge cache stampede — wrap `computeOutdated()` in a single-flight
   promise so concurrent requests at cache expiry await one shared
   computation instead of fanning out into N redundant disk reads.

Plus six new state.test.ts cases covering each new validation guard.

Pushing back on the remaining items:

ether#4 `updates.tier` defaults to `notify` — intentional. The whole point
   of tier 1 is to surface the "you are behind" signal to admins by
   default. Opt-in defeats the purpose; the existing failure mode
   (admin never hears about a security-relevant release) is exactly
   what this PR is fixing.

ether#5/ether#8 Admin status endpoint admin-auth — `currentVersion` is already
   public via `/health`, so wrapping the route in admin-auth doesn't
   reduce the disclosure surface meaningfully. Operators who want it
   gated set `updates.requireAdminForStatus=true` (already wired and
   covered by the comment on the route handler).

ether#10 Plain `https://` URLs in planning doc — planning markdown is
   viewed in editors and on GitHub where protocol-relative URLs would
   either render literally or break entirely. Keeping `https://`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
JohnMcLear added a commit to JohnMcLear/etherpad that referenced this pull request Apr 30, 2026
Address remaining Qodo findings on the theme-color rollout:

- (#1) Skip emitting the meta entirely when settings.skinName is not
  colibris — the helper only knows colibris's --bg-color values, so
  on no-skin or third-party skins the previous code would emit a
  white meta over a non-white toolbar.
- (ether#4) Drop the prefers-color-scheme: dark variant. The pad's
  client-side dark mode is also gated on a localStorage white-mode
  override that no media query can express, so the dark meta could
  paint a dark address bar over a still-light toolbar. The single
  baseline meta always matches what the user sees on first paint.
- (ether#8) Remove the redundant module.exports assignment; rely on the
  ES named export only (tsx handles the require() interop).
- (ether#9) Iterate the toolbar variants in CSS source order and let the
  last match win, matching the cascade in pad-variants.css when
  multiple *-toolbar tokens are present.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants