Skip to content

Commit

Permalink
Add more components & docs
Browse files Browse the repository at this point in the history
  • Loading branch information
haku-d committed Dec 14, 2023
1 parent b601145 commit 262223f
Show file tree
Hide file tree
Showing 165 changed files with 8,816 additions and 971 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<p>
<img src="https://adkit-admin-panel.netlify.app/photos/Mail.png">
</p>
<p>
<img src="https://adkit-admin-panel.netlify.app/photos/Pricing.png">
</p>
<p>
<img src="https://adkit-admin-panel.netlify.app/photos/More.png">
</p>
Expand Down
25 changes: 25 additions & 0 deletions _templates/page/new/page.ejs.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
to: src/app/<%=name%>/page.js
---
import React from 'react';
import Link from 'next/link';

import PageContent from '@/components/page-content';
import SubPage from './_components';

export default function Page() {
return (
<PageContent
breadcrumbs={[
{
title: <Link href={'/'}>HOME</Link>,
},
{
title: 'PAGE TITLE',
},
]}
>
<SubPage />
</PageContent>
);
}
5 changes: 4 additions & 1 deletion template/sub-page.js → _templates/page/new/sub-page.ejs.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
to: src/app/<%=name%>/_components/index.js
---
'use client';
import { Card, Tooltip, Button } from 'antd';
import { ArrowLeftOutlined } from '@ant-design/icons';

export default function OrganizationProfile() {
export default function SubPage() {
return (
<Card
title={
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"start": "next start",
"lint": "next lint",
"predev": "ts-node --project ./tsconfig.node.json ./scripts/genAntdCss.tsx",
"prebuild": "cross-env NODE_ENV=production ts-node --project ./tsconfig.node.json ./scripts/genAntdCss.tsx"
"prebuild": "cross-env NODE_ENV=production ts-node --project ./tsconfig.node.json ./scripts/genAntdCss.tsx",
"g:page": "hygen page new"
},
"dependencies": {
"@ant-design/cssinjs": "^1.17.2",
Expand All @@ -22,6 +23,7 @@
"leaflet": "^1.9.4",
"lodash": "^4.17.21",
"next": "14.0.0",
"prismjs": "^1.29.0",
"react": "^18",
"react-dom": "^18",
"react-leaflet": "^4.2.1",
Expand All @@ -35,8 +37,9 @@
"eslint": "^8",
"eslint-config-next": "14.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"hygen": "^6.2.11",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
}
}
}
66 changes: 66 additions & 0 deletions public/antd/alert.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions public/antd/anchor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions public/antd/autocomplete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 262223f

Please sign in to comment.