diff --git a/app/controllers/api/auth.php b/app/controllers/api/auth.php index a0de860..b5dbc57 100644 --- a/app/controllers/api/auth.php +++ b/app/controllers/api/auth.php @@ -24,6 +24,7 @@ class Auth extends ApiController { self::$tokens = new Token; } +/** public function refresh() { $token = self::$tokens->refresh( self::$authToken->ID ); if ( empty( $token ) ) { @@ -35,4 +36,5 @@ class Auth extends ApiController { } Views::view( 'api.response', ['response' => json_encode( [ $responseType => $response ], true )]); } + */ } \ No newline at end of file diff --git a/app/controllers/api/login.php b/app/controllers/api/login.php index 74536eb..31b79e5 100644 --- a/app/controllers/api/login.php +++ b/app/controllers/api/login.php @@ -31,6 +31,7 @@ class Login extends ApiController { Template::addHeader( 'Content-Type: application/json; charset=utf-8' ); } +/** public function index() { if ( ! Forms::check( 'apiLogin' ) ) { $responseType = 'error'; @@ -47,4 +48,5 @@ class Login extends ApiController { $token = self::$tokens->findOrCreateUserToken( $user->ID, true ); return Views::view( 'api.response', ['response' => json_encode( [ $responseType => $token ], true )]); } + */ } \ No newline at end of file diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 44168f9..8f06841 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -23,6 +23,13 @@ class Users extends ApiController { self::$user = new User; } + /** + * This is actually just for testing. It can provide attack information in the way of user count if not disabled. + * + * @param [type] $id + * @return void + */ +/** public function find( $id = null ) { $user = self::$user->get( $id ); if ( ! $user ) { @@ -34,4 +41,5 @@ class Users extends ApiController { } Views::view( 'api.response', ['response' => json_encode( [ $responseType => $response ], true )]); } + */ } \ No newline at end of file diff --git a/app/controllers/bedrock.php b/app/controllers/bedrock.php new file mode 100644 index 0000000..ca142af --- /dev/null +++ b/app/controllers/bedrock.php @@ -0,0 +1,47 @@ + + * @link https://TheTempusProject.com + * @license https://opensource.org/licenses/MIT [MIT LICENSE] + */ +namespace TheTempusProject\Controllers; + +use TheTempusProject\Hermes\Functions\Redirect; +use TheTempusProject\Bedrock\Functions\Session; +use TheTempusProject\Bedrock\Functions\Check; +use TheTempusProject\Bedrock\Functions\Input; +use TheTempusProject\Hermes\Functions\Route as Routes; +use TheTempusProject\Houdini\Classes\Issues; +use TheTempusProject\Houdini\Classes\Views; +use TheTempusProject\Houdini\Classes\Components; +use TheTempusProject\Houdini\Classes\Template; +use TheTempusProject\Classes\Controller; +use TheTempusProject\Classes\Forms; +use TheTempusProject\TheTempusProject as App; + +class Bedrock extends Controller { + public function index() { + self::$title = '{SITENAME} - Bedrock'; + self::$pageDescription = 'Bedrock is a dependency of {SITENAME} that provides many components used to manipulate database data and many helper functions vital for running the entire application.'; + Views::view( 'deps.bedrock' ); + } + + public function packagist() { + Redirect::external( 'https://packagist.org/packages/thetempusproject/bedrock' ); + } + + public function git() { + Redirect::external( 'https://git.thetempusproject.com/the-tempus-project/bedrock' ); + } + + public function changes() { + self::$title = '{SITENAME} - Bedrock Changes'; + self::$pageDescription = 'Bedrock is a dependency of {SITENAME} and this pages lists the most recent changes with some details on those changes.'; + Views::view( 'changes.bedrock' ); + } +} diff --git a/app/controllers/canary.php b/app/controllers/canary.php new file mode 100644 index 0000000..e93700e --- /dev/null +++ b/app/controllers/canary.php @@ -0,0 +1,47 @@ + + * @link https://TheTempusProject.com + * @license https://opensource.org/licenses/MIT [MIT LICENSE] + */ +namespace TheTempusProject\Controllers; + +use TheTempusProject\Hermes\Functions\Redirect; +use TheTempusProject\Bedrock\Functions\Session; +use TheTempusProject\Bedrock\Functions\Check; +use TheTempusProject\Bedrock\Functions\Input; +use TheTempusProject\Hermes\Functions\Route as Routes; +use TheTempusProject\Houdini\Classes\Issues; +use TheTempusProject\Houdini\Classes\Views; +use TheTempusProject\Houdini\Classes\Components; +use TheTempusProject\Houdini\Classes\Template; +use TheTempusProject\Classes\Controller; +use TheTempusProject\Classes\Forms; +use TheTempusProject\TheTempusProject as App; + +class Canary extends Controller { + public function index() { + self::$title = '{SITENAME} - Canary'; + self::$pageDescription = 'Canary is a dependency of {SITENAME} that both records and reports logs from various PHP applications.'; + Views::view( 'deps.canary' ); + } + + public function packagist() { + Redirect::external( 'https://packagist.org/packages/thetempusproject/canary' ); + } + + public function git() { + Redirect::external( 'https://git.thetempusproject.com/the-tempus-project/canary' ); + } + + public function changes() { + self::$title = '{SITENAME} - Canary Changes'; + self::$pageDescription = 'Canary is a dependency of {SITENAME} and this pages lists the most recent changes with some details on those changes.'; + Views::view( 'changes.canary' ); + } +} diff --git a/app/controllers/hermes.php b/app/controllers/hermes.php new file mode 100644 index 0000000..bea348d --- /dev/null +++ b/app/controllers/hermes.php @@ -0,0 +1,47 @@ + + * @link https://TheTempusProject.com + * @license https://opensource.org/licenses/MIT [MIT LICENSE] + */ +namespace TheTempusProject\Controllers; + +use TheTempusProject\Hermes\Functions\Redirect; +use TheTempusProject\Bedrock\Functions\Session; +use TheTempusProject\Bedrock\Functions\Check; +use TheTempusProject\Bedrock\Functions\Input; +use TheTempusProject\Hermes\Functions\Route as Routes; +use TheTempusProject\Houdini\Classes\Issues; +use TheTempusProject\Houdini\Classes\Views; +use TheTempusProject\Houdini\Classes\Components; +use TheTempusProject\Houdini\Classes\Template; +use TheTempusProject\Classes\Controller; +use TheTempusProject\Classes\Forms; +use TheTempusProject\TheTempusProject as App; + +class Hermes extends Controller { + public function index() { + self::$title = '{SITENAME} - Hermes'; + self::$pageDescription = 'Hermes is a dependency of {SITENAME} that provides many common helper functions for navigating url components and file systems; designed to work seamlessly regardless of architecture.'; + Views::view( 'deps.hermes' ); + } + + public function packagist() { + Redirect::external( 'https://packagist.org/packages/thetempusproject/hermes' ); + } + + public function git() { + Redirect::external( 'https://git.thetempusproject.com/the-tempus-project/hermes' ); + } + + public function changes() { + self::$title = '{SITENAME} - Hermes Changes'; + self::$pageDescription = 'Hermes is a dependency of {SITENAME} and this pages lists the most recent changes with some details on those changes.'; + Views::view( 'changes.hermes' ); + } +} diff --git a/app/controllers/home.php b/app/controllers/home.php index fe71cbc..7629389 100644 --- a/app/controllers/home.php +++ b/app/controllers/home.php @@ -28,7 +28,7 @@ class Home extends Controller { public function index() { self::$title = '{SITENAME}'; self::$pageDescription = '{SITENAME} is here to provide you a better, faster, and easier - way to create and manage your own web applications.'; - Views::view( 'index' ); + Views::view( 'landing' ); } public function login() { @@ -113,4 +113,16 @@ class Home extends Controller { self::$pageDescription = 'Many times, we aren\'t the first to ask why or how something works. Here you will find a list of {SITENAME} commonly asked questions and our best answers.' ; Views::view( 'faq' ); } + + public function libraries() { + self::$title = 'Libraries - {SITENAME}'; + self::$pageDescription = '{SITENAME} depends on several very important libraries, some of which are developed exclusively to support the project. Here you can find a list with more information.' ; + Views::view( 'deps.index' ); + } + + public function getstarted() { + self::$title = 'Get Started - {SITENAME}'; + self::$pageDescription = '{SITENAME} is a great tool to bring your ideas to reality. On this page, you can find out how to get started today.' ; + Views::view( 'start' ); + } } diff --git a/app/controllers/houdini.php b/app/controllers/houdini.php new file mode 100644 index 0000000..c2dd3ba --- /dev/null +++ b/app/controllers/houdini.php @@ -0,0 +1,47 @@ + + * @link https://TheTempusProject.com + * @license https://opensource.org/licenses/MIT [MIT LICENSE] + */ +namespace TheTempusProject\Controllers; + +use TheTempusProject\Hermes\Functions\Redirect; +use TheTempusProject\Bedrock\Functions\Session; +use TheTempusProject\Bedrock\Functions\Check; +use TheTempusProject\Bedrock\Functions\Input; +use TheTempusProject\Hermes\Functions\Route as Routes; +use TheTempusProject\Houdini\Classes\Issues; +use TheTempusProject\Houdini\Classes\Views; +use TheTempusProject\Houdini\Classes\Components; +use TheTempusProject\Houdini\Classes\Template; +use TheTempusProject\Classes\Controller; +use TheTempusProject\Classes\Forms; +use TheTempusProject\TheTempusProject as App; + +class Houdini extends Controller { + public function index() { + self::$title = '{SITENAME} - Houdini'; + self::$pageDescription = 'Houdini is a dependency of {SITENAME} that allows for the creation and manipulation of objects used in html page creation.'; + Views::view( 'deps.houdini' ); + } + + public function packagist() { + Redirect::external( 'https://packagist.org/packages/thetempusproject/houdini' ); + } + + public function git() { + Redirect::external( 'https://git.thetempusproject.com/the-tempus-project/houdini' ); + } + + public function changes() { + self::$title = '{SITENAME} - Houdini Changes'; + self::$pageDescription = 'Houdini is a dependency of {SITENAME} and this pages lists the most recent changes with some details on those changes.'; + Views::view( 'changes.houdini' ); + } +} diff --git a/app/views/about.html b/app/views/about.html index 9604f08..e7df8d8 100644 --- a/app/views/about.html +++ b/app/views/about.html @@ -1,7 +1,14 @@
- {SITENAME} was built out of a need to create and manage my own web applications. + {SITENAME} was built out of a need to create and manage web applications. + At the time, I had used wordpress but I didn't want or even need any of the blog functionality. + No matter what plugins you add, no matter how you customize layout, wordpress is still a blog at its core. + There is nothing inherently wrong with a blog, but when you start from a blog, everything is a post, or a plugin. + Under the hood, wordpress is going to run how wordpress wants, as a web interface for accessing text records. +
++ The Tempus Project was always intended to be a web application, not a blog.
Right now, this entire system was built and managed by myself. As stated, I have used my own version of this for years, but translating it to a publicly available product is not a 1-to-1 job. There may be bugs or issues encountered while you use the product. I can't guarantee a fix for every need in every case immediately, but I do actively keep track of bugs and work hard to ensure everyone has a great experience using the app. diff --git a/app/views/changes/bedrock.html b/app/views/changes/bedrock.html new file mode 100644 index 0000000..8e1df1c --- /dev/null +++ b/app/views/changes/bedrock.html @@ -0,0 +1,9 @@ +
+ Here you can find a simple list of the important changes made to the Bedrock library. +
++ Not all changes may be addressed individually on this page. +
++ Here you can find a simple list of the important changes made to the Canary library. +
++ Not all changes may be addressed individually on this page. +
++ Here you can find a simple list of the important changes made to the Hermes library. +
++ Not all changes may be addressed individually on this page. +
++ Here you can find a simple list of the important changes made to the Houdini library. +
++ Not all changes may be addressed individually on this page. +
++ Bedrock, as the name may suggest, is the core functionality the project is built on. + From Basic text checks to the core functionality behind models and controllers, bedrock handles it all. +
++ For a list of recent changes, please check here. +
++ Canary is a library that allows {SITENAME} to add logs during execution. + The resulting logs can be printed to the browser console in real-time, saved to a log file, or even used on-page for debugging. +
++ For a list of recent changes, please check here. +
++ Hermes is a simple library that provides a small set of commonly used helper functions. + These functions primarily help with navigating the url or file systems in a consistent way across several libraries and projects. +
++ For a list of recent changes, please check here. +
++ Houdini is where the front-end magic happens and it serves as the primary front-end html generator. + It handles the storage and applications of frontend components, all the views, templates, and several other critical features of the front-end. +
++ For a list of recent changes, please check here. +
++ {SITENAME} uses a number of libraries developed in conjunction with the main project. Here you can find a list of these libraries with more information on each. +
++ {SITENAME} allows you to quickly develop, design, and customize responsive mobile-first web applications. +
++ Utilizing our in-house libraries, {SITENAME} provides a very basic PHP web application utilizing the MVC (Model View Controller) pattern, paired with Bootstrap for a robust front-end experience. {SITENAME} can be deployed on most server architecture in seconds and can be installed and customized within minutes. Paired with Bootstrap, the world's most popular front-end open source toolkit, you have a great platform to build just about anything. +
+From new user registrations to forgotten password recovery and everything in-between, the included authentication and authorization controls can handle all your needs and include groups with highly customizable permissions systems.
++ Everything from your sitename and timezone to notifications and emails are a breeze with the included Admin panel. Out of the box you will have direct control over most of your application and you can easily expand or add new controls as you need. +
++ One of the best features of {SITENAME} is the plugin functionality. Much of the system has been modeled to work as self-contained applications that work together. Many of the features available here are plugins aty their core. +
+Whether its the companies transparency or your own need to share, our blog plugin makes it simple.
+An unfortunate reality iis that every application has bugs, never leave your users without the ability to report them to you.
+Allowing users the opportunity to share feedback is crucial. Our comments plugin not only integrates with the blog, but many other plugins to enable users to comment on any content you want.
+A contact form is another simple but essential tool for your business or website.
+Whether you're looking for a new gig or just want an easy way for others to see your work, our resume plugin might be the key.
+Building your list should always be a part of your application and services and it made as simple as can be with this plugin.
+A light-weight and simple plugin that allows you to keep a running list of works in progress to share with site visitors..
+Our membership plugin integrates with Stripe to allow incredibly simple membership setup and can be easily expanded to sell any of your products.
+everything looks great.
+everything is just a bit better.
++ {SITENAME} has been open source for many years now. The hopes and intentions for it were always to give others a leg-up to get started building web-apps like i wish i had as a kid. + There were so many tutorials and ideas, expansions and plans for the project. + Unfortunately no person is given unlimited time to accomplish their dreams and over the years the idea for a huge repository for learning and education has taken a back seat. +
++ At this time, the best recommendation available is to contact us for more information. + The site here is actively maintained so feel free to utilize any of our available resources for contact. + In addition to the site here, you can contact the lead developer (me) directly through JoeyKimsey.com. +
++ Right now, this entire system was built and managed by myself. As stated, I have used my own version of this for years, but translating it to a publicly available product is not a 1-to-1 job. There may be bugs or issues encountered while you use the product. I can't guarantee a fix for every need in every case immediately, but I do actively keep track of bugs and work hard to ensure everyone has a great experience using the app. +
++ If you encounter any bugs, feel free to report them here. Likewise, there are forms for feedback, reviews, suggestions, and a general contact form. Thanks for taking the time to check out the product! +
+