From 2e789998a58a86c9da2d07876f2b027dad831c24 Mon Sep 17 00:00:00 2001 From: Joey Kimsey Date: Tue, 10 Dec 2024 09:00:35 -0500 Subject: [PATCH] extensions and fixes --- app/controllers/extensions.php | 52 +++ app/controllers/home.php | 12 +- .../bookmarks/controllers/api/bookmarks.php | 6 +- app/plugins/members/controllers/member.php | 3 +- app/plugins/members/views/manage.html | 86 ++-- app/views/extensions/brave.html | 62 +++ app/views/extensions/chrome.html | 62 +++ app/views/extensions/edge.html | 62 +++ app/views/extensions/firefox.html | 62 +++ app/views/extensions/index.html | 78 ++++ app/views/extensions/opera.html | 62 +++ app/views/extensions/safari.html | 9 + app/views/index.html | 431 ++++++++++++++---- bin/tempus_project.php | 5 + 14 files changed, 850 insertions(+), 142 deletions(-) create mode 100644 app/controllers/extensions.php create mode 100644 app/views/extensions/brave.html create mode 100644 app/views/extensions/chrome.html create mode 100644 app/views/extensions/edge.html create mode 100644 app/views/extensions/firefox.html create mode 100644 app/views/extensions/index.html create mode 100644 app/views/extensions/opera.html create mode 100644 app/views/extensions/safari.html diff --git a/app/controllers/extensions.php b/app/controllers/extensions.php new file mode 100644 index 0000000..40c93ed --- /dev/null +++ b/app/controllers/extensions.php @@ -0,0 +1,52 @@ + + * @link https://TheTempusProject.com + * @license https://opensource.org/licenses/MIT [MIT LICENSE] + */ +namespace TheTempusProject\Controllers; + +use TheTempusProject\Classes\Controller; +use TheTempusProject\Houdini\Classes\Views; + +class Extensions extends Controller { + public function index() { + self::$title = 'Browser Extensions'; + Views::view( 'extensions.index' ); + } + + public function chrome() { + self::$title = 'Chrome Extension'; + Views::view( 'extensions.chrome' ); + } + + public function firefox() { + self::$title = 'Firefox Extension'; + Views::view( 'extensions.firefox' ); + } + + public function opera() { + self::$title = 'Opera Extension'; + Views::view( 'extensions.opera' ); + } + + public function edge() { + self::$title = 'Edge Extension'; + Views::view( 'extensions.edge' ); + } + + public function brave() { + self::$title = 'Brave Extension'; + Views::view( 'extensions.brave' ); + } + + public function safari() { + self::$title = 'Safari Extension'; + Views::view( 'extensions.safari' ); + } +} diff --git a/app/controllers/home.php b/app/controllers/home.php index 71a7d67..fe432c9 100644 --- a/app/controllers/home.php +++ b/app/controllers/home.php @@ -86,17 +86,7 @@ class Home extends Controller { self::$title = 'Terms and Conditions - {SITENAME}'; self::$pageDescription = '{SITENAME} Terms and Conditions of use. Please use {SITENAME} safely.'; Components::set( 'TERMS', Views::simpleView( 'terms' ) ); - Views::raw( '
{TERMS}
' ); - } - - public function hashtag( $id = null ) { - self::$title = 'HashTag - {SITENAME}'; - self::$pageDescription = 'HashTags for {SITENAME}'; - if ( !App::$isLoggedIn ) { - return Issues::add( 'notice', 'You must be logged in to view this page.' ); - } - // this should look up comments and blog posts with the hashtag in them - Views::view( 'hashtags' ); + Views::raw( '
{TERMS}
' ); } public function about() { diff --git a/app/plugins/bookmarks/controllers/api/bookmarks.php b/app/plugins/bookmarks/controllers/api/bookmarks.php index 663b709..1903f78 100644 --- a/app/plugins/bookmarks/controllers/api/bookmarks.php +++ b/app/plugins/bookmarks/controllers/api/bookmarks.php @@ -41,8 +41,9 @@ class Bookmarks extends ApiController { $payload['notes'] ?? '', $payload['color'] ?? 'default', $payload['privacy'] ?? 'private', + 'external', + $user ); - if ( ! $result ) { $responseType = 'error'; $response = 'There was an error creating your folder.'; @@ -52,5 +53,4 @@ class Bookmarks extends ApiController { } Views::view( 'api.response', ['response' => json_encode( [ $responseType => $response ], true )]); } -} - +} \ No newline at end of file diff --git a/app/plugins/members/controllers/member.php b/app/plugins/members/controllers/member.php index 8a800d9..1d46a11 100644 --- a/app/plugins/members/controllers/member.php +++ b/app/plugins/members/controllers/member.php @@ -58,10 +58,9 @@ class Member extends Controller { $customer = self::$customers->findOrCreate( App::$activeUser->ID ); if ( empty( $customer ) ) { - Session::flash( 'error', 'no customer.' ); + Session::flash( 'error', 'You do not have any active payment methods. You can subscribe by going here' ); return Redirect::to( 'member/manage' ); } - $session = $stripe->billingPortal->sessions->create([ 'customer' => $customer, 'return_url' => Routes::getAddress() . 'member/manage', diff --git a/app/plugins/members/views/manage.html b/app/plugins/members/views/manage.html index 13ecb38..98c7663 100644 --- a/app/plugins/members/views/manage.html +++ b/app/plugins/members/views/manage.html @@ -1,35 +1,51 @@ -Memberships - - - - - - - - - - - - - - {LOOP} - - - - - - - - - - {/LOOP} - {ALT} - - - - {/ALT} - -
NamestatusPriceStartEnd
{productName}{status}{prettyPrice}{DTC=date}{current_period_start}{/DTC}{DTC=date}{current_period_end}{/DTC}
- No results to show. -
-Manage Payment Method \ No newline at end of file +
+
+
+ Memberships + + + + + + + + + + + + + + {LOOP} + + + + + + + + + + {/LOOP} + {ALT} + + + + {/ALT} + +
NameStatusPriceStartEnd
{productName}{status}{prettyPrice}{DTC=date}{current_period_start}{/DTC}{DTC=date}{current_period_end}{/DTC} + + + + + + + +
+ No results to show. +
+ + Manage Payment Method + +
+
+
diff --git a/app/views/extensions/brave.html b/app/views/extensions/brave.html new file mode 100644 index 0000000..b9624b3 --- /dev/null +++ b/app/views/extensions/brave.html @@ -0,0 +1,62 @@ +
+ +
+ +
Brave Extension
+

