Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 22dbc59

Browse files
authored
Merge pull request #25 from agile-ts/newdessign
Newdessign
2 parents 0272297 + 8a75895 commit 22dbc59

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1694
-926
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SKIP_PREFLIGHT_CHECK=true
2+
BROWSER=chrome

docs/packages/react/Introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ as we prefer using `React Hooks` in Functional Components.
3030
But Hooks aren't supported in Class Components, so we came across other solutions,
3131
to offer the same features there too.
3232

33-
### Functional Component
33+
### 🐆 Functional Component
3434

3535
In Function Components we recommend using AgileTs Hooks like `useAgile`,
3636
which allows us to bind any State to our React Component
@@ -43,7 +43,7 @@ const myFirstState = useAgile(MY_FIRST_STATE);
4343
To find out more about `useAgile`, and other Hooks provided by AgileTs,
4444
checkout the AgileTs Hook [docs](./features/Hooks.md).
4545

46-
### Class Component
46+
### 🦖 Class Component
4747

4848
In Class Component we currently only support the `AgileHOC`,
4949
which helps us binding States to our Component.

docusaurus.config.js

Lines changed: 186 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,116 @@
1-
module.exports = {
2-
title: 'AgileTs',
3-
tagline: 'Global State and Logic Framework for reactive Applications',
4-
url: 'https://agile-ts.org',
5-
baseUrl: '/',
6-
onBrokenLinks: 'throw',
7-
favicon: 'img/favicon.ico',
8-
organizationName: 'agile/agile-ts',
9-
projectName: 'agile',
10-
themes: ['@docusaurus/theme-live-codeblock'],
11-
plugins: ['docusaurus-plugin-sass' /* @docusaurus/plugin-google-analytics (Not necessary because it automatically gets added) */],
12-
themeConfig: {
13-
hideableSidebar: true,
14-
algolia: {
15-
apiKey: '6b7b98565bb82e16996fd185f378d618',
16-
indexName: 'agile-ts',
17-
},
18-
colorMode: {
19-
defaultMode: 'dark',
20-
disableSwitch: false,
21-
respectPrefersColorScheme: true,
1+
const githubOrgUrl = "https://github.com/agile-ts";
2+
const domain = "https://agile-ts.org";
3+
4+
const customFields = {
5+
copyright: `Created with 💜 in Germany | Copyright © ${new Date().getFullYear()} BennoDev`,
6+
description: "AgileTs is a spacy, fast, simple State Management Framework",
7+
domain,
8+
githubOrgUrl,
9+
githubUrl: `${githubOrgUrl}/agile`,
10+
githubDocsUrl: `${githubOrgUrl}/documentation`,
11+
discordUrl: `https://discord.gg/FTqeMNCxw7`,
12+
stackoverflowUrl: "https://stackoverflow.com/questions/tagged/agile-ts",
13+
twitterUrl: "https://twitter.com/AgileFramework",
14+
version: "0.0.1",
15+
announcementBarContent:
16+
'⭐️ If you like AgileTs, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/agile-ts/agile">GitHub</a>! ⭐️',
17+
};
18+
19+
const config = {
20+
title: "AgileTs",
21+
tagline: "AgileTs is a spacy, fast, simple State-Management Framework",
22+
url: customFields.domain,
23+
baseUrlIssueBanner: false,
24+
baseUrl: "/",
25+
onBrokenLinks: "throw",
26+
favicon: "img/favicon.ico",
27+
organizationName: "AgileTs",
28+
projectName: "agilets",
29+
themes: ["@docusaurus/theme-live-codeblock"],
30+
plugins: [
31+
"docusaurus-plugin-sass" /* @docusaurus/plugin-google-analytics (Not necessary because it automatically gets added) */,
32+
],
33+
customFields: { ...customFields },
34+
themeConfig: {
35+
hideableSidebar: true,
36+
algolia: {
37+
apiKey: "6b7b98565bb82e16996fd185f378d618",
38+
indexName: "agile-ts",
39+
},
40+
colorMode: {
41+
defaultMode: "dark",
42+
disableSwitch: false,
43+
respectPrefersColorScheme: true,
44+
},
45+
announcementBar: {
46+
id: "github-star",
47+
content: customFields.announcementBarContent,
48+
backgroundColor: "#9c9abf",
49+
},
50+
prism: {
51+
theme: require("prism-react-renderer/themes/github"),
52+
darkTheme: require("prism-react-renderer/themes/dracula"),
53+
},
54+
algolia: {
55+
apiKey: "6b7b98565bb82e16996fd185f378d618",
56+
indexName: "agile-ts",
57+
},
58+
navbar: {
59+
title: " ",
60+
hideOnScroll: true,
61+
logo: {
62+
alt: "My Site Logo",
63+
src: "img/logo.svg",
64+
},
65+
items: [
66+
// left
67+
{
68+
label: "Get Started",
69+
position: "left",
70+
items: [
71+
{
72+
label: "Introduction",
73+
to: "/docs/",
74+
},
75+
{
76+
label: "Installation",
77+
to: "/docs/installation/",
78+
},
79+
{
80+
label: "React",
81+
to: "/docs/quick-start/react/",
82+
},
83+
],
2284
},
23-
announcementBar: {
24-
id: 'github-star',
25-
content:
26-
'⭐️ If you like AgileTs, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/agile-ts/agile">GitHub</a>! ⭐️',
27-
backgroundColor: "#9c9abf"
85+
{
86+
label: "Community",
87+
position: "left",
88+
items: [
89+
{
90+
label: "GitHub",
91+
to: customFields.githubUrl,
92+
},
93+
{
94+
label: "Discord",
95+
to: customFields.discordUrl,
96+
},
97+
{
98+
label: "Stack Overflow",
99+
to: customFields.stackoverflowUrl,
100+
},
101+
{
102+
label: "Twitter",
103+
to: customFields.twitterUrl,
104+
},
105+
],
28106
},
29-
prism: {
30-
theme: require('prism-react-renderer/themes/github'),
31-
darkTheme: require('prism-react-renderer/themes/dracula'),
107+
{
108+
label: "Documentation",
109+
position: "left",
110+
to: "docs/",
32111
},
33-
navbar: {
34-
title: 'AgileTs',
35-
hideOnScroll: true,
36-
logo: {
37-
alt: 'My Site Logo',
38-
src: 'img/logo.svg',
39-
},
40-
items: [
41-
{
42-
to: 'docs/',
43-
activeBasePath: 'docs',
44-
label: 'Docs',
45-
position: 'left',
46-
},
47-
{to: 'blog', label: 'Blog', position: 'left'},
112+
// {to: 'blog', label: 'Blog', position: 'left'},
113+
/*
48114
// right
49115
{
50116
href: 'https://github.com/agile-ts/agile',
@@ -58,85 +124,85 @@ module.exports = {
58124
className: 'header-discord-link header-icon-link',
59125
'aria-label': 'Discord',
60126
},
61-
],
62-
},
63-
footer: {
64-
style: 'dark',
65-
links: [
66-
{
67-
title: 'Docs',
68-
items: [
69-
{
70-
label: 'Get Started',
71-
to: 'docs/',
72-
}
73-
],
74-
},
75-
{
76-
title: 'Community',
77-
items: [
78-
{
79-
label: 'Stack Overflow',
80-
href: 'https://stackoverflow.com/questions/tagged/agile-ts',
81-
},
82-
{
83-
label: 'Discord',
84-
href: 'https://discord.gg/9Edsb3z',
85-
},
86-
{
87-
label: 'Twitter',
88-
href: 'https://twitter.com/DevBenno',
89-
},
90-
],
91-
},
92-
{
93-
title: 'More',
94-
items: [
95-
{
96-
label: 'Blog',
97-
to: 'blog',
98-
},
99-
{
100-
label: 'GitHub',
101-
href: 'https://github.com/agile-ts/agile',
102-
},
103-
],
104-
},
105-
],
106-
copyright: `Copyright © ${new Date().getFullYear()} BennoDev`,
127+
*/
128+
],
129+
},
130+
footer: {
131+
style: "dark",
132+
links: [
133+
{
134+
title: "Docs",
135+
items: [
136+
{
137+
label: "Get Started",
138+
to: "docs/",
139+
},
140+
],
107141
},
108-
googleAnalytics: {
109-
trackingID: 'UA-189394644-1',
110-
anonymizeIP: true, // Should IPs be anonymized?
142+
{
143+
title: "Community",
144+
items: [
145+
{
146+
label: "Stack Overflow",
147+
to: customFields.stackoverflowUrl,
148+
},
149+
{
150+
label: "Discord",
151+
href: customFields.discordUrl,
152+
},
153+
{
154+
label: "Twitter",
155+
href: customFields.twitterUrl,
156+
},
157+
],
111158
},
112-
},
113-
presets: [
114-
[
115-
'@docusaurus/preset-classic',
159+
{
160+
title: "More",
161+
items: [
116162
{
117-
docs: {
118-
path: 'docs',
119-
admonitions: {
120-
icons: "emoji"
121-
},
122-
sidebarPath: require.resolve('./sidebars.js'),
123-
editUrl:
124-
'https://github.com/agile-ts/documentation/tree/master',
125-
showLastUpdateAuthor: false,
126-
showLastUpdateTime: true,
127-
remarkPlugins: [
128-
[require('@docusaurus/remark-plugin-npm2yarn'), {sync: true}],
129-
],
130-
},
131-
blog: {
132-
showReadingTime: true,
133-
editUrl:
134-
'https://github.com/agile-ts/documentation',
135-
},
136-
theme: {
137-
customCss: [require.resolve('./src/css/custom.scss')],
138-
},
163+
label: "Blog",
164+
to: "/blog/",
165+
},
166+
{
167+
label: "GitHub",
168+
to: customFields.githubUrl,
139169
},
140-
],
170+
],
171+
},
172+
],
173+
},
174+
googleAnalytics: {
175+
trackingID: "UA-189394644-1",
176+
anonymizeIP: true, // Should IPs be anonymized?
177+
},
178+
},
179+
presets: [
180+
[
181+
"@docusaurus/preset-classic",
182+
{
183+
docs: {
184+
path: "docs",
185+
admonitions: {
186+
icons: "emoji",
187+
},
188+
sidebarPath: require.resolve("./sidebars.js"),
189+
editUrl: `${customFields.githubDocsUrl}/tree/develop`,
190+
showLastUpdateAuthor: false,
191+
showLastUpdateTime: true,
192+
remarkPlugins: [
193+
[require("@docusaurus/remark-plugin-npm2yarn"), { sync: true }],
194+
],
195+
},
196+
blog: {
197+
showReadingTime: true,
198+
editUrl: `${customFields.githubDocsUrl}/tree/develop`,
199+
},
200+
theme: {
201+
customCss: [require.resolve("./src/css/custom.scss")],
202+
},
203+
},
141204
],
205+
],
142206
};
207+
208+
module.exports = { ...config };

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"docusaurus-plugin-sass": "^0.1.11",
2525
"react": "^16.8.4",
2626
"react-dom": "^16.8.4",
27+
"react-icons": "^4.1.0",
2728
"react-live": "^2.2.3",
2829
"react-spring": "^8.0.27",
2930
"react-toastify": "^6.2.0",

src/components/Button.tsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)