Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Dashboard #61

Open
wants to merge 133 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
52cb1cb
#55 First commit of dashboard
waseemsadiq May 24, 2022
ed9411b
#55 Changes sites to a json data file
waseemsadiq May 24, 2022
d18feae
#55 Move the mobile logo and hamburger icon to the default layout
waseemsadiq May 24, 2022
b6007ec
#55 Add a path for the site to link to
waseemsadiq May 24, 2022
6ac1272
#55 Add tooltips for site actions
waseemsadiq May 24, 2022
bc9b02a
#55 Link the tools to the correct tool
waseemsadiq May 24, 2022
95bee52
#55 Rename deploy to remote server tooltip
waseemsadiq May 24, 2022
bddc0e7
#55 Move pageclass to the <body> tag
waseemsadiq May 24, 2022
642b386
#55 Add the pageclass back to the body tag so we can target embedded …
waseemsadiq May 25, 2022
2c661c1
#55 Change the pageclass to “embedded”
waseemsadiq May 25, 2022
5cb67a9
#55 Override php-apc embedded css and add joomlatools font
waseemsadiq May 25, 2022
89aef97
#55 Override php-apc css
waseemsadiq May 25, 2022
7ee2690
#55 Add `overflow-x:auto` to apc .content
waseemsadiq May 25, 2022
a7a7115
Merge branch 'master' into feature/55-dashboard
waseemsadiq May 25, 2022
156faaf
Merge branch 'master' into feature/55-dashboard
waseemsadiq May 27, 2022
dbea5e6
#55 Add git ignore for Joomla directory
waseemsadiq May 27, 2022
3a91c10
Merge branch 'master' into feature/55-dashboard
johanjanssens May 27, 2022
eb0a5fc
#55 - Fix dashboard
johanjanssens May 27, 2022
b857a45
Merge branch 'master' into feature/55-dashboard
johanjanssens May 27, 2022
0b3dd3c
#55 - Make http://localhost load dashboard
johanjanssens May 27, 2022
fbed5f8
#55 Load tools and services in an <object> tag
waseemsadiq May 30, 2022
a249b79
#55 Ignore WordPress directory
waseemsadiq May 30, 2022
7629270
#63 - Do not use 80 and 443 for default vhost, ports are not enabled …
johanjanssens May 27, 2022
084e41f
#65 - Add .my.cnf to user home to allow credentialless login's for cl…
johanjanssens May 28, 2022
fba1d4b
#65 - Use auth_socket for passwordless localhost authentication
johanjanssens May 28, 2022
6c4e210
#65 - Use auth_socket for passwordless localhost authentication
johanjanssens May 28, 2022
aa15bc0
#65 - Add admin user for mysql password based authentication
johanjanssens May 28, 2022
fb2e7b7
Update for Gitpod
johanjanssens May 28, 2022
473833b
Force rebuild for Gitpod
johanjanssens May 29, 2022
db4144a
Force Gitpod rebuild
johanjanssens May 29, 2022
4cc687e
Set correct path
johanjanssens May 29, 2022
7d5dea0
Rebuild Gitpod
johanjanssens May 29, 2022
740bb20
Do not disable file and fastcgi services
johanjanssens May 29, 2022
ef84baf
Run composer during build
johanjanssens May 29, 2022
22b7b40
Do not re-run composer_install
johanjanssens May 29, 2022
d27397c
Force Gitpod rebuild
johanjanssens May 29, 2022
d16f3d3
Fix typo
johanjanssens May 29, 2022
1c913c1
Fix typo
johanjanssens May 29, 2022
d3a45d5
Add jetbrains phpstorm config
johanjanssens May 30, 2022
c5202e9
Remove jetbrains config
johanjanssens May 30, 2022
adfa1bf
Force Gitpod rebuild
johanjanssens May 30, 2022
ace6192
Copy config for user
johanjanssens May 30, 2022
5b59d1b
#70 - Initial import
johanjanssens May 27, 2022
9b9a1d8
#70 - Adding additional commands
johanjanssens May 27, 2022
92bda3d
#70 - Add jtctl to bin
johanjanssens May 27, 2022
26ea8cb
#70: Do not run 'down' by default on app container as it removes the …
ercanozkaya May 30, 2022
4eb74f7
#70: Push all extra arguments to start, remove, destroy, and status
ercanozkaya May 30, 2022
efcb544
#70: Compose commands need the profile setting to act on all containers
ercanozkaya May 30, 2022
6dbd648
#70: Remove command shouldn't remove images as opposed to destroy whi…
ercanozkaya May 30, 2022
59a8f52
#70: Remove debug line
ercanozkaya May 30, 2022
d474d4c
#74 - Implement mod_vhost_alias
johanjanssens May 28, 2022
72d0510
#74: Skip vhost creation as we depend on mod_vhost_alias
ercanozkaya May 30, 2022
46bf876
#74: Remove unnecessary vhost files and keys
ercanozkaya May 30, 2022
ff2eaa2
#77: Add known locations to joomlatools-console and folioshell to be …
ercanozkaya May 30, 2022
dffbd88
Remove leftover file
ercanozkaya May 30, 2022
4615dcf
Make default ports configurable
johanjanssens May 30, 2022
cfe338d
Force Gitpod rebuild
johanjanssens May 30, 2022
c077cdd
Force Gitpod rebuild
johanjanssens May 30, 2022
8d5efd7
#66 - Implement minica for automatic certificate generation
johanjanssens May 30, 2022
dbecbd6
#66 - Add minica support
johanjanssens May 30, 2022
85a3ecc
#66 - Add minica support
johanjanssens May 30, 2022
5778f31
#66: Add cert:create command that runs after site:create command auto…
ercanozkaya May 27, 2022
56f6833
#66: Add cert:create command for Folioshell as well
ercanozkaya May 27, 2022
ea8bb7f
#66: Also create certificates for www. prefix
ercanozkaya May 30, 2022
59e2bcb
#55 - Use alternative 8081 http port for dashboard
johanjanssens May 30, 2022
da1fee8
#55 - site_rewrites macro has been remove
johanjanssens May 30, 2022
8b48dd2
#55 - Proxy localhost to dashboard on port 8081
johanjanssens May 30, 2022
ce671ea
#55 - Change port to 8008
johanjanssens May 30, 2022
f4f047e
#55 - Do not set RequestHeaders, not required when using phpfpm directly
johanjanssens May 30, 2022
34be1d9
#55 - Cleanup
johanjanssens May 30, 2022
f2d84f3
#55 - Change port to 8008
johanjanssens May 30, 2022
bc7e90a
#55 Add PHP menu item and reorganise tools and services
waseemsadiq May 31, 2022
0447704
#55 Add menu partials to build our menu from the Pages collection
waseemsadiq May 31, 2022
ab836e3
#55 use submenu partial
waseemsadiq May 31, 2022
9721fc8
#55 Wrong frontmatter for the tools page and dasboard page, they were…
waseemsadiq May 31, 2022
b816786
#55 Clear content for landing pages
waseemsadiq May 31, 2022
a10fba4
#55 - Fix typo
johanjanssens May 31, 2022
a1c8e87
#55 Update submenu.html.php to output the dashboard (top level) link too
waseemsadiq Jun 1, 2022
6eee789
#55 Make dashboard table tableless
waseemsadiq Jun 1, 2022
c79e8a5
#55 Fix menu open and close
waseemsadiq Jun 1, 2022
23fd381
#55 Code clean up
waseemsadiq Jun 1, 2022
aa96321
#55 Menu restyle
waseemsadiq Jun 1, 2022
3a73222
#55 Add purple colours to mason safe list
waseemsadiq Jun 1, 2022
157ec17
#55 Fix logo hyperlink
waseemsadiq Jun 1, 2022
b9e516e
#55 Add landing pages for PHP, Tools & System
waseemsadiq Jun 2, 2022
85d1120
#55 Swap the order of the title and subtitle
waseemsadiq Jun 2, 2022
04dd16e
#55 Rename submenu items
waseemsadiq Jun 2, 2022
6ddef8b
#55 Add nicer app logos
waseemsadiq Jun 2, 2022
18a90af
#55 Update traefik image
waseemsadiq Jun 2, 2022
8b24017
#55 Change the if clause order
waseemsadiq Jun 2, 2022
5b856c3
#55 Update the Xdbug warning with information about how to enable it
waseemsadiq Jun 2, 2022
4d108ed
#55 Increase the border width for php logos
waseemsadiq Jun 2, 2022
41e1da5
#55 Remove `flex-col` on menu parents
waseemsadiq Jun 2, 2022
05e5206
#55 Add a hover and active colour for the menu dropdown buttons
waseemsadiq Jun 2, 2022
539b893
#55 Remove <main> `overflow-y-scroll`
waseemsadiq Jun 4, 2022
0cd7349
#55 Replace black background colour and fix sidebar z-index for small…
waseemsadiq Jun 4, 2022
d0c5615
#55 Add fullscreen button for x-debug
waseemsadiq Jun 4, 2022
a83721a
Merge branch 'master' into feature/55-dashboard
johanjanssens Jun 4, 2022
df7c338
Update
johanjanssens Jun 4, 2022
e0474f2
Merge branch 'master' into feature/55-dashboard
johanjanssens Jun 4, 2022
a5728a4
#21 - Add config for phpmyadmin
johanjanssens Jun 4, 2022
b9b8989
#21 - Fix typo
johanjanssens Jun 4, 2022
1e139a4
Fix merge issue
johanjanssens Jun 4, 2022
d08d3a5
#55 - Remove wrongly committed site
johanjanssens Jun 4, 2022
9ea2bf2
#21 - Fix file location. Use user config to not overwrite default config
johanjanssens Jun 4, 2022
570d127
#21 - Enable bootstrap theme
johanjanssens Jun 5, 2022
9a367cc
#55 Switch off theme manager in phpmyadmin config
waseemsadiq Jun 5, 2022
ee8d58e
#55 Link directly to phpmyadmin
waseemsadiq Jun 5, 2022
67ef525
#55 Fix pages that don’t allow horizontal scrolling in the main body …
waseemsadiq Jun 5, 2022
5f04fe0
#55 Remove $cfg['CSPAllow'] - it’s not needed
waseemsadiq Jun 5, 2022
43af85f
#55 Switch off the favorite and recent table buttons
waseemsadiq Jun 5, 2022
c3dfb0b
#55 Fix typo
waseemsadiq Jun 5, 2022
4dc914f
#55 Disable the server select box
waseemsadiq Jun 5, 2022
5a73bce
#55 Hide site number and version column on small screens and fix whit…
waseemsadiq Jun 5, 2022
2302acf
#55 Increase table border radius
waseemsadiq Jun 5, 2022
c4bd1ee
#55 Add site item cards for larger screens
waseemsadiq Jun 6, 2022
794294a
#55 Update fly icon
waseemsadiq Jun 6, 2022
894859b
#55 Add site description div
waseemsadiq Jun 6, 2022
9094645
#55 Fix typo
waseemsadiq Jun 6, 2022
21613e5
Merge branch 'master' into feature/55-dashboard
johanjanssens Jun 6, 2022
faae5d2
#55 - Fix config location
johanjanssens Jun 6, 2022
f81fbb2
#55 Commit images and update gitignore
waseemsadiq Jun 7, 2022
acf5e0d
Merge branch 'feature/55-dashboard' of github.com:joomlatools/joomlat…
waseemsadiq Jun 7, 2022
3791899
Merge branch 'master' into feature/55-dashboard
johanjanssens Jun 7, 2022
f13a5e7
#55 - Fix DocumentRoot for dashboard
johanjanssens Jun 7, 2022
0e2d6c5
Merge branch 'master' into feature/55-dashboard
johanjanssens Jun 7, 2022
b9099dd
#55 Make Databases a top level link
waseemsadiq Jun 8, 2022
27e4e41
Merge branch 'master' into feature/55-dashboard
johanjanssens Jun 9, 2022
d19f0f2
Merge branch 'master' into feature/55-dashboard
johanjanssens Jun 9, 2022
e67bde0
Merge branch 'master' into feature/55-dashboard
johanjanssens Jun 11, 2022
4c232e3
Merge branch 'master' into feature/55-dashboard
johanjanssens Jun 15, 2022
57125e6
Merge branch 'master' into feature/55-dashboard
johanjanssens Sep 21, 2022
60d882a
Merge branch 'master' into feature/55-dashboard
johanjanssens Nov 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# IDE & System Related Files #
.buildpath
.project
.settings
Expand All @@ -20,4 +19,5 @@ sites/**/theme/node_modules
sites/**/theme/css/*.map

# Sites
sites/**
sites/*
!sites/dashboard
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div align="center">
<br>
<h1>Joomlatools Server</h1>
<strong>Cloud Native development environment for Joomla</strong>
<strong>Cloud Native dev environment for Joomla</strong>
</div>
<br>
<p align="center">
Expand All @@ -17,9 +17,9 @@ Welcome to the Joomlatools Server codebase, our home-grown **cloud native develo

### What is Joomlatools Server?

Joomlatools Server is Docker container that is specially tailored for developing websites with Joomla CMS and [Joomlatools Pages](https://github.com/joomlatools/joomlatools-pages) and is supported on macOS, Linux, and Windows (via WSL2).
Joomlatools Server is Docker container that is specially tailored for developing websites with Joomla CMS, Wordpress and [Joomlatools Pages](https://github.com/joomlatools/joomlatools-pages) and is supported on macOS, Linux, and Windows (via WSL2).

It offers support for both Joomla 3 and 4 and can be used as a local/remote development environment. You can run it locally using Docker Desktop, or remotely using Gitpod.
It offers support for both Joomla 3 a& 4, Wordpress 5 & 6 and Joomlatools Pages and can be used as a local/remote development environment. You can run it locally using Docker Desktop, or remotely using Gitpod.

## Getting started

Expand Down
28 changes: 28 additions & 0 deletions config/phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in documentation in the doc/ folder
* or at <https://docs.phpmyadmin.net/>.
*/