Your ultimate Brave addon to organize, store, and personalize your bookmarks effortlessly.

+
+ + +
+ +
+
+
+ +
Add & Manage Bookmarks
+

Quickly add bookmarks, organize them, and never lose track of your favorite websites.

+
+
+
+ + +
+
+
+ +
Create Folders
+

Group your bookmarks into customizable folders for better organization.

+
+
+
+ + +
+
+
+ +
Set Colors
+

Personalize your folders and bookmarks with color coding.

+
+
+
+ + +
+
+
+ +
Privacy Controls
+

Keep your bookmarks private or share them—your choice, your control.

+
+
+
+
+ + + +
diff --git a/app/views/extensions/chrome.html b/app/views/extensions/chrome.html new file mode 100644 index 0000000..fe32143 --- /dev/null +++ b/app/views/extensions/chrome.html @@ -0,0 +1,62 @@ +
+ +
+ +
Chrome Extension
+

Your ultimate Chrome addon to organize, store, and personalize your bookmarks effortlessly.

+
+ + +
+ +
+
+
+ +
Add & Manage Bookmarks
+

Quickly add bookmarks, organize them, and never lose track of your favorite websites.

+
+
+
+ + +
+
+
+ +
Create Folders
+

Group your bookmarks into customizable folders for better organization.

+
+
+
+ + +
+
+
+ +
Set Colors
+

Personalize your folders and bookmarks with color coding.

+
+
+
+ + +
+
+
+ +
Privacy Controls
+

Keep your bookmarks private or share them—your choice, your control.

+
+
+
+
+ + + +
diff --git a/app/views/extensions/edge.html b/app/views/extensions/edge.html new file mode 100644 index 0000000..2cf3cb3 --- /dev/null +++ b/app/views/extensions/edge.html @@ -0,0 +1,62 @@ +
+ +
+ +
Edge Extension
+

Your ultimate Edge addon to organize, store, and personalize your bookmarks effortlessly.

+
+ + +
+ +
+
+
+ +
Add & Manage Bookmarks
+

Quickly add bookmarks, organize them, and never lose track of your favorite websites.

+
+
+
+ + +
+
+
+ +
Create Folders
+

Group your bookmarks into customizable folders for better organization.

+
+
+
+ + +
+
+
+ +
Set Colors
+

Personalize your folders and bookmarks with color coding.

+
+
+
+ + +
+
+
+ +
Privacy Controls
+

Keep your bookmarks private or share them—your choice, your control.

