From 825d422d93dc59822116b22d5ad71e167728366c Mon Sep 17 00:00:00 2001 From: Joey Kimsey Date: Thu, 6 Feb 2025 03:18:45 -0500 Subject: [PATCH] wip --- .gitignore | 3 +- .gitlab-ci.yml | 74 --- .php-cs-fixer.php | 127 ----- CODE_OF_CONDUCT.md | 47 -- CONTRIBUTING.md | 135 ------ LICENSE | 25 - README.md | 131 ----- app/config/constants.php | 4 +- app/controllers/downloads.php | 64 +++ app/controllers/home.php | 36 +- app/js/main.js | 19 +- app/plugins/blog/templates/blog.tpl | 4 +- .../bugreport/controllers/admin/bugreport.php | 63 --- .../bugreport/controllers/bugreport.php | 52 -- app/plugins/bugreport/forms.php | 51 -- app/plugins/bugreport/models/bugreport.php | 100 ---- app/plugins/bugreport/plugin.php | 65 --- app/plugins/bugreport/views/admin/list.html | 45 -- app/plugins/bugreport/views/admin/view.html | 69 --- app/plugins/bugreport/views/create.html | 61 --- .../comments/controllers/admin/comments.php | 83 ---- .../comments/controllers/moderator.php | 36 -- app/plugins/comments/css/comments.css | 6 - app/plugins/comments/forms.php | 69 --- app/plugins/comments/models/comments.php | 184 ------- app/plugins/comments/plugin.php | 154 ------ .../comments/views/admin/dashboard.html | 28 -- app/plugins/comments/views/admin/edit.html | 25 - app/plugins/comments/views/admin/list.html | 45 -- app/plugins/comments/views/control.html | 8 - app/plugins/comments/views/create.html | 14 - app/plugins/comments/views/list.html | 39 -- app/plugins/comments/views/moderator.html | 7 - app/plugins/messages/controllers/messages.php | 121 ----- app/plugins/messages/models/message.php | 454 ------------------ app/plugins/messages/plugin.php | 57 --- app/plugins/messages/views/badge.html | 1 - app/plugins/messages/views/create.html | 73 --- app/plugins/messages/views/inbox.html | 40 -- app/plugins/messages/views/index.html | 10 - app/plugins/messages/views/message.html | 53 -- .../views/nav/recentMessagesDropdown.html | 46 -- app/plugins/messages/views/outbox.html | 37 -- app/plugins/messages/views/reply.html | 18 - app/plugins/messages/views/unreadBadge.html | 1 - .../controllers/admin/notifications.php | 85 ---- .../controllers/notifications.php | 79 --- .../notifications/models/notification.php | 146 ------ app/plugins/notifications/plugin.php | 64 --- .../notifications/views/admin/send.html | 61 --- app/plugins/notifications/views/badge.html | 1 - app/plugins/notifications/views/list.html | 41 -- .../nav/recentNotificationsDropdown.html | 41 -- .../notifications/views/unseenBadge.html | 1 - .../portfolio/controllers/admin/portfolio.php | 101 ++++ .../portfolio/controllers/portfolio.php | 36 ++ app/plugins/portfolio/forms.php | 79 +++ app/plugins/portfolio/models/links.php | 71 +++ app/plugins/portfolio/plugin.php | 44 ++ app/plugins/portfolio/views/admin/create.html | 19 + app/plugins/portfolio/views/admin/edit.html | 19 + app/plugins/portfolio/views/admin/list.html | 44 ++ app/plugins/portfolio/views/admin/view.html | 16 + app/plugins/portfolio/views/portfolio.html | 30 ++ .../resume/controllers/admin/resume.php | 102 ++++ app/plugins/resume/controllers/resume.php | 67 +++ app/plugins/resume/css/timeline.css | 131 +++++ app/plugins/resume/forms.php | 87 ++++ app/plugins/resume/js/resume.js | 14 + app/plugins/resume/models/positions.php | 94 ++++ app/plugins/resume/plugin.php | 44 ++ app/plugins/resume/views/admin/create.html | 22 + app/plugins/resume/views/admin/edit.html | 22 + app/plugins/resume/views/admin/list.html | 46 ++ app/plugins/resume/views/admin/view.html | 8 + app/plugins/resume/views/download.html | 13 + app/plugins/resume/views/nav.html | 10 + app/plugins/resume/views/resume.html | 36 ++ app/plugins/resume/views/timeline.html | 35 ++ .../controllers/admin/subscriptions.php | 65 --- .../subscribe/controllers/subscribe.php | 79 --- app/plugins/subscribe/forms.php | 73 --- app/plugins/subscribe/models/subscribe.php | 97 ---- app/plugins/subscribe/plugin.php | 47 -- app/plugins/subscribe/views/admin/add.html | 24 - app/plugins/subscribe/views/admin/list.html | 40 -- app/plugins/subscribe/views/footer/right.html | 11 - app/plugins/subscribe/views/subscribe.html | 5 - app/plugins/subscribe/views/unsubscribe.html | 5 - app/plugins/updates/controllers/updates.php | 85 ++++ .../{notifications => updates}/forms.php | 23 +- app/plugins/updates/models/update.php | 87 ++++ app/plugins/updates/plugin.php | 30 ++ app/plugins/updates/views/create.html | 10 + app/plugins/updates/views/dash.html | 2 + app/plugins/updates/views/list.html | 26 + app/plugins/wip/controllers/admin/wip.php | 100 ++++ app/plugins/wip/controllers/wip.php | 36 ++ app/plugins/wip/forms.php | 79 +++ app/plugins/wip/models/projects.php | 100 ++++ app/plugins/wip/plugin.php | 44 ++ app/plugins/wip/views/admin/create.html | 48 ++ app/plugins/wip/views/admin/edit.html | 48 ++ app/plugins/wip/views/admin/list.html | 44 ++ app/plugins/wip/views/admin/view.html | 46 ++ app/plugins/wip/views/wip.html | 29 ++ app/resources/config/config.example.json | 179 ------- app/resources/config/install.example.json | 162 ------- app/resources/config/permissions.example.json | 34 -- app/resources/config/prefrences.example.json | 78 --- app/resources/controllers/example.php | 54 --- app/resources/nginx-main.conf | 44 -- app/resources/nodels/example.php | 20 - app/resources/plugin.php | 99 ---- app/resources/templates/example.tpl | 80 --- app/resources/templates/exanple.inc.php | 34 -- app/resources/views/complex.html | 3 - app/resources/views/example.html | 141 ------ app/resources/views/simple.html | 1 - app/templates/admin/admin.tpl | 4 +- app/templates/default/default.inc.php | 4 +- app/templates/default/default.tpl | 4 +- app/views/about.html | 61 ++- app/views/footer/container.html | 38 +- app/views/footer/copy.html | 2 +- app/views/footer/right.html | 1 - app/views/footer/share.html | 5 +- app/views/footer/social.html | 10 +- app/views/hire.html | 61 +++ app/views/index.html | 255 +++++++--- app/views/install/complete.html | 32 -- app/views/install/configure.html | 44 -- app/views/install/models.html | 37 -- app/views/install/nav.html | 12 - app/views/install/plugins.html | 45 -- app/views/install/resources.html | 16 - app/views/install/routing.html | 18 - app/views/install/terms.html | 16 - app/views/install/user.html | 35 -- app/views/install/verify.html | 23 - app/views/install/welcome.html | 17 - bin/autoload.php | 4 +- bin/tempus_project.php | 36 +- composer.json | 2 +- composer.lock | 8 +- docker-compose.yml | 57 --- docker/.env.example | 5 - docker/ttp-apache/Dockerfile | 13 - docker/ttp-apache/README.md | 19 - docker/ttp-nginx/Dockerfile | 29 -- docker/ttp-nginx/README.md | 19 - docker/ttp-nginx/cors.conf | 27 -- docker/ttp-nginx/nginx.conf | 90 ---- docker/ttp-nginx/supervisord.conf | 8 - downloads/JoeyKimsey-resume-2025.docx | Bin 0 -> 16389 bytes downloads/JoeyKimsey-resume-2025.md | 79 +++ downloads/JoeyKimsey-resume-2025.pdf | Bin 0 -> 281491 bytes downloads/JoeyKimsey-resume-2025.txt | 85 ++++ gitlab/auto_merge_mr.sh | 76 --- gitlab/update_PHP_deps.yml | 46 -- images/AAA_M_Additions.png | Bin 0 -> 2383566 bytes images/atb.jpg | Bin 0 -> 48065 bytes images/ba.png | Bin 0 -> 51738 bytes images/bedrock.jpg | Bin 0 -> 7995 bytes images/canary.jpg | Bin 0 -> 8435 bytes images/cleaned-up.jpg | Bin 0 -> 1760269 bytes images/curseforge.png | Bin 0 -> 2607 bytes images/dockerhub.png | Bin 0 -> 4162 bytes images/emeals.png | Bin 0 -> 5217 bytes images/favicon.ico | Bin 1150 -> 15406 bytes images/github-2.png | Bin 0 -> 5617 bytes images/gitlab.png | Bin 0 -> 7456 bytes images/hermes.jpg | Bin 0 -> 12058 bytes images/houdini.jpg | Bin 0 -> 10581 bytes images/icon-maskWhite.png | Bin 43242 -> 0 bytes images/ione.png | Bin 0 -> 22451 bytes images/logo.png | Bin 31307 -> 11608 bytes images/logoLarge.png | Bin 0 -> 27405 bytes images/logoScaled.png | Bin 0 -> 11564 bytes images/on-call.jpg | Bin 0 -> 484900 bytes images/packagist.png | Bin 0 -> 12636 bytes images/springbot.png | Bin 0 -> 33143 bytes images/still-working.jpg | Bin 0 -> 167426 bytes images/tte.png | Bin 0 -> 1102777 bytes images/{logoLarge.jpg => ttp.jpg} | Bin images/vacation.jpg | Bin 0 -> 2141404 bytes images/voting.jpg | Bin 0 -> 3156181 bytes install.php | 417 ---------------- vendor/.gitignore | 2 - 189 files changed, 2628 insertions(+), 5839 deletions(-) delete mode 100644 .gitlab-ci.yml delete mode 100644 .php-cs-fixer.php delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 LICENSE delete mode 100644 README.md create mode 100644 app/controllers/downloads.php delete mode 100644 app/plugins/bugreport/controllers/admin/bugreport.php delete mode 100644 app/plugins/bugreport/controllers/bugreport.php delete mode 100644 app/plugins/bugreport/forms.php delete mode 100644 app/plugins/bugreport/models/bugreport.php delete mode 100644 app/plugins/bugreport/plugin.php delete mode 100644 app/plugins/bugreport/views/admin/list.html delete mode 100644 app/plugins/bugreport/views/admin/view.html delete mode 100644 app/plugins/bugreport/views/create.html delete mode 100644 app/plugins/comments/controllers/admin/comments.php delete mode 100644 app/plugins/comments/controllers/moderator.php delete mode 100644 app/plugins/comments/css/comments.css delete mode 100644 app/plugins/comments/forms.php delete mode 100644 app/plugins/comments/models/comments.php delete mode 100644 app/plugins/comments/plugin.php delete mode 100644 app/plugins/comments/views/admin/dashboard.html delete mode 100644 app/plugins/comments/views/admin/edit.html delete mode 100644 app/plugins/comments/views/admin/list.html delete mode 100644 app/plugins/comments/views/control.html delete mode 100644 app/plugins/comments/views/create.html delete mode 100644 app/plugins/comments/views/list.html delete mode 100644 app/plugins/comments/views/moderator.html delete mode 100644 app/plugins/messages/controllers/messages.php delete mode 100644 app/plugins/messages/models/message.php delete mode 100644 app/plugins/messages/plugin.php delete mode 100644 app/plugins/messages/views/badge.html delete mode 100644 app/plugins/messages/views/create.html delete mode 100644 app/plugins/messages/views/inbox.html delete mode 100644 app/plugins/messages/views/index.html delete mode 100644 app/plugins/messages/views/message.html delete mode 100644 app/plugins/messages/views/nav/recentMessagesDropdown.html delete mode 100644 app/plugins/messages/views/outbox.html delete mode 100644 app/plugins/messages/views/reply.html delete mode 100644 app/plugins/messages/views/unreadBadge.html delete mode 100644 app/plugins/notifications/controllers/admin/notifications.php delete mode 100644 app/plugins/notifications/controllers/notifications.php delete mode 100644 app/plugins/notifications/models/notification.php delete mode 100644 app/plugins/notifications/plugin.php delete mode 100644 app/plugins/notifications/views/admin/send.html delete mode 100644 app/plugins/notifications/views/badge.html delete mode 100644 app/plugins/notifications/views/list.html delete mode 100644 app/plugins/notifications/views/nav/recentNotificationsDropdown.html delete mode 100644 app/plugins/notifications/views/unseenBadge.html create mode 100644 app/plugins/portfolio/controllers/admin/portfolio.php create mode 100644 app/plugins/portfolio/controllers/portfolio.php create mode 100644 app/plugins/portfolio/forms.php create mode 100644 app/plugins/portfolio/models/links.php create mode 100644 app/plugins/portfolio/plugin.php create mode 100644 app/plugins/portfolio/views/admin/create.html create mode 100644 app/plugins/portfolio/views/admin/edit.html create mode 100644 app/plugins/portfolio/views/admin/list.html create mode 100644 app/plugins/portfolio/views/admin/view.html create mode 100644 app/plugins/portfolio/views/portfolio.html create mode 100644 app/plugins/resume/controllers/admin/resume.php create mode 100644 app/plugins/resume/controllers/resume.php create mode 100644 app/plugins/resume/css/timeline.css create mode 100644 app/plugins/resume/forms.php create mode 100644 app/plugins/resume/js/resume.js create mode 100644 app/plugins/resume/models/positions.php create mode 100644 app/plugins/resume/plugin.php create mode 100644 app/plugins/resume/views/admin/create.html create mode 100644 app/plugins/resume/views/admin/edit.html create mode 100644 app/plugins/resume/views/admin/list.html create mode 100644 app/plugins/resume/views/admin/view.html create mode 100644 app/plugins/resume/views/download.html create mode 100644 app/plugins/resume/views/nav.html create mode 100644 app/plugins/resume/views/resume.html create mode 100644 app/plugins/resume/views/timeline.html delete mode 100644 app/plugins/subscribe/controllers/admin/subscriptions.php delete mode 100644 app/plugins/subscribe/controllers/subscribe.php delete mode 100644 app/plugins/subscribe/forms.php delete mode 100644 app/plugins/subscribe/models/subscribe.php delete mode 100644 app/plugins/subscribe/plugin.php delete mode 100644 app/plugins/subscribe/views/admin/add.html delete mode 100644 app/plugins/subscribe/views/admin/list.html delete mode 100644 app/plugins/subscribe/views/footer/right.html delete mode 100644 app/plugins/subscribe/views/subscribe.html delete mode 100644 app/plugins/subscribe/views/unsubscribe.html create mode 100644 app/plugins/updates/controllers/updates.php rename app/plugins/{notifications => updates}/forms.php (51%) create mode 100644 app/plugins/updates/models/update.php create mode 100644 app/plugins/updates/plugin.php create mode 100644 app/plugins/updates/views/create.html create mode 100644 app/plugins/updates/views/dash.html create mode 100644 app/plugins/updates/views/list.html create mode 100644 app/plugins/wip/controllers/admin/wip.php create mode 100644 app/plugins/wip/controllers/wip.php create mode 100644 app/plugins/wip/forms.php create mode 100644 app/plugins/wip/models/projects.php create mode 100644 app/plugins/wip/plugin.php create mode 100644 app/plugins/wip/views/admin/create.html create mode 100644 app/plugins/wip/views/admin/edit.html create mode 100644 app/plugins/wip/views/admin/list.html create mode 100644 app/plugins/wip/views/admin/view.html create mode 100644 app/plugins/wip/views/wip.html delete mode 100644 app/resources/config/config.example.json delete mode 100644 app/resources/config/install.example.json delete mode 100644 app/resources/config/permissions.example.json delete mode 100644 app/resources/config/prefrences.example.json delete mode 100644 app/resources/controllers/example.php delete mode 100644 app/resources/nginx-main.conf delete mode 100644 app/resources/nodels/example.php delete mode 100644 app/resources/plugin.php delete mode 100644 app/resources/templates/example.tpl delete mode 100644 app/resources/templates/exanple.inc.php delete mode 100644 app/resources/views/complex.html delete mode 100644 app/resources/views/example.html delete mode 100644 app/resources/views/simple.html create mode 100644 app/views/hire.html delete mode 100644 app/views/install/complete.html delete mode 100644 app/views/install/configure.html delete mode 100644 app/views/install/models.html delete mode 100644 app/views/install/nav.html delete mode 100644 app/views/install/plugins.html delete mode 100644 app/views/install/resources.html delete mode 100644 app/views/install/routing.html delete mode 100644 app/views/install/terms.html delete mode 100644 app/views/install/user.html delete mode 100644 app/views/install/verify.html delete mode 100644 app/views/install/welcome.html delete mode 100644 docker-compose.yml delete mode 100644 docker/.env.example delete mode 100644 docker/ttp-apache/Dockerfile delete mode 100644 docker/ttp-apache/README.md delete mode 100644 docker/ttp-nginx/Dockerfile delete mode 100644 docker/ttp-nginx/README.md delete mode 100644 docker/ttp-nginx/cors.conf delete mode 100644 docker/ttp-nginx/nginx.conf delete mode 100644 docker/ttp-nginx/supervisord.conf create mode 100644 downloads/JoeyKimsey-resume-2025.docx create mode 100644 downloads/JoeyKimsey-resume-2025.md create mode 100644 downloads/JoeyKimsey-resume-2025.pdf create mode 100644 downloads/JoeyKimsey-resume-2025.txt delete mode 100644 gitlab/auto_merge_mr.sh delete mode 100644 gitlab/update_PHP_deps.yml create mode 100644 images/AAA_M_Additions.png create mode 100644 images/atb.jpg create mode 100644 images/ba.png create mode 100644 images/bedrock.jpg create mode 100644 images/canary.jpg create mode 100644 images/cleaned-up.jpg create mode 100644 images/curseforge.png create mode 100644 images/dockerhub.png create mode 100644 images/emeals.png create mode 100644 images/github-2.png create mode 100644 images/gitlab.png create mode 100644 images/hermes.jpg create mode 100644 images/houdini.jpg delete mode 100644 images/icon-maskWhite.png create mode 100644 images/ione.png create mode 100644 images/logoLarge.png create mode 100644 images/logoScaled.png create mode 100644 images/on-call.jpg create mode 100644 images/packagist.png create mode 100644 images/springbot.png create mode 100644 images/still-working.jpg create mode 100644 images/tte.png rename images/{logoLarge.jpg => ttp.jpg} (100%) create mode 100644 images/vacation.jpg create mode 100644 images/voting.jpg delete mode 100644 install.php delete mode 100644 vendor/.gitignore diff --git a/.gitignore b/.gitignore index 9bc33e0..56c1307 100644 --- a/.gitignore +++ b/.gitignore @@ -65,4 +65,5 @@ vendor/canary/logs/* components/* mailhog.log uploads/* -images/qr-codes/ +vendor/* +images/qr-codes/* diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 2952fb1..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,74 +0,0 @@ -stages: - - prepare - - build - - test - - update - - deploy - -variables: - TIMEZONE: "America/New_York" # For the system in general - DATE_TIMEZONE: ${TIMEZONE} # For PHP - - GIT_DEPTH: 1 - GITLAB_API_URL: ${CI_API_V4_URL} - TARGET_BRANCH: ${CI_COMMIT_REF_NAME} # This is the branch chosen in the `Pipeline Schedule` - TARGET_REMOTE: "https://${GITLAB_USERNAME}:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}.git" - - # These could/should be overridden in an extending job: - UPDATE_BRANCH_PREFIX: "update_PHP_deps_" # Used for the update branch name, it will be followed by the datetime - GIT_USER: "DependBot" # Used for the update commit - GIT_EMAIL: "webmaster@thetempusproject.com" # Used for the update commit - GITLAB_USERNAME: "root" # Used for pushing the new branch and opening the MR - GITLAB_ACCESS_TOKEN: "glpat-PKEmivGtBfbz4DVPdhzk" # Used for pushing the new branch and opening the MR - MERGE_IF_SUCCESSFUL: "true" # Set to true, to merge automatically if the pipeline succeeds - SECONDS_BETWEEN_POOLING: 10 # Nbr of seconds between checking if the MR pipeline is successful, so then it will merge - JOB_GIT_FLAGS: "" - JOB_CURL_FLAGS: "" - JOB_COMPOSER_FLAGS: "" - -composer_update: - stage: update - rules: - - if: '$CI_COMMIT_BRANCH == "main"' - image: composer:latest - interruptible: true # allows to stop the job if a newer pipeline starts, saving resources and allowing new jobs to start because job concurrency is limited - script: - - git ${JOB_GIT_FLAGS} fetch origin ${TARGET_BRANCH} - - git ${JOB_GIT_FLAGS} checkout ${TARGET_BRANCH} - - git reset --hard origin/main - - git pull --allow-unrelated-histories - - export DATE_TIME="$(date '+%Y%m%d%H%M%S')" - - export MR_BRANCH="${UPDATE_BRANCH_PREFIX}${DATE_TIME}" - - git ${JOB_GIT_FLAGS} checkout -b "${MR_BRANCH}" - - composer update ${JOB_COMPOSER_FLAGS} - - if [ "$(git diff)" == "" ]; then echo "No updates needed!"; exit 0; fi - - export TITLE="Update PHP dependencies [${DATE_TIME}]" - - git ${JOB_GIT_FLAGS} commit -a -m "${TITLE}" - - git ${JOB_GIT_FLAGS} push "${TARGET_REMOTE}" "${MR_BRANCH}" - artifacts: - paths: - - vendor/ - cache: - key: ${CI_COMMIT_REF_SLUG} - paths: - - vendor/ - -prepare: - stage: prepare - script: - - echo "Preparing environment..." - -build: - stage: build - script: - - echo "Building the project..." - -test: - stage: test - script: - - echo "Running tests..." - -deploy: - stage: deploy - script: - - echo "Deploying the project..." \ No newline at end of file diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php deleted file mode 100644 index 4f6d829..0000000 --- a/.php-cs-fixer.php +++ /dev/null @@ -1,127 +0,0 @@ -exclude('somedir') - //->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php' - ->in(__DIR__) -; - -$config = new \PhpCsFixer\Config(); -return $config->setRules([ - '@PSR2' => true, - 'array_indentation' => true, - 'array_syntax' => ['syntax' => 'short'], - 'combine_consecutive_unsets' => true, - 'class_attributes_separation' => ['elements' => ['method' => 'one',]], - 'multiline_whitespace_before_semicolons' => false, - 'single_quote' => true, - 'strict_param' => false, - 'binary_operator_spaces' => [ - 'operators' => [ - // '=>' => 'align', - // '=' => 'align' - ] - ], - // 'blank_line_after_opening_tag' => true, - // 'blank_line_before_statement' => true, - 'braces' => [ - 'allow_single_line_closure' => true, - 'position_after_functions_and_oop_constructs' => 'same' - ], - // 'cast_spaces' => true, - // 'class_definition' => array('singleLine' => true), - 'concat_space' => ['spacing' => 'one'], - // 'declare_equal_normalize' => true, - // 'function_typehint_space' => true, - // 'single_line_comment_style' => ['comment_types' => ['hash']], - // 'include' => true, - // 'lowercase_cast' => true, - // 'native_function_casing' => true, - // 'new_with_braces' => true, - // 'no_blank_lines_after_class_opening' => true, - // 'no_blank_lines_after_phpdoc' => true, - // 'no_blank_lines_before_namespace' => true, - 'no_empty_comment' => true, - 'no_empty_phpdoc' => true, - // 'no_empty_statement' => true, - 'no_extra_blank_lines' => [ - 'tokens' => [ - // 'curly_brace_block', - // 'extra', - // 'parenthesis_brace_block', - // 'square_brace_block', - // 'throw', - // 'use', - ] - ], - 'no_leading_import_slash' => true, - 'no_leading_namespace_whitespace' => true, - 'no_mixed_echo_print' => ['use' => 'echo'], - 'no_multiline_whitespace_around_double_arrow' => true, - 'no_short_bool_cast' => true, - 'no_singleline_whitespace_before_semicolons' => true, - 'no_spaces_around_offset' => ['positions' => ['outside']], - 'no_trailing_comma_in_singleline' => ['elements' => ['arguments', 'array_destructuring', 'array', 'group_import']], - - 'spaces_inside_parentheses' => ['space' => 'single'], - // 'no_spaces_inside_parenthesis' => false, - 'control_structure_braces' => true, - - 'curly_braces_position' => [ - 'control_structures_opening_brace' => 'same_line', - 'functions_opening_brace' => 'same_line', - 'classes_opening_brace' => 'same_line', - ], - - - // need to add space after array declaration - // need to put each element on a line by itself when an array is multi line - - - - - - - - - - - 'no_unneeded_control_parentheses' => true, - 'no_unused_imports' => true, - 'no_whitespace_before_comma_in_array' => true, - 'no_whitespace_in_blank_line' => true, - 'normalize_index_brace' => true, - // 'object_operator_without_whitespace' => true, - // 'php_unit_fqcn_annotation' => true, - // 'phpdoc_align' => true, - // 'phpdoc_annotation_without_dot' => true, - // 'phpdoc_indent' => true, - // 'phpdoc_inline_tag' => true, - // 'phpdoc_no_access' => true, - // 'phpdoc_no_alias_tag' => true, - // 'phpdoc_no_empty_return' => true, - // 'phpdoc_no_package' => true, - // 'phpdoc_no_useless_inheritdoc' => true, - // 'phpdoc_return_self_reference' => true, - // 'phpdoc_scalar' => true, - // 'phpdoc_separation' => true, - // 'phpdoc_single_line_var_spacing' => true, - // 'phpdoc_summary' => true, - // 'phpdoc_to_comment' => true, - // 'phpdoc_trim' => true, - // 'phpdoc_types' => true, - 'phpdoc_var_without_name' => false, - 'increment_style' => ['style' => 'post'], - 'return_type_declaration' => true, - // 'self_accessor' => true, // risky - 'short_scalar_cast' => true, - 'single_class_element_per_statement' => true, - 'standardize_not_equals' => true, - 'ternary_operator_spaces' => true, - 'trailing_comma_in_multiline' => true, - 'trim_array_spaces' => false, - 'unary_operator_spaces' => true, - 'whitespace_after_comma_in_array' => true, - 'single_blank_line_at_eof' => true - ]) - ->setLineEnding("\n") -; \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 1227ff5..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,47 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at webmaster@thetempusproject.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 76d5959..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,135 +0,0 @@ -# Contribution Guidelines for TheTempusProject -Contributing to TheTempusProject is completely voluntary and should follow all of the guidelines listed here in order to ensure the highest probability of acceptance. It is highly recommended to use a php linter to automate more of this process. The project is maintained on github and all contributions need to be submitted via pull request to their specific repository under the `dev` branch. In order to contribute, simply follow the instructions for [creating a pull request](#creating-a-pull-request) below. - -## Pull Request Requirements -- All revisions must follow TTP naming conventions (see [Naming Conventions](#naming-conventions) Section) -- Include a clear and concise explanation of the features or changes included in your revision listed by file. -- All code must follow [PSR 2](http://www.php-fig.org/psr/psr-2/) standards -- prefer the use of [] for arrays over array() -- All functions must be documented with the exception of controller methods (see [Documentation](#documentation) Section) -- Controller methods may be doc-blocked when necessary for clarity (see [Documentation](#documentation) Section) -- All new Classes must include a class level doc-block (see [Documentation](#documentation) Section) -- Any new dependencies will have a longer validation process and should be accompanied by the required information (see [Dependencies](#dependencies) Section) - -## Naming Conventions -- File names are to be lower case -- All class names must be upper case -- Any data being stored as a file must be saved in the app directory (with the exception of config which should be stored under config/) -- Controllers must have a constructor and destructor using the constructor and destructor methods found in resources/ -- Views must be named using lowerCamelCase - -## Dependencies -Whenever a dependency is updated or added, pull requests must include a section that answers the following questions. -- Why is this dependency required -- Could this be reasonably accomplished within the app by implementing new features in a later version? explain. -- What is the latest stable version that can be used -- What features are absolutely necessary for your feature or modification to work - -## Documentation -### Classes - -New classes must be prefaced with a doc-block following this style: -``` -/** - * app/controllers/admin/admin.php - * - * This is the admin controller. - * - * @version 5.0.1 - * @author Joey Kimsey - * @link https://TheTempusProject.com - * @license https://opensource.org/licenses/MIT [MIT LICENSE] - */ -``` - -From top to bottom: -- Filename on the second line -- A description for the file -- The TTP version this file was built for -`@version 1.0` -- The Authors name or alias and email -`@author first last ` -- A copy of the MIT license -`@license https://opensource.org/licenses/MIT [MIT LICENSE]` -- May include a link for more information -`@link http://link.com` - -### Functions -Functions must be prefaced with a doc-block following this style: -``` -/** - * Intended as a self-destruct session. If the specified session does not - * exist, it is created. If the specified session does exist, it will be - * destroyed and returned. - * - * @param string $name - Session name to be created or checked - * @param string $string - The string to be used if session needs to be - * created. (optional) - * - * @return bool|string - Returns bool if creating, and a string if the - * check is successful. - */ -``` - -From top to bottom: -- There must be a description of the functions intended usage on the second line -- All parameters should be documented like this -`@param [type] $name - description` -- Any function with a return statement must also be documented as such -`@return [type] - description` - -## Creating a Pull Request -This is a simple explanation of how to create a pull request for changes to TheTempusProject. You can find a detailed walk-through on how to [create a pull request](https://help.github.com/articles/creating-a-pull-request/) on github. - -1. First ensure you have followed all the contributing guidelines -2. Squash your merge into a single revision. This will make it easier to view the changes as a whole. -3. You can submit a pull request [here](https://github.com/TheTempusProject/TheTempusProject/compare) -4. Please submit all pull requests to the dev branch or they will be ignored. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -add spaces after everything - -avoid "return;" just make the previous line the return - -use [] - -do not use array() - -do not use (array) - -do not add useless variables - -if you are going to set something or check if its empty, just never set it to begin with, don't set it to null \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index bb6e417..0000000 --- a/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -Copyright (c) 2024-present Joey Kimsey - -Portions of this software are licensed as follows: - -* All content residing under the "app/" directory of this repository, excluding "app/plugins/"; is licensed under "Creative Commons: CC BY-SA 4.0 license". -* All third party components incorporated into The Tempus Project Software including plugins are licensed under the original license provided by the owner of the applicable component. -* Content outside of the above mentioned directories or restrictions above is available under the "MIT Expat" license as defined below. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index da6d78f..0000000 --- a/README.md +++ /dev/null @@ -1,131 +0,0 @@ -# The Tempus Project - -_Rapid Prototyping Framework built on PHP utilizing the MVC pattern with a Bootstrap front-end_ - -__Developer(s):__ - -- __Joey Kimsey__ - _Lead Developer_ - -The aim of this project is to provide a simple and stable platform from which to easily add functionality. The goal being the ability to quickly build and test new projects with a lightweight ecosystem to help. - -**Notice: This code is in _still_ not production ready. This framework is provided as is, use at your own risk.**\ -I am working very hard to ensure the system is safe and reliable enough for me to endorse its widespread use. Unfortunately, it still needs a lot of QA and improvements. - -## Table of contents - -[[_TOC_]] - -## Find Us - -* [DockerHub](https://hub.docker.com/repositories/thetempusproject) -* [Packagist](https://packagist.org/packages/thetempusproject/) -* [GitLab](https://git.thetempusproject.com/the-tempus-project/thetempusproject) - -## Summary - -The Tempus Project is a PHP application utilizing the MVC pattern to serve up simple pages and APIs with minimal effort. It requires a MySQL database to function and is designed to run equally well with nginx or apache powering the webserver. Most of the core functionality is developed in house and provided through dependencies. At this time, the frontend is driven on bootstrap 3 and FontAwesome for simplicity. - -## Features - -- A Plugin system that allows plug-and-play functionality -- A User management system - - groups - - permissions - - preferences - - registration and recovery - (All Controlled dynamically via our plugin interface) -- Compatibility with both Apache and NGINX -- Built with Bootstrap with a focus on mobile compatibility -- Incredibly easy to set-up, deploy, and develop - -## Installation - -The preferred method for installation is [Composer](#composer) but special attention has been given to installation and usage [without Composer](#composer). - -### Composer - -The simplest method to start a new project is to use composer to create a new project and automatically clone all the necessary files: - -#### via create-project - -``` -composer create-project thetempusproject/thetempusproject test-app -``` - -#### via clone & install - -1. Clone the directory to wherever you want to install the framework. -`git clone https://git.thetempusproject.com/the-tempus-project/thetempusproject.git ` -1. Open your terminal to the directory you previously cloned the repository. -`cd ` -1. Install using composer: -`php composer.phar install` - -### Manually - -1. Clone the directory to wherever you want to install the framework. -`git clone https://git.thetempusproject.com/the-tempus-project/thetempusproject.git ` -1. Open your terminal to the directory you previously cloned the repository. -`cd /` -1. Clone the dependency directories to the vendor/ folder. -``` -cd vendor/ -git clone https://git.thetempusproject.com/the-tempus-project/bedrock.git bedrock -git clone https://git.thetempusproject.com/the-tempus-project/canary.git canary -git clone https://git.thetempusproject.com/the-tempus-project/hermes.git hermes -git clone https://git.thetempusproject.com/the-tempus-project/houdini.git houdini -``` - -__Note:__ The autoloader should automatically detect and use the dependencies, but they need to be sorted into the folders ans shown above. - - -## Docker - -To enable quick deployment and collaboration The Tempus Project is distributed with the files to build your own docker images or stack with apache or nginx The included `docker-compose.yml` will load up an entire stack including apache and nginx, as well as a MySQL server with phpmyadmin. - -You will need docker installed on your system then you can either download the latest images from DockerHud: - -``` -docker pull thetempusproject/ttp-apache -docker pull thetempusproject/ttp-nginx -``` - -Or you can build your own images from this repository. More information can be found in the included README files: - -* [Apache Image](docker/ttp-apache/README.md) -* [Nginx Image](docker/ttp-nginx/README.md) - -### Docker-Compose - -The Docker stack included here will build new versions of the nginx and apache webserver and launch them in individual containers. It will also create 2 more containers; one for php, and one for phpmyadmin. - -``` -docker-compose -f docker-compose.yml up --build -d --no-cache -``` - -__Note:__ If you cloned the repository from git, you will need to copy the `docker/.env.example` to `.env` in the root directory and update the contents before proceeding with docker-compose. - -## Contributing - -TheTempusProject is an open source project and welcomes community contributions. Please refer to the [Contributing file](CONTRIBUTING.md) for more details. - -## License - -See the [LICENSE](LICENSE) file for licensing information as it pertains to files in this repository. - -## Known Issues - -- [ ] The blog plugin should add a welcome post during the installResources step of the installer. It doesn't work right now. - -## Currently being developed - -- [ ] Adding documentation -- [ ] Unit testing - -## Future updates - -- [ ] Expansion of PDO to allow different database types -- [ ] Update installer to account for database deltas, allowing easy updating. -- [ ] Implement uniformity in terms of error reporting, exceptions, logging. -- [ ] I want to make an api that allows you to download and install new plugins from a centralized repository -- [ ] i want plugin instalation to be compatible with composer for easier management of added plugins. diff --git a/app/config/constants.php b/app/config/constants.php index ab609ba..7c80d1a 100644 --- a/app/config/constants.php +++ b/app/config/constants.php @@ -38,8 +38,8 @@ if ( ! defined( 'CONFIG_DIRECTORY' ) ) { # Tempus Debugger define( 'CANARY_SECURE_HASH', 'd73ed7591a30f0ca7d686a0e780f0d05' ); # Tempus Project Core -define( 'APP_NAME', 'The Tempus Project'); -define( 'TP_DEFAULT_LOGO', 'images/logoWhite.png'); +define( 'APP_NAME', 'Joey Kimsey'); +define( 'TP_DEFAULT_LOGO', 'images/logo.png'); // Check define( 'MINIMUM_PHP_VERSION', 8.1); // Cookies diff --git a/app/controllers/downloads.php b/app/controllers/downloads.php new file mode 100644 index 0000000..b73ac71 --- /dev/null +++ b/app/controllers/downloads.php @@ -0,0 +1,64 @@ + + * @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 Downloads extends Controller { + public function index() { + Session::flash( 'success', 'Unknown download.' ); + return Redirect::to( 'home/index' ); + } + + public function resume( $extension = 'none' ) { + if ( ! in_array( $extension, ['docx','pdf','md','txt'] ) ) { + Session::flash( 'success', 'Unknown download.' ); + return Redirect::to( 'home/index' ); + } + + $file = APP_ROOT_DIRECTORY . 'downloads' . DIRECTORY_SEPARATOR . 'JoeyKimsey-resume-2025.' . $extension; + + // Check if the file exists + if (file_exists($file)) { + // Set headers to force the download + header('Content-Description: File Transfer'); + header('Content-Type: application/octet-stream'); + header('Content-Disposition: attachment; filename="' . basename($file) . '"'); + header('Expires: 0'); + header('Cache-Control: must-revalidate'); + header('Pragma: public'); + header('Content-Length: ' . filesize($file)); + + // Clear the output buffer + ob_clean(); + flush(); + + // Read and output the file + readfile($file); + exit; + } else { + Session::flash( 'success', 'Unknown download.' ); + return Redirect::to( 'home/index' ); + } + } +} \ No newline at end of file diff --git a/app/controllers/home.php b/app/controllers/home.php index cbbc863..2fdbbc3 100644 --- a/app/controllers/home.php +++ b/app/controllers/home.php @@ -27,8 +27,24 @@ use TheTempusProject\TheTempusProject as App; 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' ); + self::$pageDescription = 'Joey Kimsey is a web app developer with nearly a decade of professional experience and another decade of hands on experience.'; + $optionValues = [ + (object) [ "post" => "python-dev", "option" => "Python Developer" ], + (object) [ "post" => "ecommerce-coder", "option" => "eCommerce Coder" ], + (object) [ "post" => "php-experience", "option" => "PHP Developer" ], + (object) [ "post" => "ai-experience", "option" => "GPT-Agent" ], + (object) [ "post" => "operations-experience", "option" => "DevOps Engineer" ], + (object) [ "post" => "lua-dev", "option" => "Lua Developer" ], + (object) [ "post" => "version-control", "option" => "Git Goblin" ], + (object) [ "post" => "laravel-experience", "option" => "Laravel Developer" ], + (object) [ "post" => "database-experience", "option" => "Database Admin" ], + (object) [ "post" => "education", "option" => "Student" ], + (object) [ "post" => "full-stack-developer", "option" => "Full-Stack Developer" ], + (object) [ "post" => "stripe-certified-developer", "option" => "Stripe Certified Developer" ], + + ]; + shuffle($optionValues); + Views::view( 'index', $optionValues ); } public function login() { @@ -91,19 +107,13 @@ class Home extends Controller { public function about() { self::$title = 'About - {SITENAME}'; - self::$pageDescription = '{SITENAME} was started by a developer with years of industry experience which has lead to a refined no-nonsense tool for everyone. Find out more about us here.'; + self::$pageDescription = 'Just a bit more info on me.'; Views::view( 'about' ); } - public function privacy() { - self::$title = 'Privacy Policy - {SITENAME}'; - self::$pageDescription = 'At {SITENAME} you privacy is very important to us. On this page you can find a detailed outline of all the information we collect and how its used.'; - Views::view( 'privacy' ); - } - - public function faq() { - self::$title = 'Frequently Asked Questions - {SITENAME}'; - 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 hire() { + self::$title = 'Consulting and Freelance - {SITENAME}'; + self::$pageDescription = 'More details on how to hire me for consulting or freelance work.'; + Views::view( 'hire' ); } } diff --git a/app/js/main.js b/app/js/main.js index 3c12819..d139f12 100644 --- a/app/js/main.js +++ b/app/js/main.js @@ -274,4 +274,21 @@ document.addEventListener("DOMContentLoaded", function () { var popoverList = popoverTriggerList.map(function (popoverTriggerEl) { return new bootstrap.Popover(popoverTriggerEl); }); -}); \ No newline at end of file +}); + +document.addEventListener('DOMContentLoaded', function () { + const postSelector = document.getElementById('postSelector'); + const goToPostButton = document.getElementById('goToPost'); + + if ( postSelector && goToPostButton ) { + goToPostButton.addEventListener('click', function () { + const selectedValue = postSelector.value; + if (selectedValue) { + const url = `/blog/post/${selectedValue}`; + window.location.href = url; + } else { + alert('Please select an option before proceeding.'); + } + }); + } + }); \ No newline at end of file diff --git a/app/plugins/blog/templates/blog.tpl b/app/plugins/blog/templates/blog.tpl index f97e3c1..8fa2044 100644 --- a/app/plugins/blog/templates/blog.tpl +++ b/app/plugins/blog/templates/blog.tpl @@ -46,12 +46,12 @@ - {SITENAME} Logo + {SITENAME} Logo - {SITENAME} Logo + {SITENAME} Logo