declare(strict_types=1);

// Logo link back to Dashboard
$cfg['NavigationLogoLink'] = 'http://localhost';

// Theme
$cfg['ThemeDefault'] = 'bootstrap';

// Theme selector on front page
$cfg['ThemeManager'] = false;

// Disable recent tables button
$cfg['NumRecentTables'] = '0';

// Disable favourite tables button
$cfg['NumFavoriteTables'] = '0';

// Disable the server select box
$cfg['NavigationDisplayServers'] = false;
25 changes: 23 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,32 @@ services:
- .env
labels:
- "traefik.enable=true"

# Routers
- "traefik.http.routers.joomlatools-server-tunnel.rule=HostRegexp(`{name:(.*)}.trycloudflare.com`)"
- "traefik.http.routers.joomlatools-server-tunnel.entrypoints=web"
- "traefik.http.routers.dashboard-http.rule=Host(`localhost`)"
- "traefik.http.routers.dashboard-http.entrypoints=web"
- "traefik.http.routers.dashboard-http.service=dashboard"

- "traefik.http.routers.dashboard-https.rule=Host(`localhost`)"
- "traefik.http.routers.dashboard-https.entrypoints=websecure"
- "traefik.http.routers.dashboard-https.service=dashboard"
- "traefik.http.routers.dashboard-https.tls=true"

