Rename to Procyon
All checks were successful
forgejo/Procyon/seedling/pipeline/head This commit looks good

Change-Id: I812c93e057039c0c6a8bea8079c8b9cda6357133
This commit is contained in:
Roman Jaroš 2023-11-16 11:43:48 +01:00
parent 096dfe11cb
commit 68ce70e5a0
20 changed files with 50 additions and 48 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
build/
dist/
node_modules/
.vscode/

4
.npmrc
View file

@ -1,3 +1,3 @@
always-auth=true
@prokyon:registry=https://forgejo.romanjaros.dev/api/packages/procyon/npm/
@toolkit:registry=https://forgejo.romanjaros.dev/api/packages/procyon/npm/
@procyon:registry=https://forgejo.romanjaros.dev/api/packages/procyon/npm/
@toolkit:registry=https://forgejo.romanjaros.dev/api/packages/procyon/npm/

View file

@ -1,6 +1,6 @@
# Seedling
Seedling is a project generator for @prokyon libraries.
Seedling is a project generator for @procyon libraries.
## How to start

View file

@ -1,2 +1,7 @@
build/
node_modules/
dist/
node_modules/
.vscode/
.pnpm-store/

View file

@ -1,3 +1,3 @@
always-auth=true
@prokyon:registry=https://npm.romanjaros.dev
@toolkit:registry=https://npm.romanjaros.dev
@procyon:registry=https://forgejo.romanjaros.dev/api/packages/procyon/npm/
@toolkit:registry=https://forgejo.romanjaros.dev/api/packages/procyon/npm/

View file

