├── storage ├── logs │ ├── errors.log │ └── services.log └── eggs.json ├── tailwind.conf ├── resources ├── configuration │ ├── locations.ejs │ └── eggs.ejs ├── credentials.ejs ├── components │ ├── footer.ejs │ └── wrapper.ejs ├── afk.ejs ├── index.ejs ├── store.ejs ├── admin.ejs ├── dashboard.ejs └── create.ejs ├── tailwind.config.js ├── .env.example ├── package.json ├── index.js ├── app ├── admin.js ├── coins.js ├── core.js ├── auth.js └── servers.js ├── README.md ├── LICENSE └── public └── tailwind.css /storage/logs/errors.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /storage/logs/services.log: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tailwind.conf: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; -------------------------------------------------------------------------------- /resources/configuration/locations.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** Palladium TailwindCSS Config */ 2 | module.exports = { 3 | content: ["./resources/*.ejs", "./resources/**/*.ejs", "./resources/**/**/*.ejs"], 4 | theme: { 5 | extend: {}, 6 | }, 7 | plugins: [ 8 | require('@tailwindcss/forms'), 9 | ], 10 | } -------------------------------------------------------------------------------- /resources/configuration/eggs.ejs: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /storage/eggs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 5, 4 | "name": "Uranium", 5 | "description": "Minecraft Java Edition", 6 | "docker_image": "ghcr.io/pterodactyl/yolks:java_17", 7 | "startup": "java -Xms128M -XX:MaxRAMPercentage=85.0 --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AlwaysPreTouch -Dterminal.jline=false -Dterminal.ansi=true -jar {{SERVER_JARFILE}}", 8 | "settings": { 9 | "SERVER_JARFILE": "server.jar", 10 | "BUILD_NUMBER": "latest" 11 | } 12 | } 13 | ] -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | # Auth0 settings 2 | AUTH0_DOMAIN=example.eu.auth0.com 3 | AUTH0_CLIENT_ID= 4 | AUTH0_CLIENT_SECRET= 5 | AUTH0_CALLBACK_URL=http://localhost:3000/callback/auth0 6 | 7 | # Pterodactyl settings 8 | PTERODACTYL_URL=https://panel.example.com 9 | PTERODACTYL_KEY= 10 | 11 | # Session 12 | SESSION_SECRET=examplesecret 13 | 14 | # Database 15 | KEYV_URI=sqlite://storage/database.sqlite 16 | 17 | # Default resources 18 | DEFAULT_RAM=2048 19 | DEFAULT_DISK=10240 20 | DEFAULT_CPU=100 21 | DEFAULT_SERVERS=2 22 | 23 | # Application 24 | APP_NAME=Palladium 25 | APP_URL=http://localhost:3000 26 | APP_PORT=3000 27 | 28 | # Logs 29 | LOGS_PATH=./storage/logs/services.log 30 | ERROR_LOGS_PATH=./storage/logs/errors.log 31 | 32 | # Server feature limits 33 | SERVER_DEFAULT_DATABASES=2 34 | SERVER_DEFAULT_BACKUPS=2 35 | SERVER_DEFAULT_ALLOCATIONS=1 -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "palladium", 3 | "version": "1.0.0", 4 | "description": "The better version of Heliactyl.", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "build": "npx tailwindcss -i ./tailwind.conf -o ./public/tailwind.css --watch" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@keyv/sqlite": "^3.6.4", 14 | "@tailwindcss/forms": "^0.5.3", 15 | "axios": "^1.3.4", 16 | "dotenv": "^16.0.3", 17 | "ejs": "^3.1.8", 18 | "express": "^4.18.2", 19 | "express-session": "^1.17.3", 20 | "express-ws": "^5.0.2", 21 | "fs": "^0.0.1-security", 22 | "keyv": "^4.5.2", 23 | "passport": "^0.6.0", 24 | "passport-auth0": "^1.4.3", 25 | "passport-discord": "^0.1.4", 26 | "path": "^0.12.7", 27 | "randomstring": "^1.2.3", 28 | "tailwindcss": "^3.2.7" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /resources/credentials.ejs: -------------------------------------------------------------------------------- 1 | <%- include('./components/wrapper') %> 2 | 3 |

Email/Username: <%= user.emails[0].value %>

4 |

Password: <%= password %>

5 | 6 |
7 | 8 | Reset password 9 | 10 | 11 | Panel 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | <%- include('./components/footer') %> -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const session = require('express-session'); 3 | const fs = require('fs'); 4 | const passport = require('passport'); 5 | const ejs = require('ejs'); 6 | const path = require('path'); 7 | 8 | require('dotenv').config(); 9 | 10 | const app = express(); 11 | const expressWs = require('express-ws')(app); 12 | 13 | const Keyv = require('keyv'); 14 | const db = new Keyv(process.env.KEYV_URI); 15 | 16 | // Add admin users 17 | let admins = process.env.ADMIN_USERS.split(','); 18 | for(let i = 0; i < admins.length; i++) { 19 | db.set('admin-' + admins[i], true); 20 | } 21 | 22 | // Set up ejs as the view engine 23 | app.set('view engine', 'ejs'); 24 | app.set('views', path.join(__dirname, '/resources')); 25 | 26 | // Set up session middleware 27 | app.use(session({ 28 | secret: process.env.SESSION_SECRET, 29 | resave: false, 30 | saveUninitialized: true 31 | })); 32 | 33 | // Initialize passport 34 | app.use(passport.initialize()); 35 | app.use(passport.session()); 36 | 37 | // Require the routes 38 | 39 | let allRoutes = fs.readdirSync("./app"); 40 | for(let i = 0; i < allRoutes.length; i++) { 41 | let route = require(`./app/${allRoutes[i]}`); 42 | expressWs.applyTo(route) 43 | app.use("/", route); 44 | } 45 | 46 | // Start the server 47 | app.listen(process.env.APP_PORT || 3000, () => { 48 | console.log(`Palladium has been started on port ${process.env.APP_PORT || 3000}!`); 49 | }); 50 | -------------------------------------------------------------------------------- /resources/components/footer.ejs: -------------------------------------------------------------------------------- 1 | 2 | 14 | 27 | -------------------------------------------------------------------------------- /resources/afk.ejs: -------------------------------------------------------------------------------- 1 | <%- include('./components/wrapper') %> 2 | 39 |

You are currently earning coins using the AFK page!

40 |

You will earn a coin in Connecting to websocket...

41 |

This earning session you have earned 0 coins