- "traefik.http.routers.joomlatools-server-http.rule=HostRegexp(`{name:(.*)}.test`)"
- "traefik.http.routers.joomlatools-server-http.entrypoints=web"
- "traefik.http.routers.joomlatools-server-http.service=joomlatools-server"

- "traefik.http.routers.joomlatools-server-tunnel.rule=HostRegexp(`{name:(.*)}.trycloudflare.com`)"
- "traefik.http.routers.joomlatools-server-tunnel.entrypoints=web"
- "traefik.http.routers.joomlatools-server-tunnel.service=joomlatools-server"

- "traefik.http.routers.joomlatools-server-https.rule=HostRegexp(`{name:(.*)}.test`)"
- "traefik.http.routers.joomlatools-server-https.entrypoints=websecure"
- "traefik.http.routers.joomlatools-server-https.service=joomlatools-server"
- "traefik.http.routers.joomlatools-server-https.tls=true"

# Services
- "traefik.http.services.dashboard.loadbalancer.server.port=8008"
- "traefik.http.services.joomlatools-server.loadbalancer.server.port=80"
volumes:
- ./sites/:/var/www/sites
Expand Down Expand Up @@ -166,6 +183,10 @@ services:
restart: unless-stopped
depends_on:
- joomlatools-server
volumes:
- type: bind
source: ./config/phpmyadmin/config.inc.php
target: /etc/phpmyadmin/config.user.inc.php
environment:
- PMA_HOST=joomlatools-server
- PMA_VERBOSE=joomlatools-server
Expand Down
17 changes: 17 additions & 0 deletions sites/dashboard/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

