@bbki.ng/site 2.0.21 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 2.0.23
4
+
5
+ ## 2.0.22
6
+
3
7
  ## 2.0.21
4
8
 
5
9
  ## 2.0.20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,6 +14,7 @@ import { PluginsMenuItem } from "@/components/plugin/PluginsMenuItem";
14
14
  import { PluginManager } from "@/plugin/PluginManager";
15
15
  import { PluginEvent } from "@/plugin/PluginEvent";
16
16
  import {PostMenuItem} from "@/components/app_ctx_menu/PostMenuItem";
17
+ import {useAuthed} from "@/hooks/use_authed";
17
18
 
18
19
  export const AppCtxMenu = (props: { children: ReactElement }) => {
19
20
  const [showPluginEntry, setShowPluginEntry] = React.useState(false);
@@ -30,13 +31,15 @@ export const AppCtxMenu = (props: { children: ReactElement }) => {
30
31
  };
31
32
  }, []);
32
33
 
34
+ const isKing = useAuthed();
35
+
33
36
  return (
34
37
  <ContextMenu>
35
38
  <ContextMenuTrigger>{props.children}</ContextMenuTrigger>
36
39
  <ContextMenuContent className="w-256">
37
40
  <LoginMenuItem />
38
41
  <ViewSourceMenuItem />
39
- <PostMenuItem />
42
+ {isKing && <PostMenuItem />}
40
43
  {/*{showPluginEntry && <PluginsMenuItem />}*/}
41
44
  </ContextMenuContent>
42
45
  </ContextMenu>
package/vite.config.js CHANGED
@@ -117,6 +117,8 @@ export default defineConfig({
117
117
  name: "bbki.ng",
118
118
  description: "A personal blog.",
119
119
  theme_color: "#ffffff",
120
+ display: "fullscreen",
121
+ start_url: "/",
120
122
  share_target: {
121
123
  "action": "/new-content-handler/",
122
124
  "method": "GET",