amosfolz / ufexcel Goto Github PK
View Code? Open in Web Editor NEWUserfrosting 4 Sprinkle to import/export data.
License: MIT License
Userfrosting 4 Sprinkle to import/export data.
License: MIT License
Right now there are two permissions controlling access to ufexcel features. import_data
and export_data
.
These are "high level" permissions and are probably too broad for most situations. To align with the concept of least-privilege (users should only have the highest level of permissions to complete their tasks), there needs to be better access control.
Two possible access control options :
Right now ufexcel requires a custom data-* attribute to be set on tables. To allow easier integration with default uf tables this could possibly be handled by using a custom default.php
config file: with $key => $value being the table 'id' attribute => actual db table
This would be used to allow ufexcel to identify what table id
corresponds to what table in the db without the need to set data-*
attributes.
$('.js-ufexcel-export').click(function() {
//grab nearest table id
var table = $("table:first").attr('id');
$("body").ufModal({
sourceUrl: site.uri.public + "/modals/ufexcel/export",
ajaxParams: {
table : table_name
},
msgTarget: $("#alerts-page")
});
attachForm();
});
return
['site' => [
'ufexcel_tables' => [
'table-users' => 'users',
'table-groups' => 'groups',
'table-permissions' => 'permissions',
'table-roles' => 'roles',
'table-activities' => 'activities']]];
Ideally the sprinkle would:
While:
I'm not sure how this can be implemented without modifying the base UF code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.