return [

'redirects' => include __DIR__.'/redirects.php',

'extension_config' =>
[

],


// Page
'page' => [
'visible' => true,
]
];
10 changes: 10 additions & 0 deletions sites/dashboard/config/apache/server.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Listen 8008

<VirtualHost *:8008>

use vhost
use site

DocumentRoot ${APP_ROOT}/sites/dashboard

</VirtualHost>
81 changes: 81 additions & 0 deletions sites/dashboard/data/sites.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
[
{
"url": "#",
"img": "pages_thumbnail.png",
"name": "www.example.com",
"desc": "",
"platform_name": "Pages",
"platform_version": "0.24",
"platform_bg_color": "jtblue-200",
"platform_text_color": "jtblue-600"
},
{
"url": "#",
"img": "pages_thumbnail.png",
"name": "pagestest",
"desc": "",
"platform_name": "Pages",
"platform_version": "0.23",
"platform_bg_color": "jtblue-200",
"platform_text_color": "jtblue-600"
},
{
"url": "#",
"img": "j3_template_preview.png",
"name": "joomla3test",
"desc": "Joomla! - the dynamic portal engine and content management system",
"platform_name": "Joomla 3",
"platform_version": "3.10.99",
"platform_bg_color": "red-200",
"platform_text_color": "red-600"
},
{
"url": "#",
"img": "j3_template_preview.png",
"name": "joomla3test2",
"desc": "Joomla! - the dynamic portal engine and content management system",
"platform_name": "Joomla 3",
"platform_version": "3.10.15",
"platform_bg_color": "red-200",
"platform_text_color": "red-600"
},
{
"url": "#",
"img": "j4_template_preview.png",
"name": "joomla4test",
"platform_name": "Joomla 4",
"desc": "Joomla! - the dynamic portal engine and content management system",
"platform_bg_color": "green-200",
"platform_text_color": "green-600"
},
{
"url": "#",
"img": "j4_template_preview.png",
"name": "joomla4test2",
"platform_name": "Joomla 4",
"desc": "Joomla! - the dynamic portal engine and content management system",
"platform_version": "4.0.15",
"platform_bg_color": "green-200",
"platform_text_color": "green-600"
},
{
"url": "#",
"img": "wp_screenshot.png",
"name": "wptest",
"desc": "wordpress &#8211; Just another WordPress site",
"platform_name": "WordPress 5",
"platform_version": "5.93",
"platform_bg_color": "yellow-200",
"platform_text_color": "yellow-600"
},
{
"url": "#",
"img": "wp_screenshot.png",
"name": "wptest2",
"desc": "wordpress &#8211; Just another WordPress site",
"platform_name": "WordPress 6",
"platform_version": "6.01",
"platform_bg_color": "purple-200",
"platform_text_color": "purple-600"
}
]
1 change: 1 addition & 0 deletions sites/dashboard/images/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added sites/dashboard/images/app-logos/PHP-OPcache.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/app-logos/Xdebug_Logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/app-logos/dozzle.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/app-logos/mailhog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/app-logos/php-apc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/app-logos/php-fpm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/app-logos/php-info.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/j3_template_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/j3_template_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/j4_template_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/j4_template_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/joomlatools_logo_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/pages_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/dashboard/images/wp_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions sites/dashboard/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
define('KOOWA_ROOT' , getenv('APP_ROOT'));
define('KOOWA_VENDOR', getenv('APP_DATA').'/vendor');
define('KOOWA_CONFIG', getenv('APP_DATA').'/config/vendor');

