chore: update docker-compose.yml
This commit is contained in:
parent
e1e91bbe20
commit
d7a9608663
@ -10,6 +10,9 @@ services:
|
||||
- nocobase
|
||||
ports:
|
||||
- ${ADMINER_PORT}:8080
|
||||
volumes:
|
||||
- ./docker/adminer/login-sqlite-plugin.php:/var/www/html/plugins-enabled/login-sqlite-plugin.php
|
||||
- ./:/var/www/app
|
||||
postgres:
|
||||
image: postgres:10
|
||||
restart: always
|
||||
|
31
docker/adminer/login-sqlite-plugin.php
Normal file
31
docker/adminer/login-sqlite-plugin.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/** Enable auto-login for SQLite
|
||||
* @link https://www.adminer.org/plugins/#use
|
||||
* @author Jakub Vrana, https://www.vrana.cz/
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
|
||||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerLoginSqlite
|
||||
{
|
||||
|
||||
function login($login, $password)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
function loginForm()
|
||||
{
|
||||
?>
|
||||
<script<?php echo nonce(); ?>>
|
||||
addEventListener('load', function () {
|
||||
var driver = document.getElementsByName('auth[driver]')[0];
|
||||
if (isTag(driver, 'select')) {
|
||||
driver.onchange = function () {
|
||||
var trs = parentTag(driver, 'table').rows;
|
||||
for (var i=1; i < trs.length - 1; i++) { var disabled=/sqlite/.test(driver.value); alterClass(trs[i], 'hidden' , disabled); trs[i].getElementsByTagName('input')[0].disabled=disabled; } }; } driver.onchange(); }); </script>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
return new AdminerLoginSqlite();
|
@ -4,6 +4,11 @@ export default {
|
||||
name: 'uiSchemaTreePath',
|
||||
autoGenId: false,
|
||||
timestamps: false,
|
||||
indexes: [
|
||||
{
|
||||
fields: ['descendant'],
|
||||
},
|
||||
],
|
||||
fields: [
|
||||
{
|
||||
type: 'string',
|
||||
|
Loading…
Reference in New Issue
Block a user