GithubHelp home page GithubHelp logo

theodorusclarence / expansion-pack Goto Github PK

View Code? Open in Web Editor NEW
96.0 7.0 18.0 83 KB

๐Ÿ”‹ Useful stack expansion for ts-nextjs-tailwind-starter

License: MIT License

CSS 2.18% TypeScript 69.66% Shell 17.29% JavaScript 10.06% Handlebars 0.81%
react-hook-form storybook cypress zustand react-query swr nprogress nextjs tailwindcss

expansion-pack's People

Contributors

booleanbean avatar bryanltobing avatar handinugroho avatar mjbedi avatar mrevanzak avatar rizqitsani avatar theodorusclarence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

expansion-pack's Issues

Next Image issue with Storybook/Tailwindcss

Hi,

Im trying to use Nextjs with Storybook and Tailwindcss.
I have set this in the preview.js

const OriginalNextImage = NextImage.default;
Object.defineProperty(NextImage, 'default', {
  configurable: true,
  value: (props) => <OriginalNextImage {...props} unoptimized />,
});

And in a component I have

<div className="flex-shrink-0 flex items-center">
             <Image
                    className="block lg:hidden h-8 w-auto"
                    src="https://tailwindui.com/img/logos/workflow-mark-indigo-500.svg"
                    width="50"
                    height="30"
                    alt="Workflow"
                  />
            <Image
                    className="hidden lg:block h-8 w-auto"
                    src="https://tailwindui.com/img/logos/workflow-logo-indigo-500-mark-white-text.svg"
                    width="128"
                    height="30"
                    alt="Workflow"
                  />
</div>

Images loads well but className are not working. Like Tailwind did not see them actually.. In my browser, I can't see config for "hidden" class for example.

Would you have an idea about that ?
Have a good day

Toast with React Query - Loading State Toast is not removed

Hi,
i implemented the Toasts RQ with your script and curl.
when visiting the example page toast-rq i notided the submit button keeps in loading/spinner state. I expected the code and so far it looks like there are still toasts with "loading" type in the toast state, even when the loading is done.

So current fix looks like this:
`
//useRQWithToast.tsx

if (isError) {
  toast.error(toastMessage.error, { id: toastStatus.current });
  toastStatus.current = 'done';
} else if (isLoading) {
  toastStatus.current = toast.loading(toastMessage.loading, { id: toastStatus.current });
} else if (isSuccess) {
  toastStatus.current = toast.success(toastMessage.success, { id: toastStatus.current });
} else if (data) {
  toast.success(toastMessage.success, { id: toastStatus.current });
  toastStatus.current = 'done';
}

`

this way "it works" but there still stays an toast in the state with status "idle" but it does not affect the ui.. but doesnt feel good
After all i'm wondering if this bug is already noticed? or maybe i implemented something wrong? i'm wondering since script and instruction are realy clear

Cannot use mustaches in an elements tagname

๐Ÿ‘‹

I installed the expansion-pack for storybook. Prettier throws an error in Component.stories.tsx.hbs:18, when I execute yarn watch.
Any ideas?

[error] src/generators/Component.stories.tsx.hbs: SyntaxError: Cannot use mustaches in an elements tagname:
[error]
[error] |
[error] |  {{ properCase ( getName path ) }}
[error] |
[error]
[error] (error occurred in 'an unknown module' @ line 18 : column 3) (18:3)
[error]   16 |
[error]   17 | const Template: ComponentStory<typeof {{ properCase ( getName path ) }}> = (args) => (
[error] > 18 |   <{{ properCase ( getName path ) }} {...args} />
[error]      |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error]   19 | );
[error]   20 |
[error]   21 | export const Default = Template.bind({});

dialog-zustand.tsx sandboy page will not work out of the box

hey, i just like to let you guys know, that in https://github.com/theodorusclarence/expansion-pack/blob/main/dialog-zustand/src/pages/sandbox/dialog-zustand.tsx
the Layout component as outer wrapper is missing, so i was wondering why no dialog was showing, since i added the changes to my layout file :D
maybe should be added by default or it should be noted in the install insctructions :)

keep on the good work, love your stack so far! <3

Missing dependencies on next-18next


name: ๐Ÿž Bug
about: File a bug/issue
title: '[BUG] Missing dependencies on next-i18next'
labels: Bug


Current Behavior:

After following the command to install next-i18next pack, the development server is output

error - ./node_modules/next-i18next/dist/esm/appWithTranslation.js:8:0
Module not found: Can't resolve 'react-i18next'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/next-i18next/dist/esm/index.js
./src/pages/_app.tsx
wait  - compiling /next-i18next-example (client and server)...
error - ./node_modules/next-i18next/dist/esm/appWithTranslation.js:8:0
Module not found: Can't resolve 'react-i18next'

Expected Behavior:

Development server with i18next working properly

Steps To Reproduce:

  1. Create new project using the starter template
  2. Install dependencies using yarn.
  3. Start the development server.
  4. Run curl -s https://raw.githubusercontent.com/theodorusclarence/expansion-pack/main/next-i18next/trigger.sh | bash -s to install the i18-next expansion pack.
  5. See the error in development console.

Environment:

  • OS: macOS Ventura 13.1
  • Node: 18.15.0
  • npm: 9.5.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.