require KOOWA_VENDOR.'/joomlatools/pages/resources/pages/bootstrapper.php';
5 changes: 5 additions & 0 deletions sites/dashboard/pages/.order.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- index.html.php
- phpmyadmin.html.php
- php
- tools
- system
85 changes: 85 additions & 0 deletions sites/dashboard/pages/index.html.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
@layout:
path: /default


name: Dashboard
title: Joomlatools Server Dashboard
summary: Dashboard for managing Joomlatools Server
---

<section class="max-w-7xl mx-auto py-4 px-5">
<div class="flex justify-between items-center border-b border-gray-300">
<h1 class="text-2xl font-semibold pt-2 pb-6">Sites running on this server</h1>
<button type="button" class="px-6 py-2.5 bg-jtblue-600 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-jtblue-700 hover:shadow-lg focus:bg-jtblue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-jtblue-800 active:shadow-lg transition duration-150 ease-in-out">
Add a site
</button>
</div>

<!-- TABLE -->
<div class="bg-white shadow rounded-lg overflow-x-scroll md:bg-transparent md:shadow-none md:rounded-none md:overflow-x-none my-8">
<div class="flex flex-row w-full justify-between bg-gray-200 text-gray-600 uppercase text-sm font-bold leading-normal md:hidden">
<div class="w-5/12 py-3 px-6 text-left">Site</div>
<div class="w-4/12 py-3 px-6 text-center">Platform</div>
<div class="w-3/12 py-3 px-6 text-right">Actions</div>
</div>
<div class="text-gray-600 text-sm md:grid lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 md:gap-8 md:m-4 ">
<? $id = 1; foreach(data('sites') as $site) : ?>
<div id="sites" class="flex flex-row md:grid w-full justify-between border-b border-gray-200 hover:bg-gray-100 md:border-none md:bg-white md:hover:bg-white md:shadow md:rounded-lg transform transition duration-300 md:hover:scale-105">
<div class="hidden md:block lg:w-full place-self-center lg:place-self-start">
<a href="<?= $site->url ?>">
<img class="object-cover object-top h-20 w-20 lg:h-40 lg:w-full rounded-full lg:rounded-t-lg lg:rounded-b-none" src="images://<?= $site->img ?>">
</a>
</div>
<div class="w-5/12 py-3 px-6 text-left font-semibold md:text-2xl">
<a class="hover:underline" href="<?= $site->url ?>">
<?= $site->name ?>
</a>
</div>
<div class="hidden md:block px-6 text-left">
<?= $site->desc ?>
</div>
<div class="w-4/12 py-3 px-6 text-center md:text-left"><span class="bg-<?= $site->platform_bg_color ?> text-<?= $site->platform_text_color ?> py-1 px-3 rounded-full text-xs md:text-sm whitespace-nowrap"><?= $site->platform_name ?></span></div>
<div class="hidden md:flex py-3 px-6 text-left md:text-sm"><span>Version: </span><span><?= $site->platform_version ?></span></div>
<div class="w-3/12 md:w-full py-3 pr-2">

