@bbki.ng/site 1.7.16 → 1.8.1
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 +4 -0
- package/index.html +2 -2
- package/package.json +6 -3
- package/public/now.wasm +0 -0
- package/src/{app.tsx → blog/app.tsx} +18 -11
- package/src/{articles → blog/articles}/celebration.mdx +0 -1
- package/src/{articles → blog/articles}/cousin.mdx +1 -1
- package/src/{articles → blog/articles}/leaves.mdx +1 -1
- package/src/{articles → blog/articles}/liqiu.mdx +0 -1
- package/src/{articles → blog/articles}/men-without-women.mdx +3 -3
- package/src/{articles → blog/articles}/movie-day.mdx +2 -2
- package/src/{articles → blog/articles}/projects.mdx +0 -1
- package/src/{articles → blog/articles}/quote.mdx +0 -1
- package/src/{articles → blog/articles}/red-gun.mdx +1 -1
- package/src/{articles → blog/articles}/rice-noodle.mdx +1 -1
- package/src/{articles → blog/articles}/spring-cooldown.mdx +1 -0
- package/src/{articles → blog/articles}/spring-rain.mdx +1 -0
- package/src/{articles → blog/articles}/woke-up.mdx +1 -1
- package/src/{components → blog/components}/Footer.tsx +1 -1
- package/src/{components → blog/components}/ImageUploader.tsx +1 -1
- package/src/{components → blog/components}/Img_ctx_menu/index.tsx +1 -1
- package/src/{components → blog/components}/Spinner.tsx +1 -1
- package/src/{components → blog/components}/app_ctx_menu/index.tsx +3 -1
- package/src/{components → blog/components}/article/index.tsx +1 -1
- package/src/blog/components/plugin/PluginContentPage.tsx +30 -0
- package/src/blog/components/plugin/PluginDrawer.tsx +39 -0
- package/src/blog/components/plugin/PluginInit.tsx +50 -0
- package/src/blog/components/plugin/PluginInputForm.tsx +117 -0
- package/src/blog/components/plugin/PluginMenuItem.tsx +67 -0
- package/src/blog/components/plugin/PluginRoutes.tsx +13 -0
- package/src/blog/components/plugin/PluginsMenuItem.tsx +45 -0
- package/src/blog/components/plugin/hooks/useDependencies.ts +63 -0
- package/src/blog/components/plugin/hooks/usePluginOutput.tsx +17 -0
- package/src/blog/context/bbcontext.tsx +14 -0
- package/src/blog/context/global_routes_provider.tsx +38 -0
- package/src/blog/demo/PluginDemo.ts +24 -0
- package/src/{hooks → blog/hooks}/useLoadingIndicator.ts +1 -1
- package/src/{hooks → blog/hooks}/use_file_to_post.ts +1 -1
- package/src/{hooks → blog/hooks}/use_posts.ts +1 -1
- package/src/{hooks → blog/hooks}/use_projects.ts +1 -1
- package/src/{main.tsx → blog/index.tsx} +13 -13
- package/src/{main.css → blog/main.css} +10 -0
- package/src/{pages → blog/pages}/cover/index.tsx +8 -6
- package/src/{pages → blog/pages}/extensions/txt/article.tsx +1 -1
- package/src/{pages → blog/pages}/login/index.tsx +1 -1
- package/src/blog/plugin/Dependencies.ts +10 -0
- package/src/blog/plugin/HostFuncAdapter.ts +28 -0
- package/src/blog/plugin/Plugin.ts +122 -0
- package/src/blog/plugin/PluginManager.ts +153 -0
- package/src/blog/plugin/PluginManagerPayload.ts +3 -0
- package/src/index.tsx +4 -0
- package/tsconfig.json +1 -1
- package/vite.config.js +5 -2
- /package/src/{__test__ → blog/__test__}/utils/index.test.ts +0 -0
- /package/src/{articles → blog/articles}/anti-logic.mdx +0 -0
- /package/src/{articles → blog/articles}/bbking-manual.mdx +0 -0
- /package/src/{articles → blog/articles}/black-river.mdx +0 -0
- /package/src/{articles → blog/articles}/cloth.mdx +0 -0
- /package/src/{articles → blog/articles}/cooking.mdx +0 -0
- /package/src/{articles → blog/articles}/cooldown.mdx +0 -0
- /package/src/{articles → blog/articles}/fall.mdx +0 -0
- /package/src/{articles → blog/articles}/img.mdx +0 -0
- /package/src/{articles → blog/articles}/index.ts +0 -0
- /package/src/{articles → blog/articles}/loading.mdx +0 -0
- /package/src/{articles → blog/articles}/love.mdx +0 -0
- /package/src/{articles → blog/articles}/major-cold.mdx +0 -0
- /package/src/{articles → blog/articles}/marshroom.mdx +0 -0
- /package/src/{articles → blog/articles}/moment.mdx +0 -0
- /package/src/{articles → blog/articles}/now.mdx +0 -0
- /package/src/{articles → blog/articles}/photos.mdx +0 -0
- /package/src/{articles → blog/articles}/pseudo-spring.mdx +0 -0
- /package/src/{articles → blog/articles}/travel.mdx +0 -0
- /package/src/{articles → blog/articles}/warming-up.mdx +0 -0
- /package/src/{articles → blog/articles}/web-burnning.mdx +0 -0
- /package/src/{articles → blog/articles}/xwy-and-snowing.mdx +0 -0
- /package/src/{articles → blog/articles}/xwy.mdx +0 -0
- /package/src/{components → blog/components}/Auth.tsx +0 -0
- /package/src/{components → blog/components}/DelayFadeIn/DelayFadeIn.tsx +0 -0
- /package/src/{components → blog/components}/Logger.tsx +0 -0
- /package/src/{components → blog/components}/Pochacco/Pochacco.tsx +0 -0
- /package/src/{components → blog/components}/Pochacco/idle.tsx +0 -0
- /package/src/{components → blog/components}/Pochacco/watch.tsx +0 -0
- /package/src/{components → blog/components}/app_ctx_menu/LoginMenuItem.tsx +0 -0
- /package/src/{components → blog/components}/app_ctx_menu/VersionMenuItem.tsx +0 -0
- /package/src/{components → blog/components}/app_ctx_menu/ViewSourceMenuItem.tsx +0 -0
- /package/src/{components → blog/components}/article_ctx_menu/index.tsx +0 -0
- /package/src/{components → blog/components}/aspect_ratio_box/index.tsx +0 -0
- /package/src/{components → blog/components}/blur_cover/index.tsx +0 -0
- /package/src/{components → blog/components}/book_list/index.tsx +0 -0
- /package/src/{components → blog/components}/comment/index.tsx +0 -0
- /package/src/{components → blog/components}/comment/use_cusdis_event.ts +0 -0
- /package/src/{components → blog/components}/corner_prompt_box/index.tsx +0 -0
- /package/src/{components → blog/components}/disabled_text/index.tsx +0 -0
- /package/src/{components → blog/components}/effect-layer/EffectContextProvider.tsx +0 -0
- /package/src/{components → blog/components}/effect-layer/EffectLayer.tsx +0 -0
- /package/src/{components → blog/components}/effect-layer/effects/grain.frag +0 -0
- /package/src/{components → blog/components}/effect-layer/hooks/useRender.ts +0 -0
- /package/src/{components → blog/components}/effect-layer/hooks/useResolution.ts +0 -0
- /package/src/{components → blog/components}/effect-layer/main.frag +0 -0
- /package/src/{components → blog/components}/effect-layer/shader.vert +0 -0
- /package/src/{components → blog/components}/effect-layer/shapes/circle.frag +0 -0
- /package/src/{components → blog/components}/effect-layer/shapes/heart.frag +0 -0
- /package/src/{components → blog/components}/effect-layer/shapes/spiral.frag +0 -0
- /package/src/{components → blog/components}/effect-layer/uniforms.ts +0 -0
- /package/src/{components → blog/components}/fade_out_cover/index.tsx +0 -0
- /package/src/{components → blog/components}/footer/footer_links.ts +0 -0
- /package/src/{components → blog/components}/footer/index.tsx +0 -0
- /package/src/{components → blog/components}/hotkey_nav/index.tsx +0 -0
- /package/src/{components → blog/components}/img_list/index.tsx +0 -0
- /package/src/{components → blog/components}/index.tsx +0 -0
- /package/src/{components → blog/components}/movie_list/index.tsx +0 -0
- /package/src/{components → blog/components}/my_suspense.tsx +0 -0
- /package/src/{components → blog/components}/progress_bar/index.tsx +0 -0
- /package/src/{components → blog/components}/reload_prompt/index.tsx +0 -0
- /package/src/{components → blog/components}/stickers/index.tsx +0 -0
- /package/src/{components → blog/components}/table_skeleton/index.tsx +0 -0
- /package/src/{components → blog/components}/tags/index.tsx +0 -0
- /package/src/{components → blog/components}/video_player/index.tsx +0 -0
- /package/src/{components → blog/components}/with_wrapper/index.tsx +0 -0
- /package/src/{constants → blog/constants}/cusdis.ts +0 -0
- /package/src/{constants → blog/constants}/index.ts +0 -0
- /package/src/{constants → blog/constants}/photo_projects.ts +0 -0
- /package/src/{constants → blog/constants}/photos.ts +0 -0
- /package/src/{constants → blog/constants}/routes.ts +0 -0
- /package/src/{constants → blog/constants}/video_logs.ts +0 -0
- /package/src/{global_loading_state_provider.tsx → blog/context/global_loading_state_provider.tsx} +0 -0
- /package/src/{demo → blog/demo}/DemoBox.tsx +0 -0
- /package/src/{demo → blog/demo}/DemoMenu.tsx +0 -0
- /package/src/{demo → blog/demo}/ImgDemo.tsx +0 -0
- /package/src/{demo → blog/demo}/SpinnerDemo.tsx +0 -0
- /package/src/{demo → blog/demo}/Xwy.tsx +0 -0
- /package/src/{global → blog/global}/mdx.d.ts +0 -0
- /package/src/{hooks → blog/hooks}/index.ts +0 -0
- /package/src/{hooks → blog/hooks}/useScrollToTop.ts +0 -0
- /package/src/{hooks → blog/hooks}/useTransitionCls.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_authed.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_authed_fetcher.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_del_img.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_delete_post.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_font_loading.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_img_loading.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_mouse_position.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_pathname.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_paths.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_post.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_role.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_route_name.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_supa_session.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_text_plain_file.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_uploader.ts +0 -0
- /package/src/{hooks → blog/hooks}/use_video_controls.ts +0 -0
- /package/src/{pages → blog/pages}/bot/index.tsx +0 -0
- /package/src/{pages → blog/pages}/extensions/png/consts.ts +0 -0
- /package/src/{pages → blog/pages}/extensions/png/index.tsx +0 -0
- /package/src/{pages → blog/pages}/extensions/png/png_projects.tsx +0 -0
- /package/src/{pages → blog/pages}/extensions/txt/consts.ts +0 -0
- /package/src/{pages → blog/pages}/extensions/txt/index.tsx +0 -0
- /package/src/{pages → blog/pages}/index.tsx +0 -0
- /package/src/{pages → blog/pages}/now/index.tsx +0 -0
- /package/src/{pages → blog/pages}/tags/index.tsx +0 -0
- /package/src/{pages → blog/pages}/tags/tag_result.tsx +0 -0
- /package/src/{pages → blog/pages}/upload/index.tsx +0 -0
- /package/src/{swr.tsx → blog/swr.tsx} +0 -0
- /package/src/{types → blog/types}/articles.ts +0 -0
- /package/src/{types → blog/types}/color.ts +0 -0
- /package/src/{types → blog/types}/cusdis.ts +0 -0
- /package/src/{types → blog/types}/font.ts +0 -0
- /package/src/{types → blog/types}/glsl.d.ts +0 -0
- /package/src/{types → blog/types}/oss.ts +0 -0
- /package/src/{types → blog/types}/path.ts +0 -0
- /package/src/{types → blog/types}/photo.ts +0 -0
- /package/src/{types → blog/types}/supabase.ts +0 -0
- /package/src/{types → blog/types}/upload.ts +0 -0
- /package/src/{utils → blog/utils}/index.ts +0 -0
- /package/src/{utils → blog/utils}/tags.ts +0 -0
package/vite.config.js
CHANGED
|
@@ -5,13 +5,14 @@ import mdx from "@mdx-js/rollup";
|
|
|
5
5
|
import remarkGfm from "remark-gfm";
|
|
6
6
|
import remarkParse from "remark-parse";
|
|
7
7
|
import remarkToc from "remark-toc";
|
|
8
|
+
import crossOriginIsolation from "vite-plugin-cross-origin-isolation";
|
|
8
9
|
import remarkFrontMatter from "remark-frontmatter";
|
|
9
10
|
import { remarkMdxFrontmatter } from "remark-mdx-frontmatter";
|
|
10
11
|
import rehypeSlug from "rehype-slug";
|
|
11
12
|
import rehypeHighlight from "rehype-highlight";
|
|
12
13
|
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
|
13
14
|
import react from "@vitejs/plugin-react";
|
|
14
|
-
import glsl from
|
|
15
|
+
import glsl from "vite-plugin-glsl";
|
|
15
16
|
|
|
16
17
|
const options = {
|
|
17
18
|
remarkPlugins: [
|
|
@@ -28,7 +29,7 @@ const options = {
|
|
|
28
29
|
export default defineConfig({
|
|
29
30
|
resolve: {
|
|
30
31
|
alias: {
|
|
31
|
-
"@": path.resolve(__dirname, "./src"),
|
|
32
|
+
"@": path.resolve(__dirname, "./src/blog"),
|
|
32
33
|
},
|
|
33
34
|
},
|
|
34
35
|
// build.rollupOptions.output.manualChunks
|
|
@@ -43,6 +44,7 @@ export default defineConfig({
|
|
|
43
44
|
},
|
|
44
45
|
},
|
|
45
46
|
},
|
|
47
|
+
server: {},
|
|
46
48
|
define: {
|
|
47
49
|
GLOBAL_BBKING_VERSION: JSON.stringify(process.env.npm_package_version),
|
|
48
50
|
},
|
|
@@ -122,5 +124,6 @@ export default defineConfig({
|
|
|
122
124
|
],
|
|
123
125
|
},
|
|
124
126
|
}),
|
|
127
|
+
crossOriginIsolation(),
|
|
125
128
|
],
|
|
126
129
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/{global_loading_state_provider.tsx → blog/context/global_loading_state_provider.tsx}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|