Code Monkey home page Code Monkey logo

vitamin's People

Contributors

warrickbayman 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

Watchers

 avatar

vitamin's Issues

no dependencies in package.json

Everytime I install this, the package.json ends with only scripts and no dependencies. Is this the expected behavior?

//package.json
"scripts": {
"dev": "php ./artisan vitamin:serve",
"production": "vite build",
"prod": "yarn production",
"routes": "php ./artisan ziggy:generate resources/js/routes.js",
"horizon": "php ./artisan horizon"
},
"dependencies": {}
}

Ziggy Resource Route Issue

Hello,

Thank you for all your work. I came across your package when looking at Vite itself.

Having an issue with Ziggy and resource routes, and I'm sure it's on my end.

I have a resource route named:

Route::resource('test', HomeController::class);

Where the index method returns a Vue component named Test.vue directly in the Pages folder.

Test.vue:

<template>
Hello tester!!
    <a :href=route('test.index')>test</a>
</template>

<script setup>
import {route} from '@/Scripts/Routing/Router.js'
export default {
    name: "Test",
}
</script>

<style scoped>

</style>

However, if I try to load that page, I get this error:

[plugin:vite:vue] Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).


1  |  <template>
2  |  Hello tester!!
3  |      <a :href=route('test.index')>test</a>
   |                      ^
4  |  </template>
5  |

I'm perplexed as to what I'm missing or if there's an actual issue.

Error on Install

I tried installing this package but got the following error

Installing Vitamin configuration
   TypeError

  str_replace(): Argument #2 ($replace) must be of type array|string, int given

  at vendor/thepublicgood/vitamin/src/Installers/AbstractInstaller.php:40
     36▕
     37▕             $data = file_get_contents($source);
     38▕
     39▕             foreach ($this->variables() as $var => $value) {
  ➜  40▕                 $data = str_replace($var, $value, $data);
     41▕             }
     42▕
     43▕             file_put_contents($destination, $data);
     44▕             $this->output->write('.');

      +23 vendor frames
  24  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      ```

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.