@ -1 +0,0 @@
src/api/generated/*.ts

View file

@ -43,6 +43,9 @@
}
}
],
"ignorePatterns": [
"**/generated/*.ts"
],
"rules": {
"max-len": "off",
"no-useless-escape": "off",
@ -95,7 +98,7 @@
"^[^.]"
],
[
"^@prokyon?\\w"
"^@procyon?\\w"
],
[
"^api?\\w",

View file

@ -1,5 +1,5 @@
{
"name": "$(appName)-fe",
"name": "$(appName)-ui",
"version": "0.1.0",
"author": "Roman Jaroš",
"license": "ISC",
@ -21,15 +21,15 @@
"codegen": "pnpm dlx @rtk-query/codegen-openapi openapi-config.ts"
},
"dependencies": {
"@prokyon/api": "^1.0.31",
"@prokyon/auth": "^1.0.31",
"@prokyon/components": "^1.0.31",
"@prokyon/constants": "^1.0.31",
"@prokyon/forms": "^1.0.31",
"@prokyon/localization": "^1.0.31",
"@prokyon/styles": "^1.0.31",
"@prokyon/types": "^1.0.31",
"@prokyon/utils": "^1.0.31",
"@procyon/api": "^1.0.31",
"@procyon/auth": "^1.0.31",
"@procyon/components": "^1.0.31",
"@procyon/constants": "^1.0.31",
"@procyon/forms": "^1.0.31",
"@procyon/localization": "^1.0.31",
"@procyon/styles": "^1.0.31",
"@procyon/types": "^1.0.31",
"@procyon/utils": "^1.0.31",
"@reduxjs/toolkit": "1.8.3",
"clsx": "^1.2.1",
"date-fns": "2.29.2",

View file

@ -1,7 +1,7 @@
// @ts-nocheck
import { createApi } from '@reduxjs/toolkit/query/react';
import { baseQuery } from '@prokyon/api/query';
import { baseQuery } from '@procyon/api/query';
export const emptyApi = createApi({
baseQuery: baseQuery({ baseUrl: process.env.ENDPOINT_URL as string }),

View file

@ -2,10 +2,10 @@
import React, { FC } from 'react';
import { Route, Switch } from 'wouter';
import { useAuth } from '@prokyon/auth/hook/useAuth';
import Section from '@prokyon/components/Section';
import { Skeleton } from '@prokyon/components/Skeleton';
import { MenuItem } from '@prokyon/components/Skeleton/types';
import { useAuth } from '@procyon/auth/hook/useAuth';
import Section from '@procyon/components/Section';
import { Skeleton } from '@procyon/components/Skeleton';
import { MenuItem } from '@procyon/components/Skeleton/types';
import { WelcomePage } from 'pages/WelcomePage';

View file

@ -1,5 +1,5 @@
// @ts-nocheck
import { DotNestedKeys } from '@prokyon/localization/types';
import { DotNestedKeys } from '@procyon/localization/types';
export const Routes = {
root: '/'

View file

@ -4,19 +4,19 @@
import { AnyAction, combineReducers, configureStore, ThunkDispatch } from '@reduxjs/toolkit';
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';
import authReducer from '@prokyon/auth/slice';
import { AUTH_REDUCER_NAME } from '@prokyon/auth/types';
import { ROOT_REDUCER_NAME } from '@prokyon/constants/redux';
import authReducer from '@procyon/auth/slice';
import { AUTH_REDUCER_NAME } from '@procyon/auth/types';
import { ROOT_REDUCER_NAME } from '@procyon/constants/redux';
import { emptyApi } from '../api/emptyApi';
type prokyonReducer = {
type procyonReducer = {
[AUTH_REDUCER_NAME]: typeof authReducer;
};
const store = configureStore({
reducer: {
[ROOT_REDUCER_NAME]: combineReducers<prokyonReducer>({
[ROOT_REDUCER_NAME]: combineReducers<procyonReducer>({
[AUTH_REDUCER_NAME]: authReducer,
}),
[emptyApi.reducerPath]: emptyApi.reducer,

View file

@ -7,8 +7,8 @@ import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { ModalWrapper } from '@prokyon/components/Modal/context';
import { ToasterWrapper } from '@prokyon/components/Toaster/context';
import { ModalWrapper } from '@procyon/components/Modal/context';
import { ToasterWrapper } from '@procyon/components/Toaster/context';
import { App } from './app/app';
import store from './app/store';

View file

@ -1,5 +1,5 @@
// @ts-nocheck
import { lang } from '@prokyon/localization/init';
import { lang } from '@procyon/localization/init';
import { csCZ } from './dictionary/csCZ';

View file

@ -1,10 +1,10 @@
// @ts-nocheck
import { t as pT } from '@prokyon/localization/message';
import { Dictionary as prokyonDictionary, DotNestedKeys } from '@prokyon/localization/types';
import { t as pT } from '@procyon/localization/message';
import { Dictionary as procyonDictionary, DotNestedKeys } from '@procyon/localization/types';
import { Dictionary } from './schema';
type FullDictionary = prokyonDictionary & Dictionary;
type FullDictionary = procyonDictionary & Dictionary;
export function t(key: DotNestedKeys<FullDictionary>, variables?: Record<string, any>) {
return pT<FullDictionary>(key, variables);

View file

@ -1,12 +1,6 @@
// @ts-nocheck
import React from 'react';
import Section from '@prokyon/components/Section';
export const WelcomePage = () => {
return (
<div className="welcome">
Seedling app generator.
</div>
);
return <div className="welcome">Seedling app generator.</div>;
};

View file

@ -1,4 +1,4 @@
@import '@prokyon/styles/global.css';
@import '@procyon/styles/global.css';
@import "./variables.css";

View file

@ -1,4 +1,4 @@
const postcss = require('@prokyon/styles/postcss.config');
const postcss = require('@procyon/styles/postcss.config');
const configPath = require.resolve('./tailwind.config.js');
module.exports = postcss({ tailwindConfigFile: configPath });

View file

@ -3,12 +3,12 @@ const path = require('path');
const plugin = require('tailwindcss/plugin');
module.exports = {
presets: [require('@prokyon/styles/tailwind.config')],
presets: [require('@procyon/styles/tailwind.config')],
content: [
path.resolve(__dirname + '../../**/*.{js,ts,tsx}'),
path.resolve(__dirname + '../../../node_modules/@prokyon/**/*.{js,ts,tsx}'),
path.resolve(__dirname + '../../../node_modules/@procyon/**/*.{js,ts,tsx}'),
],
safelist: require('@prokyon/styles/tailwind.config').safelist,
safelist: require('@procyon/styles/tailwind.config').safelist,
theme: {
extend: require('./theme'),
},

View file

@ -1,4 +1,4 @@
const { pallete } = require('@prokyon/styles/utils/color');
const { pallete } = require('@procyon/styles/utils/color');
module.exports = {
colors: {