[examples/openspending][m]: rplc @flowershow with @portaljs packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { MDXRemote } from 'next-mdx-remote';
|
import { MDXRemote } from 'next-mdx-remote';
|
||||||
import dynamic from 'next/dynamic';
|
import dynamic from 'next/dynamic';
|
||||||
import { Mermaid } from '@flowershow/core';
|
import { Mermaid } from '@portaljs/core';
|
||||||
|
|
||||||
// Custom components/renderers to pass to MDX.
|
// Custom components/renderers to pass to MDX.
|
||||||
// Since the MDX files aren't loaded by webpack, they have no knowledge of how
|
// Since the MDX files aren't loaded by webpack, they have no knowledge of how
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { remark } from "remark";
|
import { remark } from "remark";
|
||||||
import stripMarkdown, { Options } from "strip-markdown";
|
import stripMarkdown, { Options } from "strip-markdown";
|
||||||
|
|
||||||
import { defaultConfig as siteConfig } from '@flowershow/core'
|
import { defaultConfig as siteConfig } from '@portaljs/core'
|
||||||
|
|
||||||
// TODO return type
|
// TODO return type
|
||||||
const sluggify = (urlPath: string) => {
|
const sluggify = (urlPath: string) => {
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import matter from "gray-matter";
|
import matter from "gray-matter";
|
||||||
import mdxmermaid from "mdx-mermaid";
|
import mdxmermaid from "mdx-mermaid";
|
||||||
import { h } from "hastscript";
|
import { h } from "hastscript";
|
||||||
import remarkCallouts from "@flowershow/remark-callouts";
|
import remarkCallouts from "@portaljs/remark-callouts";
|
||||||
import remarkEmbed from "@flowershow/remark-embed";
|
import remarkEmbed from "@portaljs/remark-embed";
|
||||||
import remarkGfm from "remark-gfm";
|
import remarkGfm from "remark-gfm";
|
||||||
import remarkMath from "remark-math";
|
import remarkMath from "remark-math";
|
||||||
import remarkSmartypants from "remark-smartypants";
|
import remarkSmartypants from "remark-smartypants";
|
||||||
import remarkToc from "remark-toc";
|
import remarkToc from "remark-toc";
|
||||||
import remarkWikiLink from "@flowershow/remark-wiki-link";
|
import remarkWikiLink from "@portaljs/remark-wiki-link";
|
||||||
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
||||||
import rehypeKatex from "rehype-katex";
|
import rehypeKatex from "rehype-katex";
|
||||||
import rehypeSlug from "rehype-slug";
|
import rehypeSlug from "rehype-slug";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { MarkdownDB } from "@flowershow/markdowndb";
|
import { MarkdownDB } from "mddb";
|
||||||
// import config from "./markdowndb.config.js";
|
// import config from "./markdowndb.config.js";
|
||||||
|
|
||||||
// TODO get this path from markdowndb.config.js or something
|
// TODO get this path from markdowndb.config.js or something
|
||||||
|
|||||||
1151
examples/openspending/package-lock.json
generated
1151
examples/openspending/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -12,53 +12,53 @@
|
|||||||
"test": "vitest"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/plugin-throttling": "^5.2.2",
|
|
||||||
"@types/flexsearch": "^0.7.3",
|
|
||||||
"@vitejs/plugin-react": "^4.0.0",
|
|
||||||
"clsx": "^1.2.1",
|
|
||||||
"datapackage": "^1.1.10",
|
|
||||||
"flexsearch": "0.7.21",
|
|
||||||
"next-seo": "^6.0.0",
|
|
||||||
"octokit": "^2.0.14",
|
|
||||||
"prettier": "^2.8.8",
|
|
||||||
"react-hook-form": "^7.43.9",
|
|
||||||
"react-markdown": "^8.0.7",
|
|
||||||
"react-timeago": "^7.1.0",
|
|
||||||
"rehype-raw": "^6.1.1",
|
|
||||||
"remark": "^14.0.3",
|
|
||||||
"remark-gfm": "^3.0.1",
|
|
||||||
"strip-markdown": "^5.0.1",
|
|
||||||
"@flowershow/core": "^0.4.13",
|
|
||||||
"@flowershow/markdowndb": "^0.1.5",
|
|
||||||
"@flowershow/remark-callouts": "^1.0.0",
|
|
||||||
"@flowershow/remark-embed": "^1.0.0",
|
|
||||||
"@githubocto/flat-ui": "^0.14.1",
|
"@githubocto/flat-ui": "^0.14.1",
|
||||||
"@headlessui/react": "^1.7.14",
|
"@headlessui/react": "^1.7.14",
|
||||||
"@heroicons/react": "^2.0.18",
|
"@heroicons/react": "^2.0.18",
|
||||||
|
"@octokit/plugin-throttling": "^5.2.2",
|
||||||
"@portaljs/ckan": "^0.0.2",
|
"@portaljs/ckan": "^0.0.2",
|
||||||
"@portaljs/components": "^0.1.8",
|
"@portaljs/components": "^0.1.8",
|
||||||
|
"@portaljs/core": "^1.0.5",
|
||||||
|
"@portaljs/remark-callouts": "^1.0.5",
|
||||||
|
"@portaljs/remark-embed": "^1.0.4",
|
||||||
"@tailwindcss/typography": "^0.5.9",
|
"@tailwindcss/typography": "^0.5.9",
|
||||||
|
"@types/flexsearch": "^0.7.3",
|
||||||
"@types/node": "20.2.3",
|
"@types/node": "20.2.3",
|
||||||
"@types/react": "18.2.6",
|
"@types/react": "18.2.6",
|
||||||
"@types/react-dom": "18.2.4",
|
"@types/react-dom": "18.2.4",
|
||||||
|
"@vitejs/plugin-react": "^4.0.0",
|
||||||
"autoprefixer": "10.4.14",
|
"autoprefixer": "10.4.14",
|
||||||
|
"clsx": "^1.2.1",
|
||||||
|
"datapackage": "^1.1.10",
|
||||||
"eslint": "8.41.0",
|
"eslint": "8.41.0",
|
||||||
"eslint-config-next": "13.4.3",
|
"eslint-config-next": "13.4.3",
|
||||||
|
"flexsearch": "0.7.21",
|
||||||
"isomorphic-unfetch": "^4.0.2",
|
"isomorphic-unfetch": "^4.0.2",
|
||||||
|
"mddb": "^0.1.9",
|
||||||
"next": "13.4.3",
|
"next": "13.4.3",
|
||||||
"next-mdx-remote": "^4.4.1",
|
"next-mdx-remote": "^4.4.1",
|
||||||
|
"next-seo": "^6.0.0",
|
||||||
|
"octokit": "^2.0.14",
|
||||||
"papaparse": "^5.4.1",
|
"papaparse": "^5.4.1",
|
||||||
"postcss": "8.4.23",
|
"postcss": "8.4.23",
|
||||||
|
"prettier": "^2.8.8",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
|
"react-hook-form": "^7.43.9",
|
||||||
|
"react-markdown": "^8.0.7",
|
||||||
"react-query": "^3.39.3",
|
"react-query": "^3.39.3",
|
||||||
|
"react-timeago": "^7.1.0",
|
||||||
"rehype-autolink-headings": "^6.1.1",
|
"rehype-autolink-headings": "^6.1.1",
|
||||||
"rehype-katex": "^6.0.3",
|
"rehype-katex": "^6.0.3",
|
||||||
"rehype-prism-plus": "^1.5.1",
|
"rehype-prism-plus": "^1.5.1",
|
||||||
|
"rehype-raw": "^6.1.1",
|
||||||
"rehype-slug": "^5.1.0",
|
"rehype-slug": "^5.1.0",
|
||||||
|
"remark": "^14.0.3",
|
||||||
|
"remark-gfm": "^3.0.1",
|
||||||
"remark-math": "^5.1.1",
|
"remark-math": "^5.1.1",
|
||||||
"remark-smartypants": "^2.0.0",
|
"remark-smartypants": "^2.0.0",
|
||||||
"remark-toc": "^8.0.1",
|
"remark-toc": "^8.0.1",
|
||||||
|
"strip-markdown": "^5.0.1",
|
||||||
"tailwindcss": "3.3.2",
|
"tailwindcss": "3.3.2",
|
||||||
"typescript": "5.0.4"
|
"typescript": "5.0.4"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
ThemeProvider,
|
ThemeProvider,
|
||||||
NavItem,
|
NavItem,
|
||||||
NavGroup,
|
NavGroup,
|
||||||
} from '@flowershow/core';
|
} from '@portaljs/core';
|
||||||
|
|
||||||
export interface CustomAppProps {
|
export interface CustomAppProps {
|
||||||
meta: {
|
meta: {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { GetStaticProps } from 'next';
|
import { GetStaticProps } from 'next';
|
||||||
import { BlogsList, SimpleLayout } from '@flowershow/core';
|
import { BlogsList, SimpleLayout } from '@portaljs/core';
|
||||||
import clientPromise from '../lib/mddb';
|
import clientPromise from '../lib/mddb';
|
||||||
import type { CustomAppProps } from './_app';
|
import type { CustomAppProps } from './_app';
|
||||||
import Layout from '@/components/_shared/Layout';
|
import Layout from '@/components/_shared/Layout';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { GetStaticProps } from 'next';
|
import { GetStaticProps } from 'next';
|
||||||
import { BlogsList, SimpleLayout } from '@flowershow/core';
|
import { BlogsList, SimpleLayout } from '@portaljs/core';
|
||||||
import clientPromise from '../../lib/mddb';
|
import clientPromise from '../../lib/mddb';
|
||||||
import type { CustomAppProps } from '../_app';
|
import type { CustomAppProps } from '../_app';
|
||||||
import Layout from '@/components/_shared/Layout';
|
import Layout from '@/components/_shared/Layout';
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ pre {
|
|||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
@import "@flowershow/remark-callouts/styles.css";
|
@import "@portaljs/remark-callouts/styles.css";
|
||||||
|
|
||||||
.w-5 {
|
.w-5 {
|
||||||
width: 1.25rem
|
width: 1.25rem
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ module.exports = {
|
|||||||
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
||||||
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
||||||
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
||||||
"./node_modules/@flowershow/core/dist/*.js",
|
"./node_modules/@portaljs/core/dist/*.js",
|
||||||
"./node_modules/@flowershow/core/*.js",
|
"./node_modules/@portaljs/core/*.js",
|
||||||
],
|
],
|
||||||
darkMode: "class",
|
darkMode: "class",
|
||||||
theme: {
|
theme: {
|
||||||
|
|||||||
Reference in New Issue
Block a user