diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..81ee500 --- /dev/null +++ b/Gemfile @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +# gem "rails" + +gem "sinatra", "~> 4.0" + +gem "puma", "~> 6.4" + +gem "sequel", "~> 5.77" + +gem "mysql2", "~> 0.5.6" + +gem "sqlite3", "~> 1.7" + +gem "erb", "~> 4.0" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..efdc8fe --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,49 @@ +GEM + remote: https://rubygems.org/ + specs: + base64 (0.2.0) + bigdecimal (3.1.6) + cgi (0.4.1) + erb (4.0.4) + cgi (>= 0.3.3) + mini_portile2 (2.8.5) + mustermann (3.0.0) + ruby2_keywords (~> 0.0.1) + mysql2 (0.5.6) + nio4r (2.7.0) + puma (6.4.2) + nio4r (~> 2.0) + rack (3.0.9.1) + rack-protection (4.0.0) + base64 (>= 0.1.0) + rack (>= 3.0.0, < 4) + rack-session (2.0.0) + rack (>= 3.0.0) + ruby2_keywords (0.0.5) + sequel (5.77.0) + bigdecimal + sinatra (4.0.0) + mustermann (~> 3.0) + rack (>= 3.0.0, < 4) + rack-protection (= 4.0.0) + rack-session (>= 2.0.0, < 3) + tilt (~> 2.0) + sqlite3 (1.7.2) + mini_portile2 (~> 2.8.0) + sqlite3 (1.7.2-x86_64-linux) + tilt (2.3.0) + +PLATFORMS + ruby + x86_64-linux + +DEPENDENCIES + erb (~> 4.0) + mysql2 (~> 0.5.6) + puma (~> 6.4) + sequel (~> 5.77) + sinatra (~> 4.0) + sqlite3 (~> 1.7) + +BUNDLED WITH + 2.5.6 diff --git a/app/app.rb b/app/app.rb new file mode 100644 index 0000000..84a3efc --- /dev/null +++ b/app/app.rb @@ -0,0 +1,5 @@ +require 'sinatra' + +get '/' do + 'Hello, Simply Billing!' +end diff --git a/app/assets/images/admin/admin_favicon.ico b/app/assets/images/admin/admin_favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/images/index/index_favicon.ico b/app/assets/images/index/index_favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/images/shop/category_images/placeholder.png b/app/assets/images/shop/category_images/placeholder.png new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/images/shop/item_images/placeholder.png b/app/assets/images/shop/item_images/placeholder.png new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/images/shop/shop_favicon.ico b/app/assets/images/shop/shop_favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/admin/admin.js b/app/assets/scripts/admin/admin.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/index/index.js b/app/assets/scripts/index/index.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/category_scripts/category_1.js b/app/assets/scripts/shop/category_scripts/category_1.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/category_scripts/category_2.js b/app/assets/scripts/shop/category_scripts/category_2.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/product_scripts/product_1.js b/app/assets/scripts/shop/product_scripts/product_1.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/product_scripts/product_2.js b/app/assets/scripts/shop/product_scripts/product_2.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/shop.js b/app/assets/scripts/shop/shop.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/admin/admin.css b/app/assets/styles/admin/admin.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/index/index.css b/app/assets/styles/index/index.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/category_styles/category_1.css b/app/assets/styles/shop/category_styles/category_1.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/category_styles/category_2.css b/app/assets/styles/shop/category_styles/category_2.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/product_styles/product_1.css b/app/assets/styles/shop/product_styles/product_1.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/product_styles/product_2.css b/app/assets/styles/shop/product_styles/product_2.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/shop.css b/app/assets/styles/shop/shop.css new file mode 100644 index 0000000..e69de29 diff --git a/app/partials/_admin_backend_settings.html.erb b/app/partials/_admin_backend_settings.html.erb new file mode 100644 index 0000000..0ed2657 --- /dev/null +++ b/app/partials/_admin_backend_settings.html.erb @@ -0,0 +1,23 @@ +
+
+
+
+
Invoicing Settings
+
+
+
+
Automation Settings
+
+
+
+
Server Settings
+
+
+
+
Database Settings
+
+
+
+
Color Settings
+
+
diff --git a/app/partials/_admin_dashboard_header.html.erb b/app/partials/_admin_dashboard_header.html.erb new file mode 100644 index 0000000..57ccf18 --- /dev/null +++ b/app/partials/_admin_dashboard_header.html.erb @@ -0,0 +1,13 @@ +
+
+ +
Main Dashboard
+
+
+
Shop
+
+
+
+
Homepage
+
+
diff --git a/app/partials/_admin_dashboard_main.html.erb b/app/partials/_admin_dashboard_main.html.erb new file mode 100644 index 0000000..fba4290 --- /dev/null +++ b/app/partials/_admin_dashboard_main.html.erb @@ -0,0 +1,4 @@ +
+
+
+
diff --git a/app/partials/_admin_dashboard_sidebar.html.erb b/app/partials/_admin_dashboard_sidebar.html.erb new file mode 100644 index 0000000..5288482 --- /dev/null +++ b/app/partials/_admin_dashboard_sidebar.html.erb @@ -0,0 +1,27 @@ +
+
+
+
+
Payment Gateways
+
+
+
+
Support Tickets
+
+
+
+
User Management
+
+
+
+
Backend Settings
+
+
+
+
Product Settings
+
+
+
+
Main Dashboard
+
+
diff --git a/app/partials/_admin_maindash.html.erb b/app/partials/_admin_maindash.html.erb new file mode 100644 index 0000000..469c81a --- /dev/null +++ b/app/partials/_admin_maindash.html.erb @@ -0,0 +1,162 @@ +
+
+
+
+
Closed Tickets
+
+
+
+
Awaiting Reply
+
+
+
+
Open Tickets
+
+
+
+
+
+
+
Big Fuckoff Log
+
+
+
+
Suspended Users
+
+
Active Users
+
+
+
+
+
+
$100

