Coder Social home page Coder Social logo

mavo-php's People

Contributors

falafel65 avatar leaverou avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

mavo-php's Issues

Removing authentication, keep write files

Hello and thanks for this nice mavo plugin.

I was messing with your code trying to remove authentication (make it work like the local storage mode does), but still using php to write files on server. Unfortunately couldn't make it.
I would appreciate any help and what to remove and make it work.

(I come from the designers world and my skills on coding are very primitive, so forgive me if the answer to my question is very obvious)

Use the backend to retrieve data

As @GalinhaLX mentionned, you may want to protect your data files of public access. I don't get why, but that's not the point.

The backend would the only one able to access the files via PHP file access.

Question mavo-php backend to save in specific location.

Hay Falafel 65 , I am using the mavo-php plug in and its working
I only struggle with the location where it saves images files (mv-portfolio app) .

I Uploaded al your php files at the top level but it puts al image uploads
also at the top level.

My mv-storage is set to datas/randomname.json would that not also be
the location to store image files to ?
mv-app="portfolio"
mv-storage-type="php"
mv-storage="datas/randomname.json">

I have low level knowledge of PHP so any help would be really appreciated.
btw Thanks for your work

Winn

Auto-login in Mavo app after login page

As @GalinhaLX mentionned, if you click on login the first time, you are redirect to the login page. So far, it's ok.
But after the login, you go back to the original app page, and then to be logged you have to click again on login.

The problem reside in the fact that the Mavo app does not have the user infos on the initialisation stage (= constructor) so it won't recognize you as logged until it ask the server if the user is logged (user is in $_SESSION).

Two solutions :

  1. Force the retrieving of user data from server on init
  2. Store the user info on local device (and have to check if the user is still really logged)

Better handling for file uploads

  • Check if overwriting files
  • Check if path exists, and if not, create it
  • Check if ressource is safe to write (not remote and such)
  • Send back an url friendly filename

Edit mode not working

Bonjour @Falafel65

I've been able to install this plug in, and read data.json file correctly

But I'm not able to edit properties and save data (despite correct file permissions)

I guess it's the same cause @LeaVerou and @DmitrySharabin
are talking about in another plugin here

I get this error:
image

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.