Git Product home page Git Product logo

Comments (2)

alexusmai avatar alexusmai commented on July 18, 2024

Hi. You can use the already compiled version in package, this npm package is needed in order to embed the file manager in your applications on Vue.js

And the settings that you show are not complete, it should be like this(If you use only file manager):

import Vue from 'vue';
import Vuex from 'vuex';
import FileManager from 'laravel-file-manager'

Vue.use(Vuex);

// create Vuex store, if you don't have it
const store = new Vuex.Store();

Vue.use(FileManager, {store});

window.fm = new Vue({
  el: '#fm',
  store,
  template: '<file-manager></file-manager>'
});

and view

<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">

<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css>

 ....

<div class="container-fluid pb-3">
    <div class="row justify-content-center">
        <div class="col-10" style="height: 800px;">
            <div id="fm"></div>
        </div>
    </div>
</div>
...
<!-- File manager js -->
<script src="{{ asset('path/to/fm.js') }}"></script>

from vue-laravel-file-manager.

sgtcoder avatar sgtcoder commented on July 18, 2024
<link rel="stylesheet" href="{{ asset('vendor/file-manager/css/file-manager.css') }}">
<script src="{{ asset('vendor/file-manager/js/file-manager.js') }}"></script>

Thank you for providing the extra config. That actually worked perfect for me! I am going to work on ACL's and permissions and I will let you know if I have other questions. And above was the scripts and CSS also required.

from vue-laravel-file-manager.

Related Issues (20)

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.