42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | <%- include('./components/footer') %> -------------------------------------------------------------------------------- /app/admin.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const axios = require('axios'); 3 | 4 | const Keyv = require('keyv'); 5 | const db = new Keyv(process.env.KEYV_URI); 6 | 7 | const router = express.Router(); 8 | 9 | function ensureAuthenticated(req, res, next) { 10 | if (req.isAuthenticated()) { 11 | return next(); 12 | } 13 | 14 | req.session.returnTo = req.originalUrl; 15 | res.redirect('/'); 16 | } 17 | 18 | router.get('/admin', ensureAuthenticated, async (req, res) => { 19 | if(req.user == undefined || req.user.emails.length < 1 || req.user.emails == undefined) return res.redirect('/login/auth0'); 20 | if(await db.get('admin-' + req.user.emails[0].value) == true) { 21 | res.render('admin', { 22 | user: req.user, // User info 23 | coins: await db.get('coins-' + req.user.emails[0].value), // User's coins 24 | req: req, // Request (queries) 25 | admin: await db.get('admin-' + req.user.emails[0].value), // Admin status 26 | name: process.env.APP_NAME, // App name 27 | }); 28 | } else { 29 | res.redirect('/dashboard'); 30 | } 31 | }); 32 | 33 | router.get('/addcoins', ensureAuthenticated, async (req, res) => { 34 | if(req.user == undefined || req.user.emails.length < 1 || req.user.emails == undefined) return res.redirect('/login/auth0'); 35 | if(await db.get('admin-' + req.user.emails[0].value) == true) { 36 | if(req.query.email == undefined || req.query.amount == undefined) return res.redirect('/admin?err=INVALIDPARAMS'); 37 | let amount = parseInt((await db.get(`coins-${req.query.email}`))) + parseInt(req.query.amount); 38 | await db.set(`coins-${req.query.email}`, amount) 39 | res.redirect('/admin?success=COMPLETE'); 40 | } else { 41 | res.redirect('/dashboard'); 42 | } 43 | }); 44 | 45 | router.get('/setcoins', ensureAuthenticated, async (req, res) => { 46 | if(req.user == undefined || req.user.emails.length < 1 || req.user.emails == undefined) return res.redirect('/login/auth0'); 47 | if(await db.get('admin-' + req.user.emails[0].value) == true) { 48 | if(req.query.email == undefined || req.query.amount == undefined) return res.redirect('/admin?err=INVALIDPARAMS'); 49 | let amount = parseInt(req.query.amount); 50 | await db.set(`coins-${req.query.email}`, amount) 51 | res.redirect('/admin?success=COMPLETE'); 52 | } else { 53 | res.redirect('/dashboard'); 54 | } 55 | }); 56 | 57 | module.exports = router; -------------------------------------------------------------------------------- /resources/index.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 |
16 |
17 |
18 | <% if (req.query.err == "INTERNALERROR") { %> 19 | 32 | <% } %> 33 |

Login to <%= name %>

34 |

35 | Ready to get started? 36 |

37 |
38 |
39 |
40 | 48 |
49 |
50 |
51 |
52 | 53 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Palladium](https://cdn.discordapp.com/attachments/1085575983274401912/1086714457843056762/Palladium.png) 2 | ![Palladium](https://cdn.discordapp.com/attachments/1056121952051396705/1079723556109303890/image-45.png) 3 | 4 |
5 | 6 | # Palladium 7 | 8 | All features: 9 | - Resource Management (Use it to create servers, gift them, etc) 10 | - Coins (AFK Page earning) 11 | - Servers (create, view, edit servers) 12 | - User System (auth, regen password, etc) 13 | - OAuth2 (Google, Discord, etc) 14 | - Store (buy resources with coins) 15 | - Dashboard (view resources & servers) 16 | - Admin (set/add/remove coins) 17 | 18 |
19 | 20 | | :exclamation: This is an extremely early version of Palladium and doesn't have all of features we want to add yet | 21 | |------------------------------------------------------------------------------------------------------------------------------------------------------| 22 | 23 |
24 | 25 | | :warning: Palladium currently doesn't encrypt user passwords. This will be fixed in 1.0.1, but for now, just don't leak your database.sqlite. | 26 | |------------------------------------------------------------------------------------------------------------------------------------------------------| 27 | 28 |
29 | 30 | # Install Guide 31 | 32 | Warning: You need Pterodactyl already set up on a domain for Palladium to work 33 | 1. Upload the file above onto a Pterodactyl NodeJS server [Download the egg from Parkervcp's GitHub Repository](https://github.com/parkervcp/eggs/blob/master/generic/nodejs/egg-node-js-generic.json) 34 | 2. Unarchive the file and set the server to use NodeJS 16 35 | 3. Configure `.env`, `/resources/configuration/locations.ejs` and `/storage/eggs.json` 36 | 4. Start the server 37 | 5. Login to your DNS manager, point the domain you want your dashboard to be hosted on to your VPS IP address. (Example: dashboard.domain.com 192.168.0.1) 38 | 6. Run `apt install nginx && apt install certbot` on the vps 39 | 7. Run `ufw allow 80` and `ufw allow 443` on the vps 40 | 8. Run `certbot certonly -d ` then do 1 and put your email 41 | 9. Run `nano /etc/nginx/sites-enabled/palladium.conf` 42 | 10. Paste the configuration at the bottom of this and replace with the IP of the pterodactyl server including the port and with the domain you want your dashboard to be hosted on. 43 | 11. Run `systemctl restart nginx` and try open your domain. 44 | 45 | # Nginx Proxy Config 46 | ```Nginx 47 | server { 48 | listen 80; 49 | server_name ; 50 | return 301 https://$server_name$request_uri; 51 | } 52 | server { 53 | listen 443 ssl http2; 54 | location /afkwspath { 55 | proxy_http_version 1.1; 56 | proxy_set_header Upgrade $http_upgrade; 57 | proxy_set_header Connection "upgrade"; 58 | proxy_pass "http://localhost:/afkwspath"; 59 | } 60 | 61 | server_name ; 62 | ssl_certificate /etc/letsencrypt/live//fullchain.pem; 63 | ssl_certificate_key /etc/letsencrypt/live//privkey.pem; 64 | ssl_session_cache shared:SSL:10m; 65 | ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; 66 | ssl_ciphers HIGH:!aNULL:!MD5; 67 | ssl_prefer_server_ciphers on; 68 | location / { 69 | proxy_pass http://localhost:/; 70 | proxy_buffering off; 71 | proxy_set_header X-Real-IP $remote_addr; 72 | } 73 | } 74 | ``` 75 | 76 | 77 | -------------------------------------------------------------------------------- /app/coins.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const axios = require('axios'); 3 | 4 | const Keyv = require('keyv'); 5 | const db = new Keyv(process.env.KEYV_URI); 6 | 7 | const router = express.Router(); 8 | 9 | function ensureAuthenticated(req, res, next) { 10 | if (req.isAuthenticated()) { 11 | return next(); 12 | } 13 | 14 | req.session.returnTo = req.originalUrl; 15 | res.redirect('/'); 16 | } 17 | 18 | let earners = {} 19 | 20 | router.ws('/afkws', async (ws, req) => { 21 | if(req.user == undefined || req.user.emails.length < 1 || req.user.emails == undefined) return ws.close(); 22 | if(earners[req.user.emails[0].value] == true) return ws.close(); 23 | let time = 60; 24 | earners[req.user.emails[0].value] = true; 25 | let aba = setInterval(async () => { 26 | if(earners[req.user.emails[0].value] == true) { 27 | time--; 28 | if(time <= 0) { 29 | time = 60; 30 | ws.send(JSON.stringify({"type":"coin"})) 31 | let r = parseInt((await db.get(`coins-${req.user.emails[0].value}`))) + 1; 32 | await db.set(`coins-${req.user.emails[0].value}`,r) 33 | } 34 | ws.send(JSON.stringify({"type":"count","amount":time})) 35 | } 36 | }, 1000) 37 | ws.on('close', async () => { 38 | delete earners[req.user.emails[0].value]; 39 | clearInterval(aba) 40 | }) 41 | }); 42 | 43 | router.get('/afk', ensureAuthenticated, async (req, res) => { 44 | if(req.user == undefined || req.user.emails.length < 1 || req.user.emails == undefined) return res.redirect('/login/auth0'); 45 | res.render('afk', { 46 | user: req.user, // User info 47 | coins: await db.get('coins-' + req.user.emails[0].value), // User's coins 48 | req: req, // Request (queries) 49 | admin: await db.get('admin-' + req.user.emails[0].value), // Admin status 50 | name: process.env.APP_NAME, // App name 51 | }); 52 | }); 53 | 54 | // Store 55 | 56 | router.get('/store', ensureAuthenticated, async (req, res) => { 57 | if(req.user == undefined || req.user.emails.length < 1 || req.user.emails == undefined) return res.redirect('/login/auth0'); 58 | res.render('store', { 59 | user: req.user, // User info 60 | coins: await db.get('coins-' + req.user.emails[0].value), // User's coins 61 | req: req, // Request (queries) 62 | admin: await db.get('admin-' + req.user.emails[0].value), // Admin status 63 | name: process.env.APP_NAME, // App name 64 | }); 65 | }); 66 | 67 | router.get('/buyresource', ensureAuthenticated, async (req, res) => { 68 | if (req.query.resource == undefined || req.query.amount == undefined) return res.redirect('/store?err=MISSINGPARAMS'); 69 | 70 | // Ensure amount is a number and is below 10 71 | if (isNaN(req.query.amount) || req.query.amount > 10) return res.redirect('/store?err=INVALIDAMOUNT'); 72 | 73 | // Ensure resource is a valid one 74 | if (req.query.resource != 'cpu' && req.query.resource != 'ram' && req.query.resource != 'disk') return res.redirect('/store?err=INVALIDRESOURCE'); 75 | 76 | let coins = await db.get('coins-' + req.user.emails[0].value); 77 | let currentResources = await db.get(req.query.resource + '-' + req.user.emails[0].value); 78 | 79 | // Resource amounts & costs 80 | if (req.query.resource == 'cpu') { 81 | let resourceAmount = 100 * req.query.amount 82 | let resourceCost = process.env.CPU_COST * req.query.amount 83 | if (coins < resourceCost) return res.redirect('/store?err=NOTENOUGHCOINS'); 84 | await db.set('cpu-' + req.user.emails[0].value, parseInt(currentResources) + parseInt(resourceAmount)); 85 | await db.set('coins-' + req.user.emails[0].value, parseInt(coins) - parseInt(resourceCost)); 86 | return res.redirect('/store?success=BOUGHTRESOURCE'); 87 | } else if (req.query.resource == 'ram') { 88 | let resourceAmount = 1024 * req.query.amount 89 | let resourceCost = process.env.RAM_COST * req.query.amount 90 | if (coins < resourceCost) return res.redirect('/store?err=NOTENOUGHCOINS'); 91 | await db.set('ram-' + req.user.emails[0].value, parseInt(currentResources) + parseInt(resourceAmount)); 92 | await db.set('coins-' + req.user.emails[0].value, parseInt(coins) - parseInt(resourceCost)); 93 | return res.redirect('/store?success=BOUGHTRESOURCE'); 94 | } else if (req.query.resource == 'disk') { 95 | let resourceAmount = 5120 * req.query.amount 96 | let resourceCost = process.env.DISK_COST * req.query.amount 97 | if (coins < resourceCost) return res.redirect('/store?err=NOTENOUGHCOINS'); 98 | await db.set('disk-' + req.user.emails[0].value, parseInt(currentResources) + parseInt(resourceAmount)); 99 | await db.set('coins-' + req.user.emails[0].value, parseInt(coins) - parseInt(resourceCost)); 100 | return res.redirect('/store?success=BOUGHTRESOURCE'); 101 | } 102 | }); 103 | 104 | module.exports = router; -------------------------------------------------------------------------------- /app/core.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const axios = require('axios'); 3 | const fs = require('fs'); 4 | 5 | const Keyv = require('keyv'); 6 | const db = new Keyv(process.env.KEYV_URI); 7 | 8 | const router = express.Router(); 9 | 10 | const pterodactyl = [{ 11 | "url": process.env.PTERODACTYL_URL, 12 | "key": process.env.PTERODACTYL_KEY 13 | }] 14 | 15 | function ensureAuthenticated(req, res, next) { 16 | if (req.isAuthenticated()) { 17 | return next(); 18 | } 19 | 20 | req.session.returnTo = req.originalUrl; 21 | res.redirect('/'); 22 | } 23 | 24 | async function checkPassword(email) { 25 | let password = await db.get('password-' + email); 26 | return password; 27 | } 28 | 29 | // Resources 30 | 31 | // Figure out how what the user's total resource usage is right now 32 | async function calculateResource(email, resource) { 33 | try { 34 | // Get user's servers 35 | const response = await axios.get(`${pterodactyl[0].url}/api/application/users?include=servers&filter[email]=${encodeURIComponent(email)}`, { 36 | headers: { 37 | 'Authorization': `Bearer ${pterodactyl[0].key}`, 38 | 'Accept': 'Application/vnd.pterodactyl.v1+json' 39 | } 40 | }); 41 | 42 | // Sum total resources in use 43 | let totalResources = 0; 44 | response.data.data[0].attributes.relationships.servers.data.forEach(server => { 45 | totalResources += server.attributes.limits[resource]; 46 | }); 47 | 48 | return totalResources; 49 | } catch (error) { 50 | fs.appendFile(process.env.LOGS_ERROR_PATH, '[LOG] Failed to calculate resources of all servers combined.' + '\n', function (err) { 51 | if (err) console.log('Failed to save log: ' + err); 52 | }); 53 | } 54 | } 55 | 56 | // Existing resources (the ones in use on servers) 57 | const existingResources = async (email) => { 58 | return { 59 | "cpu": await calculateResource(email, 'cpu'), 60 | "ram": await calculateResource(email, 'memory'), 61 | "disk": await calculateResource(email, 'disk') 62 | }; 63 | }; 64 | 65 | // Max resources (the ones the user has purchased or been given) 66 | const maxResources = async (email) => { 67 | return { 68 | "cpu": await db.get('cpu-' + email), 69 | "ram": await db.get('ram-' + email), 70 | "disk": await db.get('disk-' + email) 71 | }; 72 | }; 73 | 74 | // Set default resources 75 | async function ensureResourcesExist(email) { 76 | const resources = await maxResources(email); 77 | 78 | if (!resources.cpu || resources.cpu == 0) { 79 | await db.set('cpu-' + email, process.env.DEFAULT_CPU); 80 | } 81 | 82 | if (!resources.ram || resources.ram == 0) { 83 | await db.set('ram-' + email, process.env.DEFAULT_RAM); 84 | } 85 | 86 | if (!resources.disk || resources.disk == 0) { 87 | await db.set('disk-' + email, process.env.DEFAULT_DISK); 88 | } 89 | 90 | // Might as well add the coins too instead of having 2 separate functions 91 | if (!await db.get('coins-' + email || 0)) { 92 | await db.set('coins-' + email, 0.00); 93 | } 94 | } 95 | 96 | // Pages / Routes 97 | 98 | router.get('/', (req, res) => { 99 | res.render('index', { 100 | req: req, // Requests (queries) 101 | name: process.env.APP_NAME, // Dashboard name 102 | user: req.user // User info (if logged in) 103 | }); 104 | }); 105 | 106 | router.get('/dashboard', ensureAuthenticated, async (req, res) => { 107 | try { 108 | const response = await axios.get(`${pterodactyl[0].url}/api/application/users?include=servers&filter[email]=${encodeURIComponent(req.user.emails[0].value)}`, { 109 | headers: { 110 | 'Authorization': `Bearer ${pterodactyl[0].key}`, 111 | 'Accept': 'application/json', 112 | 'Content-Type': 'application/json' 113 | } 114 | }); 115 | const servers = response.data.data[0]?.attributes?.relationships?.servers?.data || []; 116 | 117 | // Ensure all resources are set to 0 if they don't exist 118 | await ensureResourcesExist(req.user.emails[0].value); 119 | 120 | // Calculate existing and maximum resources 121 | const existing = await existingResources(req.user.emails[0].value); 122 | const max = await maxResources(req.user.emails[0].value); 123 | 124 | res.render('dashboard', { 125 | coins: await db.get('coins-' + req.user.emails[0].value), // User's coins 126 | req: req, // Request (queries) 127 | name: process.env.APP_NAME, // Dashboard name 128 | user: req.user, // User info 129 | servers, // Servers the user owns 130 | existing, // Existing resources 131 | max, // Max resources, 132 | admin: await db.get('admin-' + req.user.emails[0].value) // Admin status 133 | }); 134 | } catch (error) { 135 | res.redirect('/?err=INTERNALERROR'); 136 | } 137 | }); 138 | 139 | router.get('/credentials', ensureAuthenticated, async (req, res) => { 140 | res.render('credentials', { 141 | coins: await db.get('coins-' + req.user.emails[0].value), // User's coins 142 | req: req, // Request (queries) 143 | name: process.env.APP_NAME, // Dashboard name 144 | user: req.user, // User info 145 | admin: await db.get('admin-' + req.user.emails[0].value), // Admin status 146 | password: await checkPassword(req.user.emails[0].value)}) // Account password 147 | }); 148 | 149 | // Panel 150 | 151 | router.get('/panel', (req, res) => { 152 | res.redirect(process.env.PTERODACTYL_URL + "/auth/login"); 153 | }); 154 | 155 | // Assets 156 | 157 | router.use('/public', express.static('public')) 158 | 159 | module.exports = router; -------------------------------------------------------------------------------- /resources/store.ejs: -------------------------------------------------------------------------------- 1 | <%- include('./components/wrapper') %> 2 | <% if (req.query.success == "BOUGHTRESOURCE") { %> 3 | 21 | <% } %> 22 | <% if (req.query.err == "NOTENOUGHCOINS") { %> 23 | 41 | <% } %> 42 | 43 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | <%- include('./components/footer') %> -------------------------------------------------------------------------------- /app/auth.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const passport = require('passport'); 3 | const Auth0Strategy = require('passport-auth0'); 4 | const axios = require('axios'); 5 | const fs = require('fs'); 6 | require('dotenv').config(); 7 | 8 | const Keyv = require('keyv'); 9 | const db = new Keyv(process.env.KEYV_URI); 10 | 11 | var randomstring = require("randomstring"); 12 | 13 | const pterodactyl = [{ 14 | "url": process.env.PTERODACTYL_URL, 15 | "key": process.env.PTERODACTYL_KEY 16 | }] 17 | 18 | const router = express.Router(); 19 | 20 | // Configure passport to use Auth0 21 | const auth0Strategy = new Auth0Strategy({ 22 | domain: process.env.AUTH0_DOMAIN, 23 | clientID: process.env.AUTH0_CLIENT_ID, 24 | clientSecret: process.env.AUTH0_CLIENT_SECRET, 25 | callbackURL: process.env.AUTH0_CALLBACK_URL 26 | }, (accessToken, refreshToken, extraParams, profile, done) => { 27 | return done(null, profile); 28 | }); 29 | 30 | // Pterodactyl account system 31 | async function checkAccount(email) { 32 | try { 33 | // Check if user has an account 34 | const response = await axios.get(`${pterodactyl[0].url}/api/application/users?filter[email]=${email}`, { 35 | headers: { 36 | 'Authorization': `Bearer ${pterodactyl[0].key}`, 37 | 'Content-Type': 'application/json', 38 | 'Accept': 'Application/vnd.pterodactyl.v1+json' 39 | } 40 | }); 41 | // If yes, do nothing 42 | if (response.data.data.length > 0) { 43 | return; 44 | } 45 | // If not, create one 46 | let password = randomstring.generate(process.env.PASSWORD_LENGTH); 47 | await axios.post(`${pterodactyl[0].url}/api/application/users`, { 48 | 'email': email, 49 | 'username': email.split('@')[0], 50 | "first_name": 'Palladium User', 51 | "last_name": 'Palladium User', 52 | 'password': password 53 | }, { 54 | headers: { 55 | 'Authorization': `Bearer ${pterodactyl[0].key}`, 56 | 'Content-Type': 'application/json', 57 | 'Accept': 'Application/vnd.pterodactyl.v1+json' 58 | } 59 | }); 60 | 61 | // Fetch the user's ID 62 | const fetchId = await axios.get(`${pterodactyl[0].url}/api/application/users?filter[email]=${email}`, { 63 | headers: { 64 | 'Authorization': `Bearer ${pterodactyl[0].key}`, 65 | 'Content-Type': 'application/json', 66 | 'Accept': 'Application/vnd.pterodactyl.v1+json' 67 | } 68 | }); 69 | const userId = fetchId.data.data[0].attributes.id; 70 | db.set('id-' + email, userId); 71 | 72 | fs.appendFile(process.env.LOGS_PATH, '[LOG] User object created.' + '\n', function (err) { 73 | if (err) console.log('Failed to save log: ' + err); 74 | }); 75 | 76 | // Set password & log to console 77 | db.set('password-' + email, password); 78 | } catch (error) { 79 | fs.appendFile(process.env.LOGS_ERROR_PATH, '[LOG] Failed to check user information. The panel did not respond correctly.' + '\n', function (err) { 80 | if (err) console.log('Failed to save log: ' + err); 81 | }); 82 | } 83 | } 84 | 85 | passport.use(auth0Strategy); 86 | 87 | // Serialize and deserialize user 88 | passport.serializeUser((user, done) => { 89 | done(null, user); 90 | }); 91 | 92 | passport.deserializeUser((user, done) => { 93 | done(null, user); 94 | }); 95 | 96 | // Set up Auth0 routes 97 | router.get('/login/auth0', passport.authenticate('auth0', { 98 | scope: 'openid email profile' 99 | }), (req, res) => { 100 | res.redirect('/'); 101 | }); 102 | 103 | router.get('/callback/auth0', passport.authenticate('auth0', { 104 | failureRedirect: '/login' 105 | }), (req, res) => { 106 | checkAccount(req.user.emails[0].value); 107 | res.redirect(req.session.returnTo || '/dashboard'); 108 | }); 109 | 110 | // Reset password of the user via Pterodactyl API 111 | router.get('/reset', async (req, res) => { 112 | if (!req.user) return res.redirect('/') 113 | try { 114 | // Generate new password 115 | let password = randomstring.generate(process.env.PASSWORD_LENGTH); 116 | 117 | // Update user password in Pterodactyl 118 | const userId = await db.get('id-' + req.user.emails[0].value); 119 | await axios.patch(`${pterodactyl[0].url}/api/application/users/${userId}`, { 120 | email: req.user.emails[0].value, 121 | username: req.user.emails[0].value.split('@')[0], 122 | first_name: 'Palladium User', 123 | last_name: 'Palladium User', 124 | language: "en", 125 | password: password 126 | }, { 127 | headers: { 128 | 'Authorization': `Bearer ${pterodactyl[0].key}`, 129 | 'Content-Type': 'application/json', 130 | 'Accept': 'Application/vnd.pterodactyl.v1+json' 131 | } 132 | }); 133 | 134 | // Update password in database 135 | db.set('password-' + req.user.emails[0].value, password) 136 | fs.appendFile(process.env.LOGS_PATH, '[LOG] Password resetted for user.' + '\n', function (err) { 137 | if (err) console.log('Failed to save log: ' + err); 138 | }); 139 | 140 | // Load credentials page 141 | res.redirect('/credentials'); 142 | 143 | } catch (error) { 144 | // Handle error 145 | fs.appendFile(process.env.LOGS_ERROR_PATH, '[LOG] Failed to reset password for a user. The panel did not respond correctly.' + '\n', function (err) { 146 | if (err) console.log('Failed to save log: ' + err); 147 | }); 148 | 149 | res.status(500).send({ 150 | success: false, 151 | message: 'Error resetting password' 152 | }); 153 | } 154 | }); 155 | 156 | // Set up logout route 157 | router.get('/logout', (req, res) => { 158 | const returnTo = process.env.APP_URL; 159 | 160 | // Construct logout URL 161 | const logoutURL = `https://${process.env.AUTH0_DOMAIN}/v2/logout?client_id=${process.env.AUTH0_CLIENT_ID}&returnTo=${returnTo}`; 162 | 163 | // Log the user out from Auth0 and redirect to homepage 164 | res.redirect(logoutURL); 165 | }); 166 | 167 | module.exports = router; -------------------------------------------------------------------------------- /resources/admin.ejs: -------------------------------------------------------------------------------- 1 | <%- include('./components/wrapper') %> 2 | 3 | <% if (req.query.success == "COMPLETE") { %> 4 | 22 | <% } %> 23 | <% if (req.query.err == "INVALIDPARAMS") { %> 24 | 42 | <% } %> 43 | 44 |

Add coins

45 |

Add coins to a user

46 |
47 | 48 |
49 | 50 |
51 |
52 | 53 |
54 | 55 |
56 | 57 | Add 58 | 59 | 66 |

67 | 72 |
73 |

Set coins

74 |

Set coins for a user

75 |
76 | 77 |
78 | 79 |
80 |
81 | 82 |
83 | 84 |
85 | 86 | Set 87 | 88 | 95 |

96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | <%- include('./components/footer') %> -------------------------------------------------------------------------------- /app/servers.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const axios = require('axios'); 3 | 4 | const fs = require('fs'); 5 | 6 | const Keyv = require('keyv'); 7 | const db = new Keyv(process.env.KEYV_URI); 8 | 9 | const router = express.Router(); 10 | 11 | // Resources 12 | 13 | const pterodactyl = [{ 14 | "url": process.env.PTERODACTYL_URL, 15 | "key": process.env.PTERODACTYL_KEY 16 | }] 17 | 18 | // Figure out how what the user's total resource usage is right now 19 | async function calculateResource(email, resource) { 20 | try { 21 | // Get user's servers 22 | const response = await axios.get(`${pterodactyl[0].url}/api/application/users?include=servers&filter[email]=${encodeURIComponent(email)}`, { 23 | headers: { 24 | 'Authorization': `Bearer ${pterodactyl[0].key}`, 25 | 'Accept': 'Application/vnd.pterodactyl.v1+json' 26 | } 27 | }); 28 | 29 | // Sum total resources in use 30 | let totalResources = 0; 31 | response.data.data[0].attributes.relationships.servers.data.forEach(server => { 32 | totalResources += server.attributes.limits[resource]; 33 | }); 34 | 35 | return totalResources; 36 | } catch (error) { 37 | fs.appendFile(process.env.LOGS_ERROR_PATH, '[LOG] Failed to calculate resources of all servers combined.' + '\n', function (err) { 38 | if (err) console.log('Failed to save log: ' + err); 39 | }); 40 | } 41 | } 42 | 43 | // Existing resources (the ones in use on servers) 44 | const existingResources = async (email) => { 45 | return { 46 | "cpu": await calculateResource(email, 'cpu'), 47 | "ram": await calculateResource(email, 'memory'), 48 | "disk": await calculateResource(email, 'disk') 49 | }; 50 | }; 51 | 52 | // Max resources (the ones the user has purchased or been given) 53 | const maxResources = async (email) => { 54 | return { 55 | "cpu": await db.get('cpu-' + email), 56 | "ram": await db.get('ram-' + email), 57 | "disk": await db.get('disk-' + email) 58 | }; 59 | }; 60 | 61 | // Decided not to use pterodactyl.* here 62 | 63 | function ensureAuthenticated(req, res, next) { 64 | if (req.isAuthenticated()) { 65 | return next(); 66 | } 67 | 68 | req.session.returnTo = req.originalUrl; 69 | res.redirect('/'); 70 | } 71 | 72 | // Delete server 73 | router.get('/delete', ensureAuthenticated, async (req, res) => { 74 | if (!req.query.id) return res.redirect('../dashboard?err=MISSINGPARAMS'); 75 | try { 76 | const userId = await db.get('id-' + req.user.emails[0].value); 77 | const serverId = req.query.id; 78 | 79 | const server = await axios.get(`${process.env.PTERODACTYL_URL}/api/application/servers/${serverId}`, { 80 | headers: { 81 | 'Authorization': `Bearer ${process.env.PTERODACTYL_KEY}`, 82 | 'Accept': 'application/json' 83 | } 84 | }); 85 | 86 | if (server.data.attributes.user !== userId) { 87 | return res.redirect('../dashboard?err=DONOTOWN'); 88 | } 89 | 90 | await axios.delete(`${process.env.PTERODACTYL_URL}/api/application/servers/${serverId}`, { 91 | headers: { 92 | 'Authorization': `Bearer ${process.env.PTERODACTYL_KEY}`, 93 | 'Accept': 'application/json' 94 | } 95 | }); 96 | 97 | res.redirect('/dashboard'); 98 | } catch (error) { 99 | if (error.response && error.response.status === 404) { 100 | return res.redirect('../dashboard?err=NOTFOUND'); 101 | } 102 | 103 | console.error(error); 104 | res.redirect('../dashboard?err=INTERNALERROR') 105 | } 106 | }); 107 | 108 | // Create server 109 | 110 | router.get('/create', ensureAuthenticated, async (req, res) => { 111 | if (!req.query.name || !req.query.location || !req.query.egg || !req.query.cpu || !req.query.ram || !req.query.disk) return res.redirect('../create-server?err=MISSINGPARAMS'); 112 | 113 | // Check if user has enough resources to create a server 114 | 115 | const max = await maxResources(req.user.emails[0].value); 116 | const existing = await existingResources(req.user.emails[0].value); 117 | 118 | if (parseInt(req.query.cpu) > parseInt(max.cpu - existing.cpu)) return res.redirect('../create-server?err=NOTENOUGHRESOURCES'); 119 | if (parseInt(req.query.ram) > parseInt(max.ram - existing.ram)) return res.redirect('../create-server?err=NOTENOUGHRESOURCES'); 120 | if (parseInt(req.query.disk) > parseInt(max.disk - existing.disk)) return res.redirect('../create-server?err=NOTENOUGHRESOURCES'); 121 | 122 | // Ensure resources are above 128MB / 10% 123 | 124 | if (parseInt(req.query.ram) < 128) return res.redirect('../create-server?err=INVALID'); 125 | if (parseInt(req.query.cpu) < 10) return res.redirect('../create-server?err=INVALID'); 126 | if (parseInt(req.query.disk) < 128) return res.redirect('../create-server?err=INVALID'); 127 | 128 | // Name checks 129 | 130 | if (req.query.name.length > 100) return res.redirect('../create-server?err=INVALID'); 131 | if (req.query.name.length < 3) return res.redirect('../create-server?err=INVALID'); 132 | 133 | // Make sure locations, eggs, resources are numbers 134 | 135 | if (isNaN(req.query.location) || isNaN(req.query.egg) || isNaN(req.query.cpu) || isNaN(req.query.ram) || isNaN(req.query.disk)) return res.redirect('../create-server?err=INVALID'); 136 | if (req.query.cpu < 1 || req.query.ram < 1 || req.query.disk < 1) return res.redirect('../create-server?err=INVALID'); 137 | 138 | try { 139 | const userId = await db.get('id-' + req.user.emails[0].value); 140 | const name = req.query.name; 141 | const location = parseInt(req.query.location); 142 | const eggId = parseInt(req.query.egg); 143 | const cpu = parseInt(req.query.cpu); 144 | const ram = parseInt(req.query.ram); 145 | const disk = parseInt(req.query.disk); 146 | 147 | const eggs = require('../storage/eggs.json'); 148 | 149 | const egg = eggs.find(e => e.id == eggId); 150 | const dockerImage = egg.docker_image; 151 | const startupCommand = egg.startup; 152 | const environment = egg.settings; 153 | 154 | await axios.post(process.env.PTERODACTYL_URL + "/api/application/servers", { 155 | "name": name, 156 | "user": userId, 157 | environment: environment, 158 | egg: eggId, 159 | docker_image: dockerImage, 160 | startup: startupCommand, 161 | limits: { 162 | memory: ram, 163 | swap: -1, 164 | disk: disk, 165 | io: 500, 166 | cpu: cpu 167 | }, 168 | feature_limits: { 169 | databases: 1, 170 | backups: 1 171 | }, 172 | deploy: { 173 | locations: [location], 174 | dedicated_ip: false, 175 | port_range: [] 176 | } 177 | }, { 178 | headers: { 179 | 'Authorization': 'Bearer ' + process.env.PTERODACTYL_KEY 180 | }}); 181 | 182 | res.redirect('../dashboard?success=CREATED'); 183 | } catch (error) { 184 | console.error(error); 185 | res.redirect('../create-server?err=ERRORONCREATE'); 186 | } 187 | }); 188 | 189 | router.get('/create-server', ensureAuthenticated, async (req, res) => { 190 | res.render('create', { 191 | req: req, // Requests (queries) 192 | name: process.env.APP_NAME, // Dashboard name 193 | user: req.user, // User info (if logged in) 194 | admin: await db.get('admin-' + req.user.emails[0].value), // Admin status 195 | coins: await db.get('coins-' + req.user.emails[0].value), // Coins, 196 | locations: require('../storage/locations.json'), // Locations 197 | locationids: require('../storage/locationids.json'), // Location data 198 | eggs: require('../storage/eggs.json') 199 | }); 200 | }); 201 | 202 | module.exports = router; 203 | -------------------------------------------------------------------------------- /resources/components/wrapper.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 |
16 | 17 | 74 |
75 |
76 | 83 |
84 |
85 | 86 |
87 |
88 | <%= coins %> coins 89 |
90 |
91 |
92 |
93 | 97 |
98 |
99 |
100 |
101 |
102 | 103 |
104 |
105 |
106 | -------------------------------------------------------------------------------- /resources/dashboard.ejs: -------------------------------------------------------------------------------- 1 | <%- include('./components/wrapper') %> 2 | <% if (req.query.err == "INTERNALERROR") { %> 3 | 21 | <% } %> 22 | <% if (req.query.err == "DONOTOWN") { %> 23 | 41 | <% } %> 42 | <% if (req.query.err == "NOTFOUND") { %> 43 | 61 | <% } %> 62 | <% if (req.query.success == "CREATED") { %> 63 | 81 | <% } %> 82 | 83 |
84 |
85 |
86 |
87 |
88 | 89 | 90 | 91 | 92 |
93 |

RAM Available

94 |
95 |
96 |

<%= max.ram - existing.ram %>MB

97 |
98 |
99 | Buy extra RAM 100 |
101 |
102 |
103 |
104 | 105 |
106 |
107 |
108 | 109 | 110 | 111 | 112 |
113 |

CPU Available

114 |
115 |
116 |

<%= max.cpu - existing.cpu %>%

117 |
118 |
119 | Buy extra CPU 120 |
121 |
122 |
123 |
124 | 125 |
126 |
127 |
128 | 129 | 130 | 131 | 132 |
133 |

Disk Available

134 |
135 |
136 |

<%= max.disk - existing.disk %>MB

137 |
138 |
139 | Buy extra Disk 140 |
141 |
142 |
143 |
144 |
145 |
146 | 147 |
148 |
149 |
150 |
151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 162 | 163 | 164 | 165 | <% for (let server of servers) { %> 166 | 167 | 168 | 169 | 170 | 171 | 172 | 175 | 176 | <% } %> 177 | 178 | 179 | 180 |
NameIDRAMCPUDisk 160 | Edit 161 |
<%= server.attributes.name %><%= server.attributes.identifier %><%= server.attributes.limits.memory %><%= server.attributes.limits.cpu %><%= server.attributes.limits.disk %> 173 | Delete 174 |
181 |
182 |
183 |
184 |
185 | 186 | 187 |
188 |
189 |
190 |
191 |
192 | 193 | <%- include('./components/footer') %> -------------------------------------------------------------------------------- /resources/create.ejs: -------------------------------------------------------------------------------- 1 | <%- include('./components/wrapper') %> 2 | <% if (req.query.err == "MISSINGPARAMS") { %> 3 | 21 | <% } %> 22 | <% if (req.query.err == "NOTENOUGHRESOURCES") { %> 23 | 41 | <% } %> 42 | <% if (req.query.err == "INVALID") { %> 43 | 61 | <% } %> 62 | <% if (req.query.err == "ERRORONCREATE") { %> 63 | 81 | <% } %> 82 |
83 |
84 |
85 |
86 |

Basic Details

87 |

This information will be displayed in the server management list on both the Panel and Dashboard.

88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 | 97 |
98 | 99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 | 109 | 114 | 115 |
116 |
117 |
118 |
119 |

Configuration

120 |

Choose the location and egg for your server. This cannot be changed.

121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 | 130 |
131 | 134 |
135 |
136 |
137 | 138 |
139 | <%- include('./configuration/eggs') %> 140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 | 150 | 155 | 166 |
167 | 168 |
169 |
170 |
171 |
172 |

Resources

173 |

Decide how much of your total resource balance should be allocated to this server.

174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 | 183 |
184 | 185 |
186 |
187 |
188 | 189 |
190 |
191 | 192 |
193 | 194 |
195 |
196 |
197 | 198 |
199 |
200 | 201 |
202 | 203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 | 213 | 218 | 219 |
220 |
221 |
222 |
223 |

Confirm Details

224 |

Once you are ready, click the Create button.

225 |
226 |
227 |
228 |
229 |
230 | 233 |
234 |
235 |
236 |
237 |
238 |
239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | <%- include('./components/footer') %> 252 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | © 2014 - 2023 PINE PLATFORMS LTD. 2 | 3 | GNU AFFERO GENERAL PUBLIC LICENSE 4 | Version 3, 19 November 2007 5 | 6 | Copyright (C) 2007 Free Software Foundation, Inc. 7 | Everyone is permitted to copy and distribute verbatim copies 8 | of this license document, but changing it is not allowed. 9 | 10 | Preamble 11 | 12 | The GNU Affero General Public License is a free, copyleft license for 13 | software and other kinds of works, specifically designed to ensure 14 | cooperation with the community in the case of network server software. 15 | 16 | The licenses for most software and other practical works are designed 17 | to take away your freedom to share and change the works. By contrast, 18 | our General Public Licenses are intended to guarantee your freedom to 19 | share and change all versions of a program--to make sure it remains free 20 | software for all its users. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | Developers that use our General Public Licenses protect your rights 30 | with two steps: (1) assert copyright on the software, and (2) offer 31 | you this License which gives you legal permission to copy, distribute 32 | and/or modify the software. 33 | 34 | A secondary benefit of defending all users' freedom is that 35 | improvements made in alternate versions of the program, if they 36 | receive widespread use, become available for other developers to 37 | incorporate. Many developers of free software are heartened and 38 | encouraged by the resulting cooperation. However, in the case of 39 | software used on network servers, this result may fail to come about. 40 | The GNU General Public License permits making a modified version and 41 | letting the public access it on a server without ever releasing its 42 | source code to the public. 43 | 44 | The GNU Affero General Public License is designed specifically to 45 | ensure that, in such cases, the modified source code becomes available 46 | to the community. It requires the operator of a network server to 47 | provide the source code of the modified version running there to the 48 | users of that server. Therefore, public use of a modified version, on 49 | a publicly accessible server, gives the public access to the source 50 | code of the modified version. 51 | 52 | An older license, called the Affero General Public License and 53 | published by Affero, was designed to accomplish similar goals. This is 54 | a different license, not a version of the Affero GPL, but Affero has 55 | released a new version of the Affero GPL which permits relicensing under 56 | this license. 57 | 58 | The precise terms and conditions for copying, distribution and 59 | modification follow. 60 | 61 | TERMS AND CONDITIONS 62 | 63 | 0. Definitions. 64 | 65 | "This License" refers to version 3 of the GNU Affero General Public License. 66 | 67 | "Copyright" also means copyright-like laws that apply to other kinds of 68 | works, such as semiconductor masks. 69 | 70 | "The Program" refers to any copyrightable work licensed under this 71 | License. Each licensee is addressed as "you". "Licensees" and 72 | "recipients" may be individuals or organizations. 73 | 74 | To "modify" a work means to copy from or adapt all or part of the work 75 | in a fashion requiring copyright permission, other than the making of an 76 | exact copy. The resulting work is called a "modified version" of the 77 | earlier work or a work "based on" the earlier work. 78 | 79 | A "covered work" means either the unmodified Program or a work based 80 | on the Program. 81 | 82 | To "propagate" a work means to do anything with it that, without 83 | permission, would make you directly or secondarily liable for 84 | infringement under applicable copyright law, except executing it on a 85 | computer or modifying a private copy. Propagation includes copying, 86 | distribution (with or without modification), making available to the 87 | public, and in some countries other activities as well. 88 | 89 | To "convey" a work means any kind of propagation that enables other 90 | parties to make or receive copies. Mere interaction with a user through 91 | a computer network, with no transfer of a copy, is not conveying. 92 | 93 | An interactive user interface displays "Appropriate Legal Notices" 94 | to the extent that it includes a convenient and prominently visible 95 | feature that (1) displays an appropriate copyright notice, and (2) 96 | tells the user that there is no warranty for the work (except to the 97 | extent that warranties are provided), that licensees may convey the 98 | work under this License, and how to view a copy of this License. If 99 | the interface presents a list of user commands or options, such as a 100 | menu, a prominent item in the list meets this criterion. 101 | 102 | 1. Source Code. 103 | 104 | The "source code" for a work means the preferred form of the work 105 | for making modifications to it. "Object code" means any non-source 106 | form of a work. 107 | 108 | A "Standard Interface" means an interface that either is an official 109 | standard defined by a recognized standards body, or, in the case of 110 | interfaces specified for a particular programming language, one that 111 | is widely used among developers working in that language. 112 | 113 | The "System Libraries" of an executable work include anything, other 114 | than the work as a whole, that (a) is included in the normal form of 115 | packaging a Major Component, but which is not part of that Major 116 | Component, and (b) serves only to enable use of the work with that 117 | Major Component, or to implement a Standard Interface for which an 118 | implementation is available to the public in source code form. A 119 | "Major Component", in this context, means a major essential component 120 | (kernel, window system, and so on) of the specific operating system 121 | (if any) on which the executable work runs, or a compiler used to 122 | produce the work, or an object code interpreter used to run it. 123 | 124 | The "Corresponding Source" for a work in object code form means all 125 | the source code needed to generate, install, and (for an executable 126 | work) run the object code and to modify the work, including scripts to 127 | control those activities. However, it does not include the work's 128 | System Libraries, or general-purpose tools or generally available free 129 | programs which are used unmodified in performing those activities but 130 | which are not part of the work. For example, Corresponding Source 131 | includes interface definition files associated with source files for 132 | the work, and the source code for shared libraries and dynamically 133 | linked subprograms that the work is specifically designed to require, 134 | such as by intimate data communication or control flow between those 135 | subprograms and other parts of the work. 136 | 137 | The Corresponding Source need not include anything that users 138 | can regenerate automatically from other parts of the Corresponding 139 | Source. 140 | 141 | The Corresponding Source for a work in source code form is that 142 | same work. 143 | 144 | 2. Basic Permissions. 145 | 146 | All rights granted under this License are granted for the term of 147 | copyright on the Program, and are irrevocable provided the stated 148 | conditions are met. This License explicitly affirms your unlimited 149 | permission to run the unmodified Program. The output from running a 150 | covered work is covered by this License only if the output, given its 151 | content, constitutes a covered work. This License acknowledges your 152 | rights of fair use or other equivalent, as provided by copyright law. 153 | 154 | You may make, run and propagate covered works that you do not 155 | convey, without conditions so long as your license otherwise remains 156 | in force. You may convey covered works to others for the sole purpose 157 | of having them make modifications exclusively for you, or provide you 158 | with facilities for running those works, provided that you comply with 159 | the terms of this License in conveying all material for which you do 160 | not control copyright. Those thus making or running the covered works 161 | for you must do so exclusively on your behalf, under your direction 162 | and control, on terms that prohibit them from making any copies of 163 | your copyrighted material outside their relationship with you. 164 | 165 | Conveying under any other circumstances is permitted solely under 166 | the conditions stated below. Sublicensing is not allowed; section 10 167 | makes it unnecessary. 168 | 169 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 170 | 171 | No covered work shall be deemed part of an effective technological 172 | measure under any applicable law fulfilling obligations under article 173 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 174 | similar laws prohibiting or restricting circumvention of such 175 | measures. 176 | 177 | When you convey a covered work, you waive any legal power to forbid 178 | circumvention of technological measures to the extent such circumvention 179 | is effected by exercising rights under this License with respect to 180 | the covered work, and you disclaim any intention to limit operation or 181 | modification of the work as a means of enforcing, against the work's 182 | users, your or third parties' legal rights to forbid circumvention of 183 | technological measures. 184 | 185 | 4. Conveying Verbatim Copies. 186 | 187 | You may convey verbatim copies of the Program's source code as you 188 | receive it, in any medium, provided that you conspicuously and 189 | appropriately publish on each copy an appropriate copyright notice; 190 | keep intact all notices stating that this License and any 191 | non-permissive terms added in accord with section 7 apply to the code; 192 | keep intact all notices of the absence of any warranty; and give all 193 | recipients a copy of this License along with the Program. 194 | 195 | You may charge any price or no price for each copy that you convey, 196 | and you may offer support or warranty protection for a fee. 197 | 198 | 5. Conveying Modified Source Versions. 199 | 200 | You may convey a work based on the Program, or the modifications to 201 | produce it from the Program, in the form of source code under the 202 | terms of section 4, provided that you also meet all of these conditions: 203 | 204 | a) The work must carry prominent notices stating that you modified 205 | it, and giving a relevant date. 206 | 207 | b) The work must carry prominent notices stating that it is 208 | released under this License and any conditions added under section 209 | 7. This requirement modifies the requirement in section 4 to 210 | "keep intact all notices". 211 | 212 | c) You must license the entire work, as a whole, under this 213 | License to anyone who comes into possession of a copy. This 214 | License will therefore apply, along with any applicable section 7 215 | additional terms, to the whole of the work, and all its parts, 216 | regardless of how they are packaged. This License gives no 217 | permission to license the work in any other way, but it does not 218 | invalidate such permission if you have separately received it. 219 | 220 | d) If the work has interactive user interfaces, each must display 221 | Appropriate Legal Notices; however, if the Program has interactive 222 | interfaces that do not display Appropriate Legal Notices, your 223 | work need not make them do so. 224 | 225 | A compilation of a covered work with other separate and independent 226 | works, which are not by their nature extensions of the covered work, 227 | and which are not combined with it such as to form a larger program, 228 | in or on a volume of a storage or distribution medium, is called an 229 | "aggregate" if the compilation and its resulting copyright are not 230 | used to limit the access or legal rights of the compilation's users 231 | beyond what the individual works permit. Inclusion of a covered work 232 | in an aggregate does not cause this License to apply to the other 233 | parts of the aggregate. 234 | 235 | 6. Conveying Non-Source Forms. 236 | 237 | You may convey a covered work in object code form under the terms 238 | of sections 4 and 5, provided that you also convey the 239 | machine-readable Corresponding Source under the terms of this License, 240 | in one of these ways: 241 | 242 | a) Convey the object code in, or embodied in, a physical product 243 | (including a physical distribution medium), accompanied by the 244 | Corresponding Source fixed on a durable physical medium 245 | customarily used for software interchange. 246 | 247 | b) Convey the object code in, or embodied in, a physical product 248 | (including a physical distribution medium), accompanied by a 249 | written offer, valid for at least three years and valid for as 250 | long as you offer spare parts or customer support for that product 251 | model, to give anyone who possesses the object code either (1) a 252 | copy of the Corresponding Source for all the software in the 253 | product that is covered by this License, on a durable physical 254 | medium customarily used for software interchange, for a price no 255 | more than your reasonable cost of physically performing this 256 | conveying of source, or (2) access to copy the 257 | Corresponding Source from a network server at no charge. 258 | 259 | c) Convey individual copies of the object code with a copy of the 260 | written offer to provide the Corresponding Source. This 261 | alternative is allowed only occasionally and noncommercially, and 262 | only if you received the object code with such an offer, in accord 263 | with subsection 6b. 264 | 265 | d) Convey the object code by offering access from a designated 266 | place (gratis or for a charge), and offer equivalent access to the 267 | Corresponding Source in the same way through the same place at no 268 | further charge. You need not require recipients to copy the 269 | Corresponding Source along with the object code. If the place to 270 | copy the object code is a network server, the Corresponding Source 271 | may be on a different server (operated by you or a third party) 272 | that supports equivalent copying facilities, provided you maintain 273 | clear directions next to the object code saying where to find the 274 | Corresponding Source. Regardless of what server hosts the 275 | Corresponding Source, you remain obligated to ensure that it is 276 | available for as long as needed to satisfy these requirements. 277 | 278 | e) Convey the object code using peer-to-peer transmission, provided 279 | you inform other peers where the object code and Corresponding 280 | Source of the work are being offered to the general public at no 281 | charge under subsection 6d. 282 | 283 | A separable portion of the object code, whose source code is excluded 284 | from the Corresponding Source as a System Library, need not be 285 | included in conveying the object code work. 286 | 287 | A "User Product" is either (1) a "consumer product", which means any 288 | tangible personal property which is normally used for personal, family, 289 | or household purposes, or (2) anything designed or sold for incorporation 290 | into a dwelling. In determining whether a product is a consumer product, 291 | doubtful cases shall be resolved in favor of coverage. For a particular 292 | product received by a particular user, "normally used" refers to a 293 | typical or common use of that class of product, regardless of the status 294 | of the particular user or of the way in which the particular user 295 | actually uses, or expects or is expected to use, the product. A product 296 | is a consumer product regardless of whether the product has substantial 297 | commercial, industrial or non-consumer uses, unless such uses represent 298 | the only significant mode of use of the product. 299 | 300 | "Installation Information" for a User Product means any methods, 301 | procedures, authorization keys, or other information required to install 302 | and execute modified versions of a covered work in that User Product from 303 | a modified version of its Corresponding Source. The information must 304 | suffice to ensure that the continued functioning of the modified object 305 | code is in no case prevented or interfered with solely because 306 | modification has been made. 307 | 308 | If you convey an object code work under this section in, or with, or 309 | specifically for use in, a User Product, and the conveying occurs as 310 | part of a transaction in which the right of possession and use of the 311 | User Product is transferred to the recipient in perpetuity or for a 312 | fixed term (regardless of how the transaction is characterized), the 313 | Corresponding Source conveyed under this section must be accompanied 314 | by the Installation Information. But this requirement does not apply 315 | if neither you nor any third party retains the ability to install 316 | modified object code on the User Product (for example, the work has 317 | been installed in ROM). 318 | 319 | The requirement to provide Installation Information does not include a 320 | requirement to continue to provide support service, warranty, or updates 321 | for a work that has been modified or installed by the recipient, or for 322 | the User Product in which it has been modified or installed. Access to a 323 | network may be denied when the modification itself materially and 324 | adversely affects the operation of the network or violates the rules and 325 | protocols for communication across the network. 326 | 327 | Corresponding Source conveyed, and Installation Information provided, 328 | in accord with this section must be in a format that is publicly 329 | documented (and with an implementation available to the public in 330 | source code form), and must require no special password or key for 331 | unpacking, reading or copying. 332 | 333 | 7. Additional Terms. 334 | 335 | "Additional permissions" are terms that supplement the terms of this 336 | License by making exceptions from one or more of its conditions. 337 | Additional permissions that are applicable to the entire Program shall 338 | be treated as though they were included in this License, to the extent 339 | that they are valid under applicable law. If additional permissions 340 | apply only to part of the Program, that part may be used separately 341 | under those permissions, but the entire Program remains governed by 342 | this License without regard to the additional permissions. 343 | 344 | When you convey a copy of a covered work, you may at your option 345 | remove any additional permissions from that copy, or from any part of 346 | it. (Additional permissions may be written to require their own 347 | removal in certain cases when you modify the work.) You may place 348 | additional permissions on material, added by you to a covered work, 349 | for which you have or can give appropriate copyright permission. 350 | 351 | Notwithstanding any other provision of this License, for material you 352 | add to a covered work, you may (if authorized by the copyright holders of 353 | that material) supplement the terms of this License with terms: 354 | 355 | a) Disclaiming warranty or limiting liability differently from the 356 | terms of sections 15 and 16 of this License; or 357 | 358 | b) Requiring preservation of specified reasonable legal notices or 359 | author attributions in that material or in the Appropriate Legal 360 | Notices displayed by works containing it; or 361 | 362 | c) Prohibiting misrepresentation of the origin of that material, or 363 | requiring that modified versions of such material be marked in 364 | reasonable ways as different from the original version; or 365 | 366 | d) Limiting the use for publicity purposes of names of licensors or 367 | authors of the material; or 368 | 369 | e) Declining to grant rights under trademark law for use of some 370 | trade names, trademarks, or service marks; or 371 | 372 | f) Requiring indemnification of licensors and authors of that 373 | material by anyone who conveys the material (or modified versions of 374 | it) with contractual assumptions of liability to the recipient, for 375 | any liability that these contractual assumptions directly impose on 376 | those licensors and authors. 377 | 378 | All other non-permissive additional terms are considered "further 379 | restrictions" within the meaning of section 10. If the Program as you 380 | received it, or any part of it, contains a notice stating that it is 381 | governed by this License along with a term that is a further 382 | restriction, you may remove that term. If a license document contains 383 | a further restriction but permits relicensing or conveying under this 384 | License, you may add to a covered work material governed by the terms 385 | of that license document, provided that the further restriction does 386 | not survive such relicensing or conveying. 387 | 388 | If you add terms to a covered work in accord with this section, you 389 | must place, in the relevant source files, a statement of the 390 | additional terms that apply to those files, or a notice indicating 391 | where to find the applicable terms. 392 | 393 | Additional terms, permissive or non-permissive, may be stated in the 394 | form of a separately written license, or stated as exceptions; 395 | the above requirements apply either way. 396 | 397 | 8. Termination. 398 | 399 | You may not propagate or modify a covered work except as expressly 400 | provided under this License. Any attempt otherwise to propagate or 401 | modify it is void, and will automatically terminate your rights under 402 | this License (including any patent licenses granted under the third 403 | paragraph of section 11). 404 | 405 | However, if you cease all violation of this License, then your 406 | license from a particular copyright holder is reinstated (a) 407 | provisionally, unless and until the copyright holder explicitly and 408 | finally terminates your license, and (b) permanently, if the copyright 409 | holder fails to notify you of the violation by some reasonable means 410 | prior to 60 days after the cessation. 411 | 412 | Moreover, your license from a particular copyright holder is 413 | reinstated permanently if the copyright holder notifies you of the 414 | violation by some reasonable means, this is the first time you have 415 | received notice of violation of this License (for any work) from that 416 | copyright holder, and you cure the violation prior to 30 days after 417 | your receipt of the notice. 418 | 419 | Termination of your rights under this section does not terminate the 420 | licenses of parties who have received copies or rights from you under 421 | this License. If your rights have been terminated and not permanently 422 | reinstated, you do not qualify to receive new licenses for the same 423 | material under section 10. 424 | 425 | 9. Acceptance Not Required for Having Copies. 426 | 427 | You are not required to accept this License in order to receive or 428 | run a copy of the Program. Ancillary propagation of a covered work 429 | occurring solely as a consequence of using peer-to-peer transmission 430 | to receive a copy likewise does not require acceptance. However, 431 | nothing other than this License grants you permission to propagate or 432 | modify any covered work. These actions infringe copyright if you do 433 | not accept this License. Therefore, by modifying or propagating a 434 | covered work, you indicate your acceptance of this License to do so. 435 | 436 | 10. Automatic Licensing of Downstream Recipients. 437 | 438 | Each time you convey a covered work, the recipient automatically 439 | receives a license from the original licensors, to run, modify and 440 | propagate that work, subject to this License. You are not responsible 441 | for enforcing compliance by third parties with this License. 442 | 443 | An "entity transaction" is a transaction transferring control of an 444 | organization, or substantially all assets of one, or subdividing an 445 | organization, or merging organizations. If propagation of a covered 446 | work results from an entity transaction, each party to that 447 | transaction who receives a copy of the work also receives whatever 448 | licenses to the work the party's predecessor in interest had or could 449 | give under the previous paragraph, plus a right to possession of the 450 | Corresponding Source of the work from the predecessor in interest, if 451 | the predecessor has it or can get it with reasonable efforts. 452 | 453 | You may not impose any further restrictions on the exercise of the 454 | rights granted or affirmed under this License. For example, you may 455 | not impose a license fee, royalty, or other charge for exercise of 456 | rights granted under this License, and you may not initiate litigation 457 | (including a cross-claim or counterclaim in a lawsuit) alleging that 458 | any patent claim is infringed by making, using, selling, offering for 459 | sale, or importing the Program or any portion of it. 460 | 461 | 11. Patents. 462 | 463 | A "contributor" is a copyright holder who authorizes use under this 464 | License of the Program or a work on which the Program is based. The 465 | work thus licensed is called the contributor's "contributor version". 466 | 467 | A contributor's "essential patent claims" are all patent claims 468 | owned or controlled by the contributor, whether already acquired or 469 | hereafter acquired, that would be infringed by some manner, permitted 470 | by this License, of making, using, or selling its contributor version, 471 | but do not include claims that would be infringed only as a 472 | consequence of further modification of the contributor version. For 473 | purposes of this definition, "control" includes the right to grant 474 | patent sublicenses in a manner consistent with the requirements of 475 | this License. 476 | 477 | Each contributor grants you a non-exclusive, worldwide, royalty-free 478 | patent license under the contributor's essential patent claims, to 479 | make, use, sell, offer for sale, import and otherwise run, modify and 480 | propagate the contents of its contributor version. 481 | 482 | In the following three paragraphs, a "patent license" is any express 483 | agreement or commitment, however denominated, not to enforce a patent 484 | (such as an express permission to practice a patent or covenant not to 485 | sue for patent infringement). To "grant" such a patent license to a 486 | party means to make such an agreement or commitment not to enforce a 487 | patent against the party. 488 | 489 | If you convey a covered work, knowingly relying on a patent license, 490 | and the Corresponding Source of the work is not available for anyone 491 | to copy, free of charge and under the terms of this License, through a 492 | publicly available network server or other readily accessible means, 493 | then you must either (1) cause the Corresponding Source to be so 494 | available, or (2) arrange to deprive yourself of the benefit of the 495 | patent license for this particular work, or (3) arrange, in a manner 496 | consistent with the requirements of this License, to extend the patent 497 | license to downstream recipients. "Knowingly relying" means you have 498 | actual knowledge that, but for the patent license, your conveying the 499 | covered work in a country, or your recipient's use of the covered work 500 | in a country, would infringe one or more identifiable patents in that 501 | country that you have reason to believe are valid. 502 | 503 | If, pursuant to or in connection with a single transaction or 504 | arrangement, you convey, or propagate by procuring conveyance of, a 505 | covered work, and grant a patent license to some of the parties 506 | receiving the covered work authorizing them to use, propagate, modify 507 | or convey a specific copy of the covered work, then the patent license 508 | you grant is automatically extended to all recipients of the covered 509 | work and works based on it. 510 | 511 | A patent license is "discriminatory" if it does not include within 512 | the scope of its coverage, prohibits the exercise of, or is 513 | conditioned on the non-exercise of one or more of the rights that are 514 | specifically granted under this License. You may not convey a covered 515 | work if you are a party to an arrangement with a third party that is 516 | in the business of distributing software, under which you make payment 517 | to the third party based on the extent of your activity of conveying 518 | the work, and under which the third party grants, to any of the 519 | parties who would receive the covered work from you, a discriminatory 520 | patent license (a) in connection with copies of the covered work 521 | conveyed by you (or copies made from those copies), or (b) primarily 522 | for and in connection with specific products or compilations that 523 | contain the covered work, unless you entered into that arrangement, 524 | or that patent license was granted, prior to 28 March 2007. 525 | 526 | Nothing in this License shall be construed as excluding or limiting 527 | any implied license or other defenses to infringement that may 528 | otherwise be available to you under applicable patent law. 529 | 530 | 12. No Surrender of Others' Freedom. 531 | 532 | If conditions are imposed on you (whether by court order, agreement or 533 | otherwise) that contradict the conditions of this License, they do not 534 | excuse you from the conditions of this License. If you cannot convey a 535 | covered work so as to satisfy simultaneously your obligations under this 536 | License and any other pertinent obligations, then as a consequence you may 537 | not convey it at all. For example, if you agree to terms that obligate you 538 | to collect a royalty for further conveying from those to whom you convey 539 | the Program, the only way you could satisfy both those terms and this 540 | License would be to refrain entirely from conveying the Program. 541 | 542 | 13. Remote Network Interaction; Use with the GNU General Public License. 543 | 544 | Notwithstanding any other provision of this License, if you modify the 545 | Program, your modified version must prominently offer all users 546 | interacting with it remotely through a computer network (if your version 547 | supports such interaction) an opportunity to receive the Corresponding 548 | Source of your version by providing access to the Corresponding Source 549 | from a network server at no charge, through some standard or customary 550 | means of facilitating copying of software. This Corresponding Source 551 | shall include the Corresponding Source for any work covered by version 3 552 | of the GNU General Public License that is incorporated pursuant to the 553 | following paragraph. 554 | 555 | Notwithstanding any other provision of this License, you have 556 | permission to link or combine any covered work with a work licensed 557 | under version 3 of the GNU General Public License into a single 558 | combined work, and to convey the resulting work. The terms of this 559 | License will continue to apply to the part which is the covered work, 560 | but the work with which it is combined will remain governed by version 561 | 3 of the GNU General Public License. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU Affero General Public License from time to time. Such new versions 567 | will be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU Affero General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU Affero General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU Affero General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU Affero General Public License as published 639 | by the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU Affero General Public License for more details. 646 | 647 | You should have received a copy of the GNU Affero General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If your software can interact with users remotely through a computer 653 | network, you should also make sure that it provides a way for users to 654 | get its source. For example, if your program is a web application, its 655 | interface could display a "Source" link that leads users to an archive 656 | of the code. There are many ways you could offer source, and different 657 | solutions will be better for different programs; see section 13 for the 658 | specific requirements. 659 | 660 | You should also get your employer (if you work as a programmer) or school, 661 | if any, to sign a "copyright disclaimer" for the program, if necessary. 662 | For more information on this, and how to apply and follow the GNU AGPL, see 663 | . 664 | -------------------------------------------------------------------------------- /public/tailwind.css: -------------------------------------------------------------------------------- 1 | /* 2 | ! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com 3 | */ 4 | 5 | /* 6 | 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 7 | 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) 8 | */ 9 | 10 | *, 11 | ::before, 12 | ::after { 13 | box-sizing: border-box; 14 | /* 1 */ 15 | border-width: 0; 16 | /* 2 */ 17 | border-style: solid; 18 | /* 2 */ 19 | border-color: #e5e7eb; 20 | /* 2 */ 21 | } 22 | 23 | ::before, 24 | ::after { 25 | --tw-content: ''; 26 | } 27 | 28 | /* 29 | 1. Use a consistent sensible line-height in all browsers. 30 | 2. Prevent adjustments of font size after orientation changes in iOS. 31 | 3. Use a more readable tab size. 32 | 4. Use the user's configured `sans` font-family by default. 33 | 5. Use the user's configured `sans` font-feature-settings by default. 34 | */ 35 | 36 | html { 37 | line-height: 1.5; 38 | /* 1 */ 39 | -webkit-text-size-adjust: 100%; 40 | /* 2 */ 41 | -moz-tab-size: 4; 42 | /* 3 */ 43 | -o-tab-size: 4; 44 | tab-size: 4; 45 | /* 3 */ 46 | font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 47 | /* 4 */ 48 | font-feature-settings: normal; 49 | /* 5 */ 50 | } 51 | 52 | /* 53 | 1. Remove the margin in all browsers. 54 | 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element. 55 | */ 56 | 57 | body { 58 | margin: 0; 59 | /* 1 */ 60 | line-height: inherit; 61 | /* 2 */ 62 | } 63 | 64 | /* 65 | 1. Add the correct height in Firefox. 66 | 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) 67 | 3. Ensure horizontal rules are visible by default. 68 | */ 69 | 70 | hr { 71 | height: 0; 72 | /* 1 */ 73 | color: inherit; 74 | /* 2 */ 75 | border-top-width: 1px; 76 | /* 3 */ 77 | } 78 | 79 | /* 80 | Add the correct text decoration in Chrome, Edge, and Safari. 81 | */ 82 | 83 | abbr:where([title]) { 84 | -webkit-text-decoration: underline dotted; 85 | text-decoration: underline dotted; 86 | } 87 | 88 | /* 89 | Remove the default font size and weight for headings. 90 | */ 91 | 92 | h1, 93 | h2, 94 | h3, 95 | h4, 96 | h5, 97 | h6 { 98 | font-size: inherit; 99 | font-weight: inherit; 100 | } 101 | 102 | /* 103 | Reset links to optimize for opt-in styling instead of opt-out. 104 | */ 105 | 106 | a { 107 | color: inherit; 108 | text-decoration: inherit; 109 | } 110 | 111 | /* 112 | Add the correct font weight in Edge and Safari. 113 | */ 114 | 115 | b, 116 | strong { 117 | font-weight: bolder; 118 | } 119 | 120 | /* 121 | 1. Use the user's configured `mono` font family by default. 122 | 2. Correct the odd `em` font sizing in all browsers. 123 | */ 124 | 125 | code, 126 | kbd, 127 | samp, 128 | pre { 129 | font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 130 | /* 1 */ 131 | font-size: 1em; 132 | /* 2 */ 133 | } 134 | 135 | /* 136 | Add the correct font size in all browsers. 137 | */ 138 | 139 | small { 140 | font-size: 80%; 141 | } 142 | 143 | /* 144 | Prevent `sub` and `sup` elements from affecting the line height in all browsers. 145 | */ 146 | 147 | sub, 148 | sup { 149 | font-size: 75%; 150 | line-height: 0; 151 | position: relative; 152 | vertical-align: baseline; 153 | } 154 | 155 | sub { 156 | bottom: -0.25em; 157 | } 158 | 159 | sup { 160 | top: -0.5em; 161 | } 162 | 163 | /* 164 | 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) 165 | 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) 166 | 3. Remove gaps between table borders by default. 167 | */ 168 | 169 | table { 170 | text-indent: 0; 171 | /* 1 */ 172 | border-color: inherit; 173 | /* 2 */ 174 | border-collapse: collapse; 175 | /* 3 */ 176 | } 177 | 178 | /* 179 | 1. Change the font styles in all browsers. 180 | 2. Remove the margin in Firefox and Safari. 181 | 3. Remove default padding in all browsers. 182 | */ 183 | 184 | button, 185 | input, 186 | optgroup, 187 | select, 188 | textarea { 189 | font-family: inherit; 190 | /* 1 */ 191 | font-size: 100%; 192 | /* 1 */ 193 | font-weight: inherit; 194 | /* 1 */ 195 | line-height: inherit; 196 | /* 1 */ 197 | color: inherit; 198 | /* 1 */ 199 | margin: 0; 200 | /* 2 */ 201 | padding: 0; 202 | /* 3 */ 203 | } 204 | 205 | /* 206 | Remove the inheritance of text transform in Edge and Firefox. 207 | */ 208 | 209 | button, 210 | select { 211 | text-transform: none; 212 | } 213 | 214 | /* 215 | 1. Correct the inability to style clickable types in iOS and Safari. 216 | 2. Remove default button styles. 217 | */ 218 | 219 | button, 220 | [type='button'], 221 | [type='reset'], 222 | [type='submit'] { 223 | -webkit-appearance: button; 224 | /* 1 */ 225 | background-color: transparent; 226 | /* 2 */ 227 | background-image: none; 228 | /* 2 */ 229 | } 230 | 231 | /* 232 | Use the modern Firefox focus style for all focusable elements. 233 | */ 234 | 235 | :-moz-focusring { 236 | outline: auto; 237 | } 238 | 239 | /* 240 | Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) 241 | */ 242 | 243 | :-moz-ui-invalid { 244 | box-shadow: none; 245 | } 246 | 247 | /* 248 | Add the correct vertical alignment in Chrome and Firefox. 249 | */ 250 | 251 | progress { 252 | vertical-align: baseline; 253 | } 254 | 255 | /* 256 | Correct the cursor style of increment and decrement buttons in Safari. 257 | */ 258 | 259 | ::-webkit-inner-spin-button, 260 | ::-webkit-outer-spin-button { 261 | height: auto; 262 | } 263 | 264 | /* 265 | 1. Correct the odd appearance in Chrome and Safari. 266 | 2. Correct the outline style in Safari. 267 | */ 268 | 269 | [type='search'] { 270 | -webkit-appearance: textfield; 271 | /* 1 */ 272 | outline-offset: -2px; 273 | /* 2 */ 274 | } 275 | 276 | /* 277 | Remove the inner padding in Chrome and Safari on macOS. 278 | */ 279 | 280 | ::-webkit-search-decoration { 281 | -webkit-appearance: none; 282 | } 283 | 284 | /* 285 | 1. Correct the inability to style clickable types in iOS and Safari. 286 | 2. Change font properties to `inherit` in Safari. 287 | */ 288 | 289 | ::-webkit-file-upload-button { 290 | -webkit-appearance: button; 291 | /* 1 */ 292 | font: inherit; 293 | /* 2 */ 294 | } 295 | 296 | /* 297 | Add the correct display in Chrome and Safari. 298 | */ 299 | 300 | summary { 301 | display: list-item; 302 | } 303 | 304 | /* 305 | Removes the default spacing and border for appropriate elements. 306 | */ 307 | 308 | blockquote, 309 | dl, 310 | dd, 311 | h1, 312 | h2, 313 | h3, 314 | h4, 315 | h5, 316 | h6, 317 | hr, 318 | figure, 319 | p, 320 | pre { 321 | margin: 0; 322 | } 323 | 324 | fieldset { 325 | margin: 0; 326 | padding: 0; 327 | } 328 | 329 | legend { 330 | padding: 0; 331 | } 332 | 333 | ol, 334 | ul, 335 | menu { 336 | list-style: none; 337 | margin: 0; 338 | padding: 0; 339 | } 340 | 341 | /* 342 | Prevent resizing textareas horizontally by default. 343 | */ 344 | 345 | textarea { 346 | resize: vertical; 347 | } 348 | 349 | /* 350 | 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) 351 | 2. Set the default placeholder color to the user's configured gray 400 color. 352 | */ 353 | 354 | input::-moz-placeholder, textarea::-moz-placeholder { 355 | opacity: 1; 356 | /* 1 */ 357 | color: #9ca3af; 358 | /* 2 */ 359 | } 360 | 361 | input::placeholder, 362 | textarea::placeholder { 363 | opacity: 1; 364 | /* 1 */ 365 | color: #9ca3af; 366 | /* 2 */ 367 | } 368 | 369 | /* 370 | Set the default cursor for buttons. 371 | */ 372 | 373 | button, 374 | [role="button"] { 375 | cursor: pointer; 376 | } 377 | 378 | /* 379 | Make sure disabled buttons don't get the pointer cursor. 380 | */ 381 | 382 | :disabled { 383 | cursor: default; 384 | } 385 | 386 | /* 387 | 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14) 388 | 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) 389 | This can trigger a poorly considered lint error in some tools but is included by design. 390 | */ 391 | 392 | img, 393 | svg, 394 | video, 395 | canvas, 396 | audio, 397 | iframe, 398 | embed, 399 | object { 400 | display: block; 401 | /* 1 */ 402 | vertical-align: middle; 403 | /* 2 */ 404 | } 405 | 406 | /* 407 | Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) 408 | */ 409 | 410 | img, 411 | video { 412 | max-width: 100%; 413 | height: auto; 414 | } 415 | 416 | /* Make elements with the HTML hidden attribute stay hidden by default */ 417 | 418 | [hidden] { 419 | display: none; 420 | } 421 | 422 | [type='text'],[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select { 423 | -webkit-appearance: none; 424 | -moz-appearance: none; 425 | appearance: none; 426 | background-color: #fff; 427 | border-color: #6b7280; 428 | border-width: 1px; 429 | border-radius: 0px; 430 | padding-top: 0.5rem; 431 | padding-right: 0.75rem; 432 | padding-bottom: 0.5rem; 433 | padding-left: 0.75rem; 434 | font-size: 1rem; 435 | line-height: 1.5rem; 436 | --tw-shadow: 0 0 #0000; 437 | } 438 | 439 | [type='text']:focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus { 440 | outline: 2px solid transparent; 441 | outline-offset: 2px; 442 | --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); 443 | --tw-ring-offset-width: 0px; 444 | --tw-ring-offset-color: #fff; 445 | --tw-ring-color: #2563eb; 446 | --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); 447 | --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); 448 | box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); 449 | border-color: #2563eb; 450 | } 451 | 452 | input::-moz-placeholder, textarea::-moz-placeholder { 453 | color: #6b7280; 454 | opacity: 1; 455 | } 456 | 457 | input::placeholder,textarea::placeholder { 458 | color: #6b7280; 459 | opacity: 1; 460 | } 461 | 462 | ::-webkit-datetime-edit-fields-wrapper { 463 | padding: 0; 464 | } 465 | 466 | ::-webkit-date-and-time-value { 467 | min-height: 1.5em; 468 | } 469 | 470 | ::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field { 471 | padding-top: 0; 472 | padding-bottom: 0; 473 | } 474 | 475 | select { 476 | background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); 477 | background-position: right 0.5rem center; 478 | background-repeat: no-repeat; 479 | background-size: 1.5em 1.5em; 480 | padding-right: 2.5rem; 481 | -webkit-print-color-adjust: exact; 482 | print-color-adjust: exact; 483 | } 484 | 485 | [multiple] { 486 | background-image: initial; 487 | background-position: initial; 488 | background-repeat: unset; 489 | background-size: initial; 490 | padding-right: 0.75rem; 491 | -webkit-print-color-adjust: unset; 492 | print-color-adjust: unset; 493 | } 494 | 495 | [type='checkbox'],[type='radio'] { 496 | -webkit-appearance: none; 497 | -moz-appearance: none; 498 | appearance: none; 499 | padding: 0; 500 | -webkit-print-color-adjust: exact; 501 | print-color-adjust: exact; 502 | display: inline-block; 503 | vertical-align: middle; 504 | background-origin: border-box; 505 | -webkit-user-select: none; 506 | -moz-user-select: none; 507 | user-select: none; 508 | flex-shrink: 0; 509 | height: 1rem; 510 | width: 1rem; 511 | color: #2563eb; 512 | background-color: #fff; 513 | border-color: #6b7280; 514 | border-width: 1px; 515 | --tw-shadow: 0 0 #0000; 516 | } 517 | 518 | [type='checkbox'] { 519 | border-radius: 0px; 520 | } 521 | 522 | [type='radio'] { 523 | border-radius: 100%; 524 | } 525 | 526 | [type='checkbox']:focus,[type='radio']:focus { 527 | outline: 2px solid transparent; 528 | outline-offset: 2px; 529 | --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); 530 | --tw-ring-offset-width: 2px; 531 | --tw-ring-offset-color: #fff; 532 | --tw-ring-color: #2563eb; 533 | --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); 534 | --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); 535 | box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); 536 | } 537 | 538 | [type='checkbox']:checked,[type='radio']:checked { 539 | border-color: transparent; 540 | background-color: currentColor; 541 | background-size: 100% 100%; 542 | background-position: center; 543 | background-repeat: no-repeat; 544 | } 545 | 546 | [type='checkbox']:checked { 547 | background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e"); 548 | } 549 | 550 | [type='radio']:checked { 551 | background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e"); 552 | } 553 | 554 | [type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus { 555 | border-color: transparent; 556 | background-color: currentColor; 557 | } 558 | 559 | [type='checkbox']:indeterminate { 560 | background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e"); 561 | border-color: transparent; 562 | background-color: currentColor; 563 | background-size: 100% 100%; 564 | background-position: center; 565 | background-repeat: no-repeat; 566 | } 567 | 568 | [type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus { 569 | border-color: transparent; 570 | background-color: currentColor; 571 | } 572 | 573 | [type='file'] { 574 | background: unset; 575 | border-color: inherit; 576 | border-width: 0; 577 | border-radius: 0; 578 | padding: 0; 579 | font-size: unset; 580 | line-height: inherit; 581 | } 582 | 583 | [type='file']:focus { 584 | outline: 1px solid ButtonText; 585 | outline: 1px auto -webkit-focus-ring-color; 586 | } 587 | 588 | *, ::before, ::after { 589 | --tw-border-spacing-x: 0; 590 | --tw-border-spacing-y: 0; 591 | --tw-translate-x: 0; 592 | --tw-translate-y: 0; 593 | --tw-rotate: 0; 594 | --tw-skew-x: 0; 595 | --tw-skew-y: 0; 596 | --tw-scale-x: 1; 597 | --tw-scale-y: 1; 598 | --tw-pan-x: ; 599 | --tw-pan-y: ; 600 | --tw-pinch-zoom: ; 601 | --tw-scroll-snap-strictness: proximity; 602 | --tw-ordinal: ; 603 | --tw-slashed-zero: ; 604 | --tw-numeric-figure: ; 605 | --tw-numeric-spacing: ; 606 | --tw-numeric-fraction: ; 607 | --tw-ring-inset: ; 608 | --tw-ring-offset-width: 0px; 609 | --tw-ring-offset-color: #fff; 610 | --tw-ring-color: rgb(59 130 246 / 0.5); 611 | --tw-ring-offset-shadow: 0 0 #0000; 612 | --tw-ring-shadow: 0 0 #0000; 613 | --tw-shadow: 0 0 #0000; 614 | --tw-shadow-colored: 0 0 #0000; 615 | --tw-blur: ; 616 | --tw-brightness: ; 617 | --tw-contrast: ; 618 | --tw-grayscale: ; 619 | --tw-hue-rotate: ; 620 | --tw-invert: ; 621 | --tw-saturate: ; 622 | --tw-sepia: ; 623 | --tw-drop-shadow: ; 624 | --tw-backdrop-blur: ; 625 | --tw-backdrop-brightness: ; 626 | --tw-backdrop-contrast: ; 627 | --tw-backdrop-grayscale: ; 628 | --tw-backdrop-hue-rotate: ; 629 | --tw-backdrop-invert: ; 630 | --tw-backdrop-opacity: ; 631 | --tw-backdrop-saturate: ; 632 | --tw-backdrop-sepia: ; 633 | } 634 | 635 | ::backdrop { 636 | --tw-border-spacing-x: 0; 637 | --tw-border-spacing-y: 0; 638 | --tw-translate-x: 0; 639 | --tw-translate-y: 0; 640 | --tw-rotate: 0; 641 | --tw-skew-x: 0; 642 | --tw-skew-y: 0; 643 | --tw-scale-x: 1; 644 | --tw-scale-y: 1; 645 | --tw-pan-x: ; 646 | --tw-pan-y: ; 647 | --tw-pinch-zoom: ; 648 | --tw-scroll-snap-strictness: proximity; 649 | --tw-ordinal: ; 650 | --tw-slashed-zero: ; 651 | --tw-numeric-figure: ; 652 | --tw-numeric-spacing: ; 653 | --tw-numeric-fraction: ; 654 | --tw-ring-inset: ; 655 | --tw-ring-offset-width: 0px; 656 | --tw-ring-offset-color: #fff; 657 | --tw-ring-color: rgb(59 130 246 / 0.5); 658 | --tw-ring-offset-shadow: 0 0 #0000; 659 | --tw-ring-shadow: 0 0 #0000; 660 | --tw-shadow: 0 0 #0000; 661 | --tw-shadow-colored: 0 0 #0000; 662 | --tw-blur: ; 663 | --tw-brightness: ; 664 | --tw-contrast: ; 665 | --tw-grayscale: ; 666 | --tw-hue-rotate: ; 667 | --tw-invert: ; 668 | --tw-saturate: ; 669 | --tw-sepia: ; 670 | --tw-drop-shadow: ; 671 | --tw-backdrop-blur: ; 672 | --tw-backdrop-brightness: ; 673 | --tw-backdrop-contrast: ; 674 | --tw-backdrop-grayscale: ; 675 | --tw-backdrop-hue-rotate: ; 676 | --tw-backdrop-invert: ; 677 | --tw-backdrop-opacity: ; 678 | --tw-backdrop-saturate: ; 679 | --tw-backdrop-sepia: ; 680 | } 681 | 682 | .sr-only { 683 | position: absolute; 684 | width: 1px; 685 | height: 1px; 686 | padding: 0; 687 | margin: -1px; 688 | overflow: hidden; 689 | clip: rect(0, 0, 0, 0); 690 | white-space: nowrap; 691 | border-width: 0; 692 | } 693 | 694 | .fixed { 695 | position: fixed; 696 | } 697 | 698 | .absolute { 699 | position: absolute; 700 | } 701 | 702 | .relative { 703 | position: relative; 704 | } 705 | 706 | .sticky { 707 | position: sticky; 708 | } 709 | 710 | .inset-x-0 { 711 | left: 0px; 712 | right: 0px; 713 | } 714 | 715 | .bottom-0 { 716 | bottom: 0px; 717 | } 718 | 719 | .right-0 { 720 | right: 0px; 721 | } 722 | 723 | .top-0 { 724 | top: 0px; 725 | } 726 | 727 | .z-10 { 728 | z-index: 10; 729 | } 730 | 731 | .col-span-3 { 732 | grid-column: span 3 / span 3; 733 | } 734 | 735 | .-my-2 { 736 | margin-top: -0.5rem; 737 | margin-bottom: -0.5rem; 738 | } 739 | 740 | .mx-auto { 741 | margin-left: auto; 742 | margin-right: auto; 743 | } 744 | 745 | .mb-6 { 746 | margin-bottom: 1.5rem; 747 | } 748 | 749 | .mb-8 { 750 | margin-bottom: 2rem; 751 | } 752 | 753 | .ml-16 { 754 | margin-left: 4rem; 755 | } 756 | 757 | .ml-3 { 758 | margin-left: 0.75rem; 759 | } 760 | 761 | .ml-4 { 762 | margin-left: 1rem; 763 | } 764 | 765 | .ml-64 { 766 | margin-left: 16rem; 767 | } 768 | 769 | .mr-3 { 770 | margin-right: 0.75rem; 771 | } 772 | 773 | .mr-4 { 774 | margin-right: 1rem; 775 | } 776 | 777 | .mt-1 { 778 | margin-top: 0.25rem; 779 | } 780 | 781 | .mt-10 { 782 | margin-top: 2.5rem; 783 | } 784 | 785 | .mt-2 { 786 | margin-top: 0.5rem; 787 | } 788 | 789 | .mt-3 { 790 | margin-top: 0.75rem; 791 | } 792 | 793 | .mt-4 { 794 | margin-top: 1rem; 795 | } 796 | 797 | .mt-5 { 798 | margin-top: 1.25rem; 799 | } 800 | 801 | .mt-6 { 802 | margin-top: 1.5rem; 803 | } 804 | 805 | .mt-8 { 806 | margin-top: 2rem; 807 | } 808 | 809 | .block { 810 | display: block; 811 | } 812 | 813 | .inline-block { 814 | display: inline-block; 815 | } 816 | 817 | .flex { 818 | display: flex; 819 | } 820 | 821 | .inline-flex { 822 | display: inline-flex; 823 | } 824 | 825 | .table { 826 | display: table; 827 | } 828 | 829 | .grid { 830 | display: grid; 831 | } 832 | 833 | .hidden { 834 | display: none; 835 | } 836 | 837 | .h-16 { 838 | height: 4rem; 839 | } 840 | 841 | .h-6 { 842 | height: 1.5rem; 843 | } 844 | 845 | .h-8 { 846 | height: 2rem; 847 | } 848 | 849 | .min-h-0 { 850 | min-height: 0px; 851 | } 852 | 853 | .min-h-full { 854 | min-height: 100%; 855 | } 856 | 857 | .w-1\/4 { 858 | width: 25%; 859 | } 860 | 861 | .w-6 { 862 | width: 1.5rem; 863 | } 864 | 865 | .w-8 { 866 | width: 2rem; 867 | } 868 | 869 | .w-80 { 870 | width: 20rem; 871 | } 872 | 873 | .w-full { 874 | width: 100%; 875 | } 876 | 877 | .min-w-full { 878 | min-width: 100%; 879 | } 880 | 881 | .max-w-7xl { 882 | max-width: 80rem; 883 | } 884 | 885 | .max-w-lg { 886 | max-width: 32rem; 887 | } 888 | 889 | .max-w-md { 890 | max-width: 28rem; 891 | } 892 | 893 | .max-w-xs { 894 | max-width: 20rem; 895 | } 896 | 897 | .flex-1 { 898 | flex: 1 1 0%; 899 | } 900 | 901 | .flex-shrink-0 { 902 | flex-shrink: 0; 903 | } 904 | 905 | .grid-cols-1 { 906 | grid-template-columns: repeat(1, minmax(0, 1fr)); 907 | } 908 | 909 | .grid-cols-3 { 910 | grid-template-columns: repeat(3, minmax(0, 1fr)); 911 | } 912 | 913 | .flex-col { 914 | flex-direction: column; 915 | } 916 | 917 | .items-center { 918 | align-items: center; 919 | } 920 | 921 | .items-baseline { 922 | align-items: baseline; 923 | } 924 | 925 | .justify-end { 926 | justify-content: flex-end; 927 | } 928 | 929 | .justify-center { 930 | justify-content: center; 931 | } 932 | 933 | .justify-between { 934 | justify-content: space-between; 935 | } 936 | 937 | .gap-5 { 938 | gap: 1.25rem; 939 | } 940 | 941 | .gap-6 { 942 | gap: 1.5rem; 943 | } 944 | 945 | .space-y-1 > :not([hidden]) ~ :not([hidden]) { 946 | --tw-space-y-reverse: 0; 947 | margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse))); 948 | margin-bottom: calc(0.25rem * var(--tw-space-y-reverse)); 949 | } 950 | 951 | .space-y-6 > :not([hidden]) ~ :not([hidden]) { 952 | --tw-space-y-reverse: 0; 953 | margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse))); 954 | margin-bottom: calc(1.5rem * var(--tw-space-y-reverse)); 955 | } 956 | 957 | .space-y-8 > :not([hidden]) ~ :not([hidden]) { 958 | --tw-space-y-reverse: 0; 959 | margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse))); 960 | margin-bottom: calc(2rem * var(--tw-space-y-reverse)); 961 | } 962 | 963 | .divide-y > :not([hidden]) ~ :not([hidden]) { 964 | --tw-divide-y-reverse: 0; 965 | border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); 966 | border-bottom-width: calc(1px * var(--tw-divide-y-reverse)); 967 | } 968 | 969 | .divide-gray-700\/10 > :not([hidden]) ~ :not([hidden]) { 970 | border-color: rgb(55 65 81 / 0.1); 971 | } 972 | 973 | .overflow-hidden { 974 | overflow: hidden; 975 | } 976 | 977 | .overflow-x-auto { 978 | overflow-x: auto; 979 | } 980 | 981 | .overflow-y-auto { 982 | overflow-y: auto; 983 | } 984 | 985 | .truncate { 986 | overflow: hidden; 987 | text-overflow: ellipsis; 988 | white-space: nowrap; 989 | } 990 | 991 | .whitespace-nowrap { 992 | white-space: nowrap; 993 | } 994 | 995 | .rounded-full { 996 | border-radius: 9999px; 997 | } 998 | 999 | .rounded-lg { 1000 | border-radius: 0.5rem; 1001 | } 1002 | 1003 | .rounded-md { 1004 | border-radius: 0.375rem; 1005 | } 1006 | 1007 | .rounded-l-lg { 1008 | border-top-left-radius: 0.5rem; 1009 | border-bottom-left-radius: 0.5rem; 1010 | } 1011 | 1012 | .rounded-r-lg { 1013 | border-top-right-radius: 0.5rem; 1014 | border-bottom-right-radius: 0.5rem; 1015 | } 1016 | 1017 | .border { 1018 | border-width: 1px; 1019 | } 1020 | 1021 | .border-b { 1022 | border-bottom-width: 1px; 1023 | } 1024 | 1025 | .border-l-4 { 1026 | border-left-width: 4px; 1027 | } 1028 | 1029 | .border-r { 1030 | border-right-width: 1px; 1031 | } 1032 | 1033 | .border-t { 1034 | border-top-width: 1px; 1035 | } 1036 | 1037 | .border-blue-500 { 1038 | --tw-border-opacity: 1; 1039 | border-color: rgb(59 130 246 / var(--tw-border-opacity)); 1040 | } 1041 | 1042 | .border-gray-200 { 1043 | --tw-border-opacity: 1; 1044 | border-color: rgb(229 231 235 / var(--tw-border-opacity)); 1045 | } 1046 | 1047 | .border-gray-600\/75 { 1048 | border-color: rgb(75 85 99 / 0.75); 1049 | } 1050 | 1051 | .border-gray-700\/10 { 1052 | border-color: rgb(55 65 81 / 0.1); 1053 | } 1054 | 1055 | .border-gray-700\/50 { 1056 | border-color: rgb(55 65 81 / 0.5); 1057 | } 1058 | 1059 | .border-gray-700\/75 { 1060 | border-color: rgb(55 65 81 / 0.75); 1061 | } 1062 | 1063 | .border-green-400 { 1064 | --tw-border-opacity: 1; 1065 | border-color: rgb(74 222 128 / var(--tw-border-opacity)); 1066 | } 1067 | 1068 | .border-red-400 { 1069 | --tw-border-opacity: 1; 1070 | border-color: rgb(248 113 113 / var(--tw-border-opacity)); 1071 | } 1072 | 1073 | .border-transparent { 1074 | border-color: transparent; 1075 | } 1076 | 1077 | .bg-blue-500 { 1078 | --tw-bg-opacity: 1; 1079 | background-color: rgb(59 130 246 / var(--tw-bg-opacity)); 1080 | } 1081 | 1082 | .bg-gray-700 { 1083 | --tw-bg-opacity: 1; 1084 | background-color: rgb(55 65 81 / var(--tw-bg-opacity)); 1085 | } 1086 | 1087 | .bg-gray-700\/10 { 1088 | background-color: rgb(55 65 81 / 0.1); 1089 | } 1090 | 1091 | .bg-gray-700\/20 { 1092 | background-color: rgb(55 65 81 / 0.2); 1093 | } 1094 | 1095 | .bg-gray-700\/25 { 1096 | background-color: rgb(55 65 81 / 0.25); 1097 | } 1098 | 1099 | .bg-gray-700\/50 { 1100 | background-color: rgb(55 65 81 / 0.5); 1101 | } 1102 | 1103 | .bg-gray-700\/75 { 1104 | background-color: rgb(55 65 81 / 0.75); 1105 | } 1106 | 1107 | .bg-gray-800 { 1108 | --tw-bg-opacity: 1; 1109 | background-color: rgb(31 41 55 / var(--tw-bg-opacity)); 1110 | } 1111 | 1112 | .bg-gray-900 { 1113 | --tw-bg-opacity: 1; 1114 | background-color: rgb(17 24 39 / var(--tw-bg-opacity)); 1115 | } 1116 | 1117 | .bg-green-900\/50 { 1118 | background-color: rgb(20 83 45 / 0.5); 1119 | } 1120 | 1121 | .bg-red-900\/50 { 1122 | background-color: rgb(127 29 29 / 0.5); 1123 | } 1124 | 1125 | .bg-transparent { 1126 | background-color: transparent; 1127 | } 1128 | 1129 | .p-3 { 1130 | padding: 0.75rem; 1131 | } 1132 | 1133 | .p-6 { 1134 | padding: 1.5rem; 1135 | } 1136 | 1137 | .px-2 { 1138 | padding-left: 0.5rem; 1139 | padding-right: 0.5rem; 1140 | } 1141 | 1142 | .px-4 { 1143 | padding-left: 1rem; 1144 | padding-right: 1rem; 1145 | } 1146 | 1147 | .px-6 { 1148 | padding-left: 1.5rem; 1149 | padding-right: 1.5rem; 1150 | } 1151 | 1152 | .py-1 { 1153 | padding-top: 0.25rem; 1154 | padding-bottom: 0.25rem; 1155 | } 1156 | 1157 | .py-12 { 1158 | padding-top: 3rem; 1159 | padding-bottom: 3rem; 1160 | } 1161 | 1162 | .py-2 { 1163 | padding-top: 0.5rem; 1164 | padding-bottom: 0.5rem; 1165 | } 1166 | 1167 | .py-3 { 1168 | padding-top: 0.75rem; 1169 | padding-bottom: 0.75rem; 1170 | } 1171 | 1172 | .py-4 { 1173 | padding-top: 1rem; 1174 | padding-bottom: 1rem; 1175 | } 1176 | 1177 | .py-5 { 1178 | padding-top: 1.25rem; 1179 | padding-bottom: 1.25rem; 1180 | } 1181 | 1182 | .py-6 { 1183 | padding-top: 1.5rem; 1184 | padding-bottom: 1.5rem; 1185 | } 1186 | 1187 | .pb-12 { 1188 | padding-bottom: 3rem; 1189 | } 1190 | 1191 | .pb-4 { 1192 | padding-bottom: 1rem; 1193 | } 1194 | 1195 | .pb-6 { 1196 | padding-bottom: 1.5rem; 1197 | } 1198 | 1199 | .pt-4 { 1200 | padding-top: 1rem; 1201 | } 1202 | 1203 | .pt-5 { 1204 | padding-top: 1.25rem; 1205 | } 1206 | 1207 | .pt-72 { 1208 | padding-top: 18rem; 1209 | } 1210 | 1211 | .text-left { 1212 | text-align: left; 1213 | } 1214 | 1215 | .text-center { 1216 | text-align: center; 1217 | } 1218 | 1219 | .text-right { 1220 | text-align: right; 1221 | } 1222 | 1223 | .align-middle { 1224 | vertical-align: middle; 1225 | } 1226 | 1227 | .text-2xl { 1228 | font-size: 1.5rem; 1229 | line-height: 2rem; 1230 | } 1231 | 1232 | .text-3xl { 1233 | font-size: 1.875rem; 1234 | line-height: 2.25rem; 1235 | } 1236 | 1237 | .text-base { 1238 | font-size: 1rem; 1239 | line-height: 1.5rem; 1240 | } 1241 | 1242 | .text-lg { 1243 | font-size: 1.125rem; 1244 | line-height: 1.75rem; 1245 | } 1246 | 1247 | .text-sm { 1248 | font-size: 0.875rem; 1249 | line-height: 1.25rem; 1250 | } 1251 | 1252 | .text-xl { 1253 | font-size: 1.25rem; 1254 | line-height: 1.75rem; 1255 | } 1256 | 1257 | .text-xs { 1258 | font-size: 0.75rem; 1259 | line-height: 1rem; 1260 | } 1261 | 1262 | .font-bold { 1263 | font-weight: 700; 1264 | } 1265 | 1266 | .font-medium { 1267 | font-weight: 500; 1268 | } 1269 | 1270 | .font-semibold { 1271 | font-weight: 600; 1272 | } 1273 | 1274 | .uppercase { 1275 | text-transform: uppercase; 1276 | } 1277 | 1278 | .leading-6 { 1279 | line-height: 1.5rem; 1280 | } 1281 | 1282 | .tracking-tight { 1283 | letter-spacing: -0.025em; 1284 | } 1285 | 1286 | .tracking-wider { 1287 | letter-spacing: 0.05em; 1288 | } 1289 | 1290 | .text-blue-300 { 1291 | --tw-text-opacity: 1; 1292 | color: rgb(147 197 253 / var(--tw-text-opacity)); 1293 | } 1294 | 1295 | .text-gray-300 { 1296 | --tw-text-opacity: 1; 1297 | color: rgb(209 213 219 / var(--tw-text-opacity)); 1298 | } 1299 | 1300 | .text-gray-400 { 1301 | --tw-text-opacity: 1; 1302 | color: rgb(156 163 175 / var(--tw-text-opacity)); 1303 | } 1304 | 1305 | .text-gray-500 { 1306 | --tw-text-opacity: 1; 1307 | color: rgb(107 114 128 / var(--tw-text-opacity)); 1308 | } 1309 | 1310 | .text-green-100 { 1311 | --tw-text-opacity: 1; 1312 | color: rgb(220 252 231 / var(--tw-text-opacity)); 1313 | } 1314 | 1315 | .text-green-400 { 1316 | --tw-text-opacity: 1; 1317 | color: rgb(74 222 128 / var(--tw-text-opacity)); 1318 | } 1319 | 1320 | .text-red-100 { 1321 | --tw-text-opacity: 1; 1322 | color: rgb(254 226 226 / var(--tw-text-opacity)); 1323 | } 1324 | 1325 | .text-red-300 { 1326 | --tw-text-opacity: 1; 1327 | color: rgb(252 165 165 / var(--tw-text-opacity)); 1328 | } 1329 | 1330 | .text-red-400 { 1331 | --tw-text-opacity: 1; 1332 | color: rgb(248 113 113 / var(--tw-text-opacity)); 1333 | } 1334 | 1335 | .text-white { 1336 | --tw-text-opacity: 1; 1337 | color: rgb(255 255 255 / var(--tw-text-opacity)); 1338 | } 1339 | 1340 | .shadow { 1341 | --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); 1342 | --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color); 1343 | box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); 1344 | } 1345 | 1346 | .shadow-sm { 1347 | --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); 1348 | --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); 1349 | box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); 1350 | } 1351 | 1352 | .backdrop-blur-md { 1353 | --tw-backdrop-blur: blur(12px); 1354 | -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); 1355 | backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia); 1356 | } 1357 | 1358 | .transition { 1359 | transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter; 1360 | transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; 1361 | transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter; 1362 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1363 | transition-duration: 150ms; 1364 | } 1365 | 1366 | .delay-100 { 1367 | transition-delay: 100ms; 1368 | } 1369 | 1370 | .ease-in-out { 1371 | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 1372 | } 1373 | 1374 | .hover\:bg-blue-600:hover { 1375 | --tw-bg-opacity: 1; 1376 | background-color: rgb(37 99 235 / var(--tw-bg-opacity)); 1377 | } 1378 | 1379 | .hover\:bg-gray-700:hover { 1380 | --tw-bg-opacity: 1; 1381 | background-color: rgb(55 65 81 / var(--tw-bg-opacity)); 1382 | } 1383 | 1384 | .hover\:bg-gray-700\/50:hover { 1385 | background-color: rgb(55 65 81 / 0.5); 1386 | } 1387 | 1388 | .hover\:text-blue-400:hover { 1389 | --tw-text-opacity: 1; 1390 | color: rgb(96 165 250 / var(--tw-text-opacity)); 1391 | } 1392 | 1393 | .hover\:text-red-400:hover { 1394 | --tw-text-opacity: 1; 1395 | color: rgb(248 113 113 / var(--tw-text-opacity)); 1396 | } 1397 | 1398 | .hover\:text-white:hover { 1399 | --tw-text-opacity: 1; 1400 | color: rgb(255 255 255 / var(--tw-text-opacity)); 1401 | } 1402 | 1403 | .focus\:z-10:focus { 1404 | z-index: 10; 1405 | } 1406 | 1407 | .focus\:border-blue-500:focus { 1408 | --tw-border-opacity: 1; 1409 | border-color: rgb(59 130 246 / var(--tw-border-opacity)); 1410 | } 1411 | 1412 | .focus\:text-white:focus { 1413 | --tw-text-opacity: 1; 1414 | color: rgb(255 255 255 / var(--tw-text-opacity)); 1415 | } 1416 | 1417 | .focus\:outline-none:focus { 1418 | outline: 2px solid transparent; 1419 | outline-offset: 2px; 1420 | } 1421 | 1422 | .focus\:ring-2:focus { 1423 | --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); 1424 | --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); 1425 | box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); 1426 | } 1427 | 1428 | .focus\:ring-inset:focus { 1429 | --tw-ring-inset: inset; 1430 | } 1431 | 1432 | .focus\:ring-blue-500:focus { 1433 | --tw-ring-opacity: 1; 1434 | --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity)); 1435 | } 1436 | 1437 | .focus\:ring-blue-600:focus { 1438 | --tw-ring-opacity: 1; 1439 | --tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity)); 1440 | } 1441 | 1442 | .focus\:ring-offset-2:focus { 1443 | --tw-ring-offset-width: 2px; 1444 | } 1445 | 1446 | @media (min-width: 640px) { 1447 | .sm\:col-span-2 { 1448 | grid-column: span 2 / span 2; 1449 | } 1450 | 1451 | .sm\:-mx-6 { 1452 | margin-left: -1.5rem; 1453 | margin-right: -1.5rem; 1454 | } 1455 | 1456 | .sm\:mt-0 { 1457 | margin-top: 0px; 1458 | } 1459 | 1460 | .sm\:block { 1461 | display: block; 1462 | } 1463 | 1464 | .sm\:flex { 1465 | display: flex; 1466 | } 1467 | 1468 | .sm\:grid-cols-2 { 1469 | grid-template-columns: repeat(2, minmax(0, 1fr)); 1470 | } 1471 | 1472 | .sm\:items-center { 1473 | align-items: center; 1474 | } 1475 | 1476 | .sm\:justify-between { 1477 | justify-content: space-between; 1478 | } 1479 | 1480 | .sm\:overflow-hidden { 1481 | overflow: hidden; 1482 | } 1483 | 1484 | .sm\:rounded-lg { 1485 | border-radius: 0.5rem; 1486 | } 1487 | 1488 | .sm\:rounded-md { 1489 | border-radius: 0.375rem; 1490 | } 1491 | 1492 | .sm\:p-6 { 1493 | padding: 1.5rem; 1494 | } 1495 | 1496 | .sm\:px-0 { 1497 | padding-left: 0px; 1498 | padding-right: 0px; 1499 | } 1500 | 1501 | .sm\:px-6 { 1502 | padding-left: 1.5rem; 1503 | padding-right: 1.5rem; 1504 | } 1505 | 1506 | .sm\:pb-7 { 1507 | padding-bottom: 1.75rem; 1508 | } 1509 | 1510 | .sm\:pt-6 { 1511 | padding-top: 1.5rem; 1512 | } 1513 | 1514 | .sm\:text-left { 1515 | text-align: left; 1516 | } 1517 | 1518 | .sm\:text-sm { 1519 | font-size: 0.875rem; 1520 | line-height: 1.25rem; 1521 | } 1522 | } 1523 | 1524 | @media (min-width: 768px) { 1525 | .md\:fixed { 1526 | position: fixed; 1527 | } 1528 | 1529 | .md\:inset-y-0 { 1530 | top: 0px; 1531 | bottom: 0px; 1532 | } 1533 | 1534 | .md\:col-span-1 { 1535 | grid-column: span 1 / span 1; 1536 | } 1537 | 1538 | .md\:col-span-2 { 1539 | grid-column: span 2 / span 2; 1540 | } 1541 | 1542 | .md\:ml-6 { 1543 | margin-left: 1.5rem; 1544 | } 1545 | 1546 | .md\:mt-0 { 1547 | margin-top: 0px; 1548 | } 1549 | 1550 | .md\:flex { 1551 | display: flex; 1552 | } 1553 | 1554 | .md\:grid { 1555 | display: grid; 1556 | } 1557 | 1558 | .md\:hidden { 1559 | display: none; 1560 | } 1561 | 1562 | .md\:w-64 { 1563 | width: 16rem; 1564 | } 1565 | 1566 | .md\:grid-cols-3 { 1567 | grid-template-columns: repeat(3, minmax(0, 1fr)); 1568 | } 1569 | 1570 | .md\:flex-col { 1571 | flex-direction: column; 1572 | } 1573 | 1574 | .md\:gap-6 { 1575 | gap: 1.5rem; 1576 | } 1577 | 1578 | .md\:px-8 { 1579 | padding-left: 2rem; 1580 | padding-right: 2rem; 1581 | } 1582 | 1583 | .md\:pl-64 { 1584 | padding-left: 16rem; 1585 | } 1586 | } 1587 | 1588 | @media (min-width: 1024px) { 1589 | .lg\:-mx-8 { 1590 | margin-left: -2rem; 1591 | margin-right: -2rem; 1592 | } 1593 | 1594 | .lg\:max-w-none { 1595 | max-width: none; 1596 | } 1597 | 1598 | .lg\:grid-cols-3 { 1599 | grid-template-columns: repeat(3, minmax(0, 1fr)); 1600 | } 1601 | 1602 | .lg\:px-8 { 1603 | padding-left: 2rem; 1604 | padding-right: 2rem; 1605 | } 1606 | } --------------------------------------------------------------------------------