<div class="flex item-center justify-end">
<div class="w-4 mr-2 transform hover:text-purple-500 hover:scale-110 cursor-pointer cursor-pointer has-tooltip">
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
<span class="tooltip rounded shadow-lg p-1 bg-gray-800 text-white -mt-12 -ml-8 text-center">View site</span>
</div>
<div class="w-4 mr-2 transform hover:text-purple-500 hover:scale-110 cursor-pointer cursor-pointer has-tooltip">
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z" />
</svg>
<span class="tooltip rounded shadow-lg p-1 bg-gray-800 text-white -mt-12 -ml-8 text-center">Edit site</span>
</div>
<div class="w-4 mr-2 transform hover:text-purple-500 hover:scale-110 cursor-pointer cursor-pointer has-tooltip">
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
</svg>
<span class="tooltip rounded shadow-lg p-1 bg-gray-800 text-white -mt-12 -ml-8 text-center">Delete site</span>
</div>
<div class="w-4 mr-2 transform hover:text-purple-500 hover:scale-110 cursor-pointer cursor-pointer has-tooltip">
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10" />
</svg>
<span class="tooltip rounded shadow-lg p-1 bg-gray-800 text-white -mt-12 -ml-28 text-center">Download remote site</span>
</div>
<div class="w-4 mr-2 transform hover:text-purple-500 hover:scale-110 cursor-pointer cursor-pointer has-tooltip">
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" fill="currentColor" stroke="none">
<!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
<path d="M197.8 427.8c12.9 11.7 33.7 33.3 33.2 50.7 0 .8-.1 1.6-.1 2.5-1.8 19.8-18.8 31.1-39.1 31-25-.1-39.9-16.8-38.7-35.8 1-16.2 20.5-36.7 32.4-47.6 2.3-2.1 2.7-2.7 5.6-3.6 3.4 0 3.9.3 6.7 2.8zM331.9 67.3c-16.3-25.7-38.6-40.6-63.3-52.1C243.1 4.5 214-.2 192 0c-44.1 0-71.2 13.2-81.1 17.3C57.3 45.2 26.5 87.2 28 158.6c7.1 82.2 97 176 155.8 233.8 1.7 1.6 4.5 4.5 6.2 5.1l3.3.1c2.1-.7 1.8-.5 3.5-2.1 52.3-49.2 140.7-145.8 155.9-215.7 7-39.2 3.1-72.5-20.8-112.5zM186.8 351.9c-28-51.1-65.2-130.7-69.3-189-3.4-47.5 11.4-131.2 69.3-136.7v325.7zM328.7 180c-16.4 56.8-77.3 128-118.9 170.3C237.6 298.4 275 217 277 158.4c1.6-45.9-9.8-105.8-48-131.4 88.8 18.3 115.5 98.1 99.7 153z"/>
</svg>
<span class="tooltip rounded shadow-lg p-1 bg-gray-800 text-white -mt-12 -ml-24 text-center">Deploy to fly.io</span>
</div>
</div>

</div>
</div>
<? $id++; endforeach ?>
</div>
</section>
6 changes: 6 additions & 0 deletions sites/dashboard/pages/php/.order.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- index.html.php
- php-xdebug.html.php
- php-apc.html.php
- php-fpm.html.php
- php-opcache.html.php
- php-info.html.php
Loading