Skip to content

Commit c7bbdb7

Browse files
merge branch v2 (release 2.0.0-beta.31)
2 parents 49b7361 + 26ef9dd commit c7bbdb7

35 files changed

Lines changed: 258 additions & 174 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/automad/legacy
22
/automad/src/client/blocks/legacy
3+
/automad/tests/main/config
34
/lib/vendor
45
/packages
56
/pages

CHANGELOG.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# Changelog
22

3-
## [v2.0.0-beta.30](https://github.com/marcantondahmen/automad/commit/8b9df8deefd967bb51ae295f9d6f33c838cb0bfa)
3+
## [v2.0.0-beta.31](https://github.com/marcantondahmen/automad/commit/a7c4b9459ef02cff4ae0f6d4ca6e2349f438f1a8)
44

5-
Fri, 8 May 2026 12:27:19 +0200
5+
Sun, 10 May 2026 12:28:25 +0200
6+
7+
### New Features
8+
9+
- add option to disable in-page edit mode in page previews ([644c5aeab](https://github.com/marcantondahmen/automad/commit/644c5aeabfc56952f0a00c491453cbaae1f3a4c3))
10+
11+
### Bugfixes
12+
13+
- fix email template styling ([99736f93b](https://github.com/marcantondahmen/automad/commit/99736f93be5883ef8a788e27f4efc92167e438ad))
14+
15+
## [v2.0.0-beta.30](https://github.com/marcantondahmen/automad/commit/49b7361b10dcfe671798b826933bcb8c76a7c6fd)
16+
17+
Fri, 8 May 2026 12:29:17 +0200
618

719
### Bugfixes
820

automad/lang/english.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@
266266
"importFromUrl": "Import",
267267
"importUrl": "Enter a file URL",
268268
"importing": "Importing ...",
269-
"inPageEdit": "In-Page edit mode",
270-
"inPagePlaceholder": "Add content here",
269+
"inPageEdit": "Open preview",
270+
"inPageEditDisable": "Disable Editing",
271+
"inPageEditEnable": "Enable Editing",
271272
"indent": "Indent",
272273
"inlineCode": "Inline code",
273274
"insertCodeBlock": "Insert code block",

automad/src/client/admin/components/NavTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const renderLabelFunction: SortableTreeRenderLabelFunction = (
9797
: App.system.i18n && data.parentUrl === '/'
9898
? 'translate'
9999
: data.private
100-
? 'eye-slash-fill'
100+
? 'ban-fill'
101101
: 'file-earmark-text';
102102

103103
const titleBinding = active

automad/src/client/admin/components/PageSelectTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import { ModalComponent } from './Modal/Modal';
6060
const renderLabelFunction: SortableTreeRenderLabelFunction = (
6161
data: SortableTreeKeyValue
6262
): string => {
63-
const icon = data.private ? 'eye-slash-fill' : 'folder2';
63+
const icon = data.private ? 'ban-fill' : 'folder2';
6464

6565
return html`
6666
<label class="${CSS.navItem}">

automad/src/client/admin/components/Pages/Page.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,13 @@ const renderMenu = (): string => {
251251
</am-dropdown>
252252
</am-switcher>
253253
<am-filter placeholder="filterContent"></am-filter>
254-
<am-private-indicator
255-
class="${CSS.displaySmallNone}"
256-
></am-private-indicator>
254+
<a
255+
href="${App.baseIndex}${getPageURL()}"
256+
class="${CSS.displaySmallNone} ${CSS.menuItem} ${CSS.menuItemIcon}"
257+
${Attr.tooltip}="${App.text('inPageEdit')}"
258+
>
259+
<i class="bi bi-eye"></i>
260+
</a>
257261
${renderDropdown()}
258262
</div>
259263
</section>

automad/src/client/admin/core/css.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export const enum CSS {
284284

285285
menu = 'am-c-menu',
286286
menuItem = 'am-c-menu__item',
287+
menuItemIcon = 'am-c-menu__item--icon',
287288

288289
modal = 'am-c-modal',
289290
modalDialog = 'am-c-modal__dialog',
@@ -337,8 +338,6 @@ export const enum CSS {
337338
platformSelectIcon = 'am-f-platform-select__icon',
338339
platformSelectActiveIcon = 'am-f-platform-select__active-icon',
339340

340-
privacyIndicator = 'am-c-privacy-indicator',
341-
342341
root = 'am-c-root',
343342
rootLoading = 'am-c-root--loading',
344343
rootPending = 'am-c-root--pending',

automad/src/client/admin/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ import('./components/Forms/TrashForm');
102102
import('./components/Home/RecentlyEditedPages');
103103
import('./components/Home/ServerInfo');
104104

105-
import('./components/Indicators/Menu/PrivateIndicator');
106105
import('./components/Indicators/Navbar/DebugIndicator');
107106
import('./components/Indicators/Navbar/OutdatedPackagesIndicator');
108107
import('./components/Indicators/Navbar/SystemUpdateIndicator');

automad/src/client/admin/styles/components/index.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
@import 'nav.less';
5757
@import 'navbar.less';
5858
@import 'notify.less';
59-
@import 'privacy-indicator.less';
6059
@import 'root.less';
6160
@import 'spinner.less';
6261
@import 'switcher.less';

automad/src/client/admin/styles/components/menu.less

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
gap: 0.6rem;
4444
line-height: @am-menu-height;
4545
color: @am-menu-item-clr;
46-
transition: color 0.2s, box-shadow 0.2s;
46+
transition:
47+
color 0.2s,
48+
box-shadow 0.2s;
4749
cursor: pointer;
4850
user-select: none;
4951

@@ -54,5 +56,9 @@
5456
&.am-active {
5557
box-shadow: inset 0 -2px 0 0 hsl(var(--am-clr-text));
5658
}
59+
60+
&--icon {
61+
font-size: 1.2rem;
62+
}
5763
}
5864
}

0 commit comments

Comments
 (0)