luyadev / luya-module-admin Goto Github PK
View Code? Open in Web Editor NEWAdministration base module for all LUYA admin modules
Home Page: https://luya.io
License: MIT License
Administration base module for all LUYA admin modules
Home Page: https://luya.io
License: MIT License
Hello,
I installed luya but I can't login to admin panel. When I open the url: http://localhost/cms/luya/public_html/admin the page redirected to http://localhost/cms/luya/public_html/admin/login, then I enter username/password and push login button. A request made to url: http://localhost/cms/luya/public_html/admin/login/async that its response is JSON: {"refresh":true,"errors":false,"enterSecureToken":false}
The page refreshed and again login page appeared!!!
This issue has originally been reported by @nadar at luyadev/luya#1506.
Moved here by @nadar.
A "DynamicButton" which allows you to copy a CRUD row, therefore we have to introduce a button ability similar to active windows, without an overlay.
Example Implementation of such a Button
This issue has originally been reported by @nadar at luyadev/luya#1767.
Moved here by @nadar.
List of things to do for LUYA headless CMS announcement:
This issue has originally been reported by @rolandschaub at luyadev/luya#1718.
Moved here by @nadar.
File names are shortened on selector buttons and in list views of the file manager. The user should still have the possibility to see the complete file name, e.g. by showing a tooltip when hovering over the abbreviated file name:
As for the button: Maybe the file names shouldn't be shown as button labels β it's just too short in many situations. Why not use something like this:
File:
No file selected [Select]
File:
This-is-my-very-long-file-name.pdf [Clear] [Change]
This issue has originally been reported by @dev7ch at luyadev/luya#1713.
Moved here by @nadar.
The date picker should be optimized:
This issue has originally been reported by @nadar at luyadev/luya#1546.
Moved here by @nadar.
Possibility to have time only datatype for ngRestAttributeTypes
Update Bootstrap to v4.0.0.
use ActiveQuery instead of ActiveDataProvider.
The compiled version of the admin (main.js) should have the same naming as cms module have: main.min.js
Add Dummy File System for unit testing.
This issue has originally been reported by @kogli at luyadev/luya#1360.
Moved here by @nadar.
There is currently no way to show the delete button in ngRest CRUD for some entries only, based on a condition.
This would be useful when, for example, some entries were tied to other entries in other tables. Currently, the button is either shown or hidden for all entries.
I tried replacing ['delete', true]
with something like ['delete', $this->id == 2]
, but to no avail - when ngRestScopes()
is called, values of the Model instance are not populated: $this->id
is null
, so $this->id == 2
returns false
.
This issue has originally been reported by @rolandschaub at luyadev/luya#1353.
Moved here by @nadar.
There are situations, where it would be good to read all files from a directory created in the file manager. Example: Let's create an image gallery block. Instead of having to add dozens of images manually, the block could allow to select a file manager directory and then include all image files in this directory in the gallery (probably sorted by file name).
This issue has originally been reported by @masihfathi at luyadev/luya#1722.
Moved here by @nadar.
is it possible to support RTL direction in luya?
something should be done for example, text and text editor block in the CMS should support RTL direction and the navbar menu should be mirrored to right and breadcrumbs text should start from right. see this RTL bootstrap.
for more about RTL support see this:
https://www.upwork.com/hiring/for-clients/web-design-for-rtl-languages-basics/
Q | A |
---|---|
LUYA Version | |
PHP Version | |
Platform | |
Operating system |
It would be nice to have an option in ngRestAttributeTypes(), maybe e.g. like this:
public function ngRestAttributeTypes()
{
return [
['info' => ['textarea', 'options' => ['min-height' => '220px']]],
];
}
which lets you define the min-height for textarea inputs in the Admin UI, because now there isnΒ΄t much height difference between text and textarea inputs.
Debug panel and remote data should provide the application package installer data from installer.php file from vendor.
This issue has originally been reported by @dev7ch at luyadev/luya#1742.
Moved here by @nadar.
Add time field via NgRestPlugins ( Not as text field or whatever)
have a field like datetime
which lets you select a time ( e.g. hour:minute) only
No time field supported in NgRestPlugins currently
| LUYA Version | dev-master
This issue has originally been reported by @silvanschaad at luyadev/luya#1342.
Moved here by @nadar.
Open a tab within a module. Switch to another entry and the open tab closes.
This issue has originally been reported by @neurobug at luyadev/luya#1235.
Moved here by @nadar.
Create module
Create model from table with fields type date or timestamp
import, set up permissions set up module, add menus for models
for the model with dates or timestamp, I go to add a new item in the admin panel, then I got a form with input fields to enter the data
dates and timestamps shown properly
dates being saved properly
The original values were not loaded, instead I got an NaN
I selected in the empty fields a date value and then saved, I got the following error
Q | A |
---|---|
LUYA Version | 1.0.0-RC2 |
PHP Version | PHP 5.6.30 |
Platform | Apache |
Operating system | OSX |
This issue has originally been reported by @baqianxin at luyadev/luya#1743.
Moved here by @nadar.
https://demo.luya.io/en/admin#!/template/admin~2Faccount~2Fdashboard
javascript error
Q | A |
---|---|
LUYA Version | 1.0.0 |
PHP Version | 7.0.1 |
Platform | Apache/XAMPP/MAMPP/etc. |
Operating system | Windows/Linux Server/OSX/etc. |
This issue has originally been reported by @rolandschaub at luyadev/luya#1328.
Moved here by @nadar.
When turning i18n mode on or off for a field, already existing values are lost.
The values should be converted to new format (using default language values as default).
The admin login
interface where we provide the credentials if you directly copy the email
inside the email input field the placeholder shows up like the following
Problem with uploading SVG files.
In the file manager it should be possible to rename files.
When trying to logout from my current active session i hove over the user panel and klick the logout button - but nothing happens after first click. after the second click the logout link works.
This issue has originally been reported by @dev7ch at luyadev/luya#1641.
Moved here by @nadar.
For now, the complete resources folder (including node_moduels, scss, not minified files, etc) is copied into the public Assets. This is not needed and turns your local machine into a "smoking machine" during development ( e.g. if you use assetManager -> linkAssets => true it almost burns)
compile all needed files and folder ( e.g. local, dev, prod) into resource/dist
via gulp and load only the dist folder inassets\ResourceAssets.php
smoking mac ;)
tested and works fine for me.
Q | A |
---|---|
LUYA Version | dev-master |
This issue has originally been reported by @JDL747 at luyadev/luya#1766.
Moved here by @nadar.
Have the possibility to hide the ID column for module list view.
Maybe, it can be set using a config variable so as to be able to activate it based on the environment !
In the Add News
section where we provide the
Under Media
section the 3rd section i.e File List
Never shows file preview no matter how many times you provide the file the behavior is same in both chrome
and Firefox
see below
Chrome
This issue has originally been reported by @nadar at luyadev/luya#1525.
Moved here by @nadar.
Improve ng rest logger behavior:
This issue has originally been reported by @rolandschaub at luyadev/luya#1576.
Moved here by @nadar.
In order to time certain tasks (like the de/activation of a web page, a page version, a content block or a data record) it would be good to include a scheduler/task manager. Blocks, models and other classes could register certain functions with the scheduler so that their execution can be timed. This would be much more powerful and versatile than the inclusion of "active from" and "active to" timestamp fields for a page etc. It would also allow to time the same task multiple times, like switch page on/off/on at certain times.
This issue has originally been reported by @nadar at luyadev/luya-module-cms#32.
Moved here by @nadar.
When a cms property trys to store a array, it should auto encode its value, example page property with type link.
Make two models. Both are using a selectModel in their ngRestConfig (ngRestAttributeTypes) and they should reference each other.
You want to be able to select and reference the other model by id.
If you are in list view, you'll get a recursive loop exceeding memory limit or execution time. Update and create views are working without problems.
This issue has originally been reported by @nadar at luyadev/luya#753.
Moved here by @nadar.
Add new storage filter apply possibibile to dynamic evalutate the current filter for the current device.
configure your sizes:
'mediaSize' => [
'mobile' => 'thumbnail-small',
'desktop => 'thumbnail-medium',
'retina' => 'thumbnail-superlarge',
]
use them in your template:
Yii::$app->storage->getImage(123)->applyDynamicMediaSize()->source;
Due to apis have a fixed admin/xyz endpoint those controllers will "moved" to admin module while booting the admin module. Therfore the $module property for a given api is always the admin module, this is wrong and makes it hard to read config options from the module.
API controllers should implement the module property from the given module.
Under Block Management
section if I click on the x
icon against the News: Latest Headlines
row under the is Disabled
section it reloads the page and logs me out and displays the login page, and after I log in and go back to the same section there is still x
icon displayed under is Disabled
column and is that some kind of feature restricted in the demo version, either case it should not log me out and take me to the login page without displaying any success or error messages.
This issue has originally been reported by @nadar at luyadev/luya#1599.
Moved here by @nadar.
Ability to register yubikey devices as alternativ for 2way auth via email.
https://github.com/Yubico/php-u2flib-server/blob/master/examples/pdo/index.phps
References:
Forms:
login
changepassword form:
infos:
https://www.chromium.org/developers/design-documents/create-amazing-password-forms
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofilling-form-controls%3A-the-autocomplete-attribute
This issue has originally been reported by @rolandschaub at luyadev/luya#529.
Moved here by @nadar.
It should be possible to reorganize directory structure by moving directories into other directories.
Demo seems to be broken at some sections like if you go to admin
and try to create a new news
and then select Date
under time
section the timepicker
appears after selecting date
but clicking it wont do anything and the layout seems to be broken as the hours and minutes are not aligned. The layout, it acts differently in both Chrome
and Firefox
although the timepicker
does not work under both of them the layout seems to be ok in chrome
but not in firefox here are the screen grabs for both the browsers
FIREFOX
CHROME
This issue has originally been reported by @rolandschaub at luyadev/luya#1212.
Moved here by @nadar.
When reloading a CRUD form, sometimes images are declared missing that are not really missing. Reloading the form several times will "randomly" show the image and declare it missing.
(This is on a website with hundreds of images and > 1 GB image data!)
The image should be show every time the form is loaded.
Q | A |
---|---|
LUYA Version | 1.0.0-dev |
PHP Version | 7.0.8 |
Platform | Apache/MAMPP |
Operating system | OSX |
When closing a crud active window with ESC, and re open the active window its not scroll able anymore.
{"name":"PHP Warning","message":"count(): Parameter must be an array or an object that implements Countable","code":2,"type":"yii\\base\\ErrorException","file":"/app/vendor/luyadev/luya-module-admin/src/ngrest/base/ActiveWindow.php","line":344,"stack-trace":
This issue has originally been reported by @TheMaaarc at luyadev/luya#1381.
Moved here by @nadar.
Add a checkbox "Send account information to user". If checked, automatically send a mail with user, password and URL Information to the created user.
This issue has originally been reported by @rolandschaub at luyadev/luya#1701.
Moved here by @nadar.
Replace an image file with a new file using the "Replace" button in the file manager.
The new image should be displayed in the administration (e.g. in blocks) and frontend.
The image is missing in the administration and frontend (LUYA is reporting that the original file is missing). When reselecting the image in a block, the old version is displayed again.
| LUYA Version | dev master
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.