Code Monkey home page Code Monkey logo

fuxt's People

Contributors

austinblanchard avatar dchiamp avatar dependabot[bot] avatar drewbaker avatar geeeceee avatar ibanzajoe avatar lwaldner avatar sunoobertsch avatar sveb 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  avatar  avatar  avatar  avatar

Watchers

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

fuxt's Issues

Don't allow Gutenberg images to size above thier native res

If you have a small image (like 700px wide), the Gutenberg image block will default to a max-width of "full" with becomes 100% wide... it will scale up the image... We should never allow the max-width to go above the pixel width of the image I think.

Allow GutenBerg Gallery To Allow for 1 Column

Right now the gallery is applying 2 columns to the image on the front end when it's clearly set in the editor to 1 column.

Currently on https://burch-api.flywheelsites.com/wp-admin/post.php?post=377&action=edit

<figure class="wp-block-gallery columns-1 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://burch-api.flywheelsites.com/wp-content/uploads/2021/10/210065695_240315107645572_2061082156188183164_n.jpg" alt="" data-id="388" class="wp-image-388"/></figure></li></ul></figure>

Gutenberg quote block not working

I think Gutenberg upgraded Quotes to actually contain inner blocks of P tags. I fixed this on this site:
https://github.com/funkhaus/picture-north-frontend/commit/35e8a7bbe2387d2687e2baad0fd1615fdb70483c

But wanted to wait for this to be fixed first, to make sure it wasn't a Gutenberg issue:
funkhaus/wp-gql-gutenberg#44

Also, probably should update the Vue component to actually use a Gutenberg-paragraph element so things like background-color and alignment work in the quote.

Better Gutenberg Block's style system

The WordPress editor now is a “block” editor, and includes lots of flexibility (they call it Gutenberg). On the frontend, we’ve built a lot of Vue components that work with the backend “blocks”. But the CSS is very complicated and I’m not sure it is as good as it could be. I’d really like to figure out a better way to architect these “blocks” and have them still be flexible for the frontend. I think this is mostly a CSS problem as the Vue components are pretty basic and I’ve built them already (maybe some slight changes to HTML would help).
https://github.com/funkhaus/fuxt/tree/master/components/gutenberg
https://github.com/funkhaus/fuxt/blob/master/components/WpGutenberg.vue

The key is these blocks need to be generic and flexible mostly, as we use them on all our sites. Ideally we just tweak some fonts and colors on every new site, maybe change some props or perhaps CSS variables to tweak margins etc.

These “blocks" are what build out a page like this:
https://mssngpeces.com/projects/commercials/pinterest-calling-all-creators/

So, I’d really like someone to architect out a better CSS approach to all these blocks that interact with each other (it can get complex, with blocks nested inside a column-block).

The final level is making the frontend CSS match the WordPress editor approximately. How to do that is explained here:
https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-json/

We'd also want to merge in all our custom blocks that we build, and have those work with the CSS system we develop. So far the sites for Tool and MssngPeces have custom blocks for theme. We'd need to include the PHP templates for them in fuxt-backend, and include a blocks.json file of the ACF export's in fuxt backend too.

Hot reload not working in Storybook mode

When developing in Storybook, hot reload doesn't seem to work.

npm i
npm run storybook

Then edit a story or component and you'd expect to see the changes take effect without a page reload required.

Reported by @Sveb

Remove lodash _get() functions

Let's replace this sort of code:
const pages = _get(data, "creators.children.nodes", []) || []

With this:
const pages = data?.creators?.children?.nodes || []

Consideration for a docker based quick set up

May be better as an additional repo to the fuxt stack. But I found testing https://github.com/northosts/wuxt was really simple to setup and have running.

I’d imagine their structure could be basically copied and would work for fuxt. I may even set one up for my own use, although being to update from the source rather than copy/paste files would be nice.

Get the Blur hash working on wp-image

Currently WordPress is saving Blur Hash's with every image as an ACF field.

What is a Blur Hash?
https://github.com/woltapp/blurhash

We just need to use that Blur Hash in the wp-image component instead of the solid background color we use currently. Ideally there would be a prop that enables/disables it blur-hash.

I think ideally we have a prop blur-hash that can be used to supply a blur hash, but the image prop can also include the blur hash as meta (like it does with image height/width currently). I figure if you set blur-hash="none" then it disables the blur hash and uses the current background color setting.

Documentation

Is there some documentation for this? This looks very interesting but I am a beginner and need some guidance. The docs on vuehaus is pretty detailed and gave me a good starting point.

Allow custom video player with video embed

I need to upgrade the video embed block to use the custom video player (and we consider the player closed source), but only if it's available as not all sites use the custom player.

I did this for these sites:
https://github.com/funkhaus/mirada-frontend/blob/master/components/gutenberg/Embed.vue
https://github.com/funkhaus/missing-pieces-frontend/blob/master/components/gutenberg/Embed.vue
https://github.com/funkhaus/superbloom-frontend/blob/master/components/gutenberg/Embed.vue

New project - "Can't set headers after they are sent"

Upon repo clone, npm install, changing .env vars and then running dev server. This error persistently pops up

ERROR: Error Can't set headers after they are sent.

Does anyone have any idea on why this is so persistent?

My GQL endpoint WP backend is using your fuxt-backend theme.

Handle Netlify _redirects files during build

Currently Netlify wants us to put the _redirects file in /static/ and then does magic to handle the redirects... Seems like we should have _redirects file in the project root, and then the Nuxt build process puts it where it needs to be for Netlify, not living in static always.

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.