+
+
+
+
+ + + +
diff --git a/app/views/extensions/firefox.html b/app/views/extensions/firefox.html new file mode 100644 index 0000000..b94097a --- /dev/null +++ b/app/views/extensions/firefox.html @@ -0,0 +1,62 @@ +
+ +
+ +
Firefox Extension
+

Your ultimate Firefox addon to organize, store, and personalize your bookmarks effortlessly.

+
+ + +
+ +
+
+
+ +
Add & Manage Bookmarks
+

Quickly add bookmarks, organize them, and never lose track of your favorite websites.

+
+
+
+ + +
+
+
+ +
Create Folders
+

Group your bookmarks into customizable folders for better organization.

+
+
+
+ + +
+
+
+ +
Set Colors
+

Personalize your folders and bookmarks with color coding.

+
+
+
+ + +
+
+
+ +
Privacy Controls
+

Keep your bookmarks private or share them—your choice, your control.

+
+
+
+
+ + + +
diff --git a/app/views/extensions/index.html b/app/views/extensions/index.html new file mode 100644 index 0000000..396f803 --- /dev/null +++ b/app/views/extensions/index.html @@ -0,0 +1,78 @@ +
+ +
+

Our Browser Extensions

+

Discover powerful tools to enhance your browsing experience, compatible with the browsers you love.

+
+ + +
+ +
+
+
+ +
Chrome Extension
+

Enhance your Chrome browser with advanced features and effortless organization.

+ Learn More +
+
+
+ + +
+
+
+ +
Firefox Extension
+

Seamlessly integrate with Firefox for a smoother browsing experience.

+ Learn More +
+
+
+ + +
+
+
+ +
Opera Extension
+

Boost your Opera browser with intuitive features and tools.

+ Learn More +
+
+
+ + +
+
+
+ +
Brave Extension
+

Enjoy secure and private browsing with Brave, enhanced by our extension.

+ Learn More +
+
+
+ + +
+
+
+ +
Edge Extension
+

Maximize productivity on Microsoft Edge with our extension.

+ Learn More +
+
+
+
+ + +
+

+ + Unfortunately, our extensions are not currently supported on Safari. +

+
+
diff --git a/app/views/extensions/opera.html b/app/views/extensions/opera.html new file mode 100644 index 0000000..8e893c6 --- /dev/null +++ b/app/views/extensions/opera.html @@ -0,0 +1,62 @@ +
+ +
+ +
Opera Extension
+

Your ultimate Opera addon to organize, store, and personalize your bookmarks effortlessly.

+
+ + +
+ +
+
+
+ +
Add & Manage Bookmarks
+

Quickly add bookmarks, organize them, and never lose track of your favorite websites.

+
+
+
+ + +
+
+
+ +
Create Folders
+

Group your bookmarks into customizable folders for better organization.

+
+
+
+ + +
+
+
+ +
Set Colors
+

Personalize your folders and bookmarks with color coding.

+
+
+
+ + +
+
+
+ +
Privacy Controls
+

Keep your bookmarks private or share them—your choice, your control.

+
+
+
+
+ + + +
diff --git a/app/views/extensions/safari.html b/app/views/extensions/safari.html new file mode 100644 index 0000000..b994aef --- /dev/null +++ b/app/views/extensions/safari.html @@ -0,0 +1,9 @@ +
+ +
+ +

AllTheBookmarks

+
Safari Extension
+

I'm just gonna level with ya here, I have no idea if this will work on safari, and I'm not going to buy an apple product to find out. If you would like to gift me a relatively modern mac computer, I will happily test and find out.

+
+
diff --git a/app/views/index.html b/app/views/index.html index 33435ef..5ce1b52 100644 --- a/app/views/index.html +++ b/app/views/index.html @@ -1,101 +1,350 @@ -
-
-
- -
-
- -
-
-
-
-

Welcome to The Tempus Project

-
-

The aim of The Tempus Project is to create an easy to use and implement CMS based - around the MVC style and build using php 5.6 and MySQL. Here are some of the features:

-
    -
  • Fully secured registration/login system
  • -
  • Automatic error handling
  • -
  • Built in debugging tools
  • -
  • Testing implements to help you expand it further
  • -
  • Customizable logging to ensure you are always up to date on whats going on
  • -
  • Simple administration panel
  • -
  • Bug reports and feedback forms included!
  • -
  • Drag and drop simple to install
  • -
-

DISCLAIMER: as of January 1, 2023 this code is not production ready! Please use at your own risk! That being said, I am always trying to improve this system. If you have any suggestions or need to report a bug, you can do so on my GitHub.

-
-
-
-
+ +
+

AllTheBookmarks - In one place

+
+

Quickly add and manage an internet worth of bookmarks with AllTheBookmarks, my personal favorite app for keeping track of dead memes long after they outlive their hilarity.

