GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(view): apply notifier configuration · stackpress/stackpress@cf51da9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .agents/references
    • 00012-view-api-contracts.md
  • packages
    • stackpress-admin/src
      • client
        • LayoutAdmin.tsx
      • transform/pages
        • copy.ts
        • create.ts
        • detail.ts
        • detail
          • create.ts
          • search.ts
        • remove.ts
        • restore.ts
        • search.ts
        • update.ts
    • stackpress-api/src/pages
      • oauth.ts
    • stackpress-view
      • src
        • client/layout
          • LayoutBlank.tsx
          • LayoutPanel.tsx
          • LayoutProvider.tsx
        • helpers.ts
      • tests
        • helpers.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.agents/references/00012-view-api-contracts.md‎

Copy file name to clipboardExpand all lines: .agents/references/00012-view-api-contracts.md
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ setViewProps(req: Request, res: Response, ctx: Server): void
113113
It returns immediately when the no-view flag exists. Otherwise it copies
114114
sanitized config subsets into `res.data`:
115115

116-
- `view`: `base` default `/`, `props` default `{}`;
116+
- `view`: `base` default `/`, `props` default `{}`, notifier options from
117+
`notify` default `{}`;
117118
- `brand`: name `Stackpress`, logo `/logo.png`, icon `/icon.png`, favicon
118119
`/favicon.ico`;
119120
- `language`: key `locale`, locale `en_US`, languages `{}`.
Collapse file

‎packages/stackpress-admin/src/client/LayoutAdmin.tsx‎

Copy file name to clipboard
+2-13Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//modules
2-
import { useEffect } from 'react';
3-
import { notify, unload } from 'frui/Notifier';
41
//stackpress-view
52
import LayoutPanel from 'stackpress-view/layout/LayoutPanel';
63
//stackpress-admin
@@ -18,18 +15,10 @@ export default function LayoutAdmin(props: AdminLayoutProps) {
1815
} = props;
1916
const { admin = {} } = data || {};
2017
const { menu = [] } = admin;
21-
//effects
22-
// unload any flash messages from the server
23-
useEffect(() => {
24-
unload(cookie);
25-
}, []);
26-
// if there is an error in the response, show a notification
27-
useEffect(() => {
28-
response?.error && notify('error', response.error);
29-
}, [ response?.error ]);
3018
//render
3119
return (
3220
<LayoutPanel
21+
cookie={cookie}
3322
menu={menu}
3423
data={data}
3524
session={session}
@@ -39,4 +28,4 @@ export default function LayoutAdmin(props: AdminLayoutProps) {
3928
{children}
4029
</LayoutPanel>
4130
);
42-
};
31+
};
Collapse file

‎packages/stackpress-admin/src/transform/pages/copy.ts‎

Copy file name to clipboardExpand all lines: packages/stackpress-admin/src/transform/pages/copy.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ const admin = ctx.config.path<AdminConfig>('admin', {});
131131
//set data for template layer
132132
res.data.set('view', {
133133
base: view.base || '/',
134-
props: view.props || {}
134+
props: view.props || {},
135+
notify: view.notify || {}
135136
});
136137
res.data.set('brand', {
137138
name: brand.name || 'Stackpress',
Collapse file

‎packages/stackpress-admin/src/transform/pages/create.ts‎

Copy file name to clipboardExpand all lines: packages/stackpress-admin/src/transform/pages/create.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ const admin = ctx.config.path<AdminConfig>('admin', {});
118118
//set data for template layer
119119
res.data.set('view', {
120120
base: view.base || '/',
121-
props: view.props || {}
121+
props: view.props || {},
122+
notify: view.notify || {}
122123
});
123124
res.data.set('brand', {
124125
name: brand.name || 'Stackpress',
Collapse file

‎packages/stackpress-admin/src/transform/pages/detail.ts‎

Copy file name to clipboardExpand all lines: packages/stackpress-admin/src/transform/pages/detail.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ const admin = ctx.config.path<AdminConfig>('admin', {});
136136
//set data for template layer
137137
res.data.set('view', {
138138
base: view.base || '/',
139-
props: view.props || {}
139+
props: view.props || {},
140+
notify: view.notify || {}
140141
});
141142
res.data.set('brand', {
142143
name: brand.name || 'Stackpress',
Collapse file

‎packages/stackpress-admin/src/transform/pages/detail/create.ts‎

Copy file name to clipboardExpand all lines: packages/stackpress-admin/src/transform/pages/detail/create.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ const admin = ctx.config.path<AdminConfig>('admin', {});
157157
//set data for template layer
158158
res.data.set('view', {
159159
base: view.base || '/',
160-
props: view.props || {}
160+
props: view.props || {},
161+
notify: view.notify || {}
161162
});
162163
res.data.set('brand', {
163164
name: brand.name || 'Stackpress',
Collapse file

‎packages/stackpress-admin/src/transform/pages/detail/search.ts‎

Copy file name to clipboardExpand all lines: packages/stackpress-admin/src/transform/pages/detail/search.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ const admin = ctx.config.path<AdminConfig>('admin', {});
139139
//set data for template layer
140140
res.data.set('view', {
141141
base: view.base || '/',
142-
props: view.props || {}
142+
props: view.props || {},
143+
notify: view.notify || {}
143144
});
144145
res.data.set('brand', {
145146
name: brand.name || 'Stackpress',
Collapse file

‎packages/stackpress-admin/src/transform/pages/remove.ts‎

Copy file name to clipboardExpand all lines: packages/stackpress-admin/src/transform/pages/remove.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ const admin = ctx.config.path<AdminConfig>('admin', {});
114114
//set data for template layer
115115
res.data.set('view', {
116116
base: view.base || '/',
117-
props: view.props || {}
117+
props: view.props || {},
118+
notify: view.notify || {}
118119
});
119120
res.data.set('brand', {
120121
name: brand.name || 'Stackpress',
Collapse file

‎packages/stackpress-admin/src/transform/pages/restore.ts‎

Copy file name to clipboardExpand all lines: packages/stackpress-admin/src/transform/pages/restore.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ const admin = ctx.config.path<AdminConfig>('admin', {});
120120
//set data for template layer
121121
res.data.set('view', {
122122
base: view.base || '/',
123-
props: view.props || {}
123+
props: view.props || {},
124+
notify: view.notify || {}
124125
});
125126
res.data.set('brand', {
126127
name: brand.name || 'Stackpress',
Collapse file

‎packages/stackpress-admin/src/transform/pages/search.ts‎

Copy file name to clipboardExpand all lines: packages/stackpress-admin/src/transform/pages/search.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ const admin = ctx.config.path<AdminConfig>('admin', {});
113113
//set data for template layer
114114
res.data.set('view', {
115115
base: view.base || '/',
116-
props: view.props || {}
116+
props: view.props || {},
117+
notify: view.notify || {}
117118
});
118119
res.data.set('brand', {
119120
name: brand.name || 'Stackpress',

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.