Net Income YTD
+
+
+
+
$100

of Invoices Late
+
+
+
+
$100

of Invoices Paid
+
+
+
+
+
+
+
+
0
+
+
+
+
1
+
+
+
+
2
+
+
+
+
3
+
+
+
+
4
+
+
+
+
5
+
+
+
+
6
+
+
+
+
7
+
+
+
+
8
+
+
+
+
9
+
+
+
+
10
+
+
+
+
11
+
+
+
+
+
+
+
+
+
0
+
+
+
+
250
+
+
+
+
500
+
+
+
+
750
+
+
+
+
1000
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Income
+
+
+
Money In
+
+
+
+
Money Out
+
+
+
+
diff --git a/app/partials/_admin_product_settings.html.erb b/app/partials/_admin_product_settings.html.erb new file mode 100644 index 0000000..39934a0 --- /dev/null +++ b/app/partials/_admin_product_settings.html.erb @@ -0,0 +1,17 @@ +
+
+
+
+
Add New
+
+
+
+
Delete
+
+
+
+
Edit
+
+
+
+
diff --git a/app/partials/_index_header.html.erb b/app/partials/_index_header.html.erb new file mode 100644 index 0000000..a80e0e9 --- /dev/null +++ b/app/partials/_index_header.html.erb @@ -0,0 +1,16 @@ +
+
+ +
+
+
Shop
+
+
+
+
Login / Register
+
+
+
+
Admin Panel
+
+
diff --git a/app/partials/_index_mainview.html.erb b/app/partials/_index_mainview.html.erb new file mode 100644 index 0000000..be97242 --- /dev/null +++ b/app/partials/_index_mainview.html.erb @@ -0,0 +1,9 @@ +
+ +
+
Simply Billing
+
+
+
The better billing system for your Hosting Business
+
+
diff --git a/app/views/index.html.erb b/app/views/index.html.erb new file mode 100644 index 0000000..4d0a4c7 --- /dev/null +++ b/app/views/index.html.erb @@ -0,0 +1 @@ +<=% yield => diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..4504df3 --- /dev/null +++ b/config.ru @@ -0,0 +1,5 @@ +require './app' # require the file where your Sinatra application is defined +run Sinatra::Application + +# You can also specify Puma configuration here, for example: +# set :server, :puma