+ +
+
+
+ Example image +
+
-https://www.bookmarkninja.com/ -simple robust versatile -sleek -clean -intuitive -modern +
-A cleaner app for managing bookmarks to cut down on the clutter + +
+

All the stuff you need, none of the stuff you don't!

+
+
+

I just wanted something cross-browser for storing bookmarks.

+

KISS - Aside from making the interface nicer, this app is all I needed.

+
+
+
+
+ +
+

Add

+

Whether its through the web-interface or supported browser extensions, you can add bookmarks from (almost) anywhere.

+
+
+
+ +
+

Manage

+

Create folders, tag links, keep notes and create custom dashboards.

+
+
+
+ +
+

Share

+

All links are kept private by default but if you need to share with a friend or co-worker you can change this setting individually or for entire folders.

+
+
+
+ +
+

Import / Export

+

Sometimes you just want to dump everything out and see what you have, our import and export tools allow you to easily etch-a-sketch your bookmarks.

+
+
+
+
-Available accross all devices and systems. +
-regardless of windows or mac, android or apple, wwe have you covered + +
+
+
+ Bootstrap Themes +
+
+

It can be difficult to keep track of... all of the internet

+

With a million and one devices from all three companies, it can be a lot to manage. From work links, to Instagram stories, ticktocks for cooking, to Pinterest for Halloween; we consume a thousand different sources in a hundred different ways. Keep it all centralized with a new forth company!

+ +
+
+
+ +
+ + +
+
+

Don't be afraid of the dark.

+
+

Not everyone is a night owl or dark dweller, and those people are... fine. But for the rest of us, dark mode rules them all. Dark mode is available site-wide, free of charge! (Its also included in all products!)

+
+ +
+
+
+
+ +
+ + +
+

Never Browse without it

+
+
+
+ +
+
+

Chrome Extension

+

Quickly add new bookmarks to your "2017 Taxes" folder with ease! Keep them private or share it with the other haberdashers from any page.

+ + Download Now + +
+
+
+
+ +
+
+

Firefox Extension

+

Funny enough, Firefox is basically just chrome now.

+ + Download Now + +
+
+
+
+ +
+
+

Opera Extension

+

This is also Chrome.

+ + Download Now + +
+
+
+ +

and are Chrome too.

+
+ +
+ + +
+

Pricing

+

The pricing is very straight-forward: free, monthly, yearly.

+ +
+ +
+ + +
+
+
+

Clean, Simple, Direct

+

An intuitive app with a sleep, modern design is the goal. There is no need for hundreds of bells in whistles, no bluetooth, no AII to tell you what your best bookmark is, just a simple app to make life easier.

+ +
+
+ +
+
+
+ +
+ + + + +
+ + +
+

Compare plans

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FreeProEnterprise
Add and Manage Bookmarks
Extensions for all major browsers
Access from any device
Import/Export Features
Customizable Dashboards / Pages
Request/Influence Development
Early Access
Cheaper
+
+ +
+ + +
+
+
+
+
+

Free

+
+
+

$0/mo

+
    +
  • Add / Manage your bookmarks
  • +
  • Extensions for all major browsers
  • +
  • Access from any device
  • +
+ + Sign-Up for Free + +
+
+
+
+
+
+

Monthly

+
+
+

$4.99/month

+
    +
  • Import/Export Features
  • +
  • Integration with TempusTools App (WIP)
  • +
  • Customizable Dashboards / Pages
  • +
  • Direct control of Feature Development
  • +
  • Early Access to new features
  • +
+ +
+
+
+
+
+
+

Yearly

+
+
+

$19.99/year

+
    +
  • Its cheaper if you like the product
  • +
+ +
+
+
+
+
-bring all your bookmarks at once, simply export from your current browser and use our import tool - -stop straining your eyes! Not only can you use our dark mode feature, but we have several styles to choose from to customize your experience - - -no mobile app necessary - - -privacy is key! but sharing is ok -by defaults everything is set to private, but usiing the web interface will alow you to share single links or entire lists/folders + +
\ No newline at end of file diff --git a/bin/tempus_project.php b/bin/tempus_project.php index 45ab2bb..81c5813 100644 --- a/bin/tempus_project.php +++ b/bin/tempus_project.php @@ -145,6 +145,11 @@ class TheTempusProject extends Bedrock { 'url' => '{ROOT_URL}admin/index', 'filter' => 'admin', ], + [ + 'text' => 'Extensions', + 'url' => '{ROOT_URL}extensions/index', + // 'filter' => 'notloggedin', + ], ]; public $filters = [ [