diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 60841558..8c233938 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -168,8 +168,9 @@ const mainSidebar = [ { text: 'Introduction', link: '/docs/introduction/' }, { text: 'Why Leaf?', link: '/docs/introduction/why' }, { text: 'Installation', link: '/docs/introduction/installation' }, + { text: 'Leaf + MVC', link: '/docs/mvc/' }, { text: 'Using Docker', link: '/docs/introduction/docker' }, - { text: 'Migration Guide', link: '/docs/migration/introduction' } + { text: 'Migration Guide', link: '/docs/migration/other' }, ] }, { @@ -177,13 +178,12 @@ const mainSidebar = [ collapsible: true, collapsed: true, items: [ - { text: 'Leaf + MVC', link: '/docs/mvc/' }, - { text: 'Leaf Devtools', link: '/modules/devtools/' }, + { text: 'Leaf CLI', link: '/docs/cli/' }, { text: 'Modules', link: '/modules/' }, { text: 'Functional Mode', link: '/docs/tooling/functions' }, { text: 'Leaf tutorial', link: '/tutorial/' }, - { text: 'Leaf CLI', link: '/docs/cli/' }, { text: 'Your first app', link: '/docs/introduction/first-app' }, + { text: 'Leaf Devtools', link: '/modules/devtools/' }, { text: 'Testing', link: '/docs/tooling/testing' }, { text: 'Deployment', link: '/docs/tooling/deployment' } ] @@ -194,9 +194,10 @@ const mainSidebar = [ collapsed: true, items: [ { text: 'Overview', link: '/docs/config/' }, - { text: 'Instance and Mode', link: '/docs/config/nsm' }, { text: 'App settings', link: '/docs/config/settings' }, - { text: 'Dependency Injection', link: '/docs/tooling/container' } + { text: 'Application Env', link: '/docs/config/nsm' }, + { text: 'URL Rewriting', link: '/docs/introduction/url-rewriting' }, + { text: 'Dependency Injection', link: '/docs/tooling/container' }, ] }, { @@ -204,7 +205,6 @@ const mainSidebar = [ collapsible: true, collapsed: true, items: [ - { text: 'URL Rewriting', link: '/docs/introduction/url-rewriting' }, { text: 'Request', link: '/modules/http/v/2/request' }, { text: 'Response', link: '/modules/http/v/2/response' }, { text: 'Headers', link: '/modules/http/v/2/headers' }, @@ -223,6 +223,7 @@ const mainSidebar = [ collapsed: true, items: [ { text: 'Basic Routing', link: '/docs/routing/' }, + { text: 'MVC Support', link: '/docs/routing/mvc' }, { text: 'Route Groups', link: '/docs/routing/sub-routing' }, { text: 'Dynamic routing', link: '/docs/routing/dynamic' }, { @@ -239,6 +240,7 @@ const mainSidebar = [ collapsed: true, items: [ { text: 'Introduction', link: '/modules/db/' }, + { text: 'MVC Support', link: '/modules/db/mvc' }, { text: 'Query Builder', link: '/modules/db/v/2/builder' }, { text: 'Leaf Redis', link: '/modules/redis/' } ] @@ -249,15 +251,16 @@ const mainSidebar = [ collapsed: true, items: [ { text: 'Introduction', link: '/modules/auth/' }, + { text: 'MVC Support', link: '/modules/auth/mvc' }, { text: 'Auth Config', link: '/modules/auth/config' }, { text: 'User Login', link: '/modules/auth/login' }, { text: 'User Sign Up', link: '/modules/auth/signup' }, + { text: 'Auth Session', link: '/modules/auth/session' }, { text: 'Protecting your Routes', link: '/modules/auth/protecting-your-routes' }, { text: 'Updating logged-in user', link: '/modules/auth/update' }, - { text: 'Session Support', link: '/modules/auth/session' }, { text: 'Helper methods', link: '/modules/auth/helpers' } ] }, @@ -266,11 +269,11 @@ const mainSidebar = [ collapsible: true, collapsed: true, items: [ - { text: 'Leaf Forms', link: '/modules/forms/v/1.2/' }, + { text: 'Validation', link: '/modules/forms/v/2/' }, { text: 'Leaf Password', link: '/modules/password/' }, { text: 'Leaf Anchor', link: '/modules/anchor/' }, - { text: 'Leaf Date', link: '/modules/date/' }, - { text: 'Leaf Fetch', link: '/modules/fetch/' }, + { text: 'Date/Time', link: '/modules/date/' }, + { text: 'Data Fetching', link: '/modules/fetch/' }, { text: 'Logging', link: '/docs/tooling/logging' } ] }, @@ -296,8 +299,11 @@ const mainSidebar = [ { text: 'Bare UI', link: '/modules/views/bareui/' }, { text: 'Leaf Blade', link: '/modules/views/blade/' }, { text: 'Leaf Veins', link: '/modules/views/veins/' }, + { text: 'Other Engines', link: '/modules/views/third-party/' }, + { text: 'Vite JS', link: '/modules/views/vite/' }, + { text: 'Inertia JS', link: '/modules/views/inertia/' }, { text: 'Viewi PHP', link: '/modules/views/viewi/' }, - { text: 'Leaf UI', link: '/modules/views/leaf-ui/' } + { text: 'Leaf UI', link: '/modules/views/leaf-ui/' }, ] }, { @@ -309,7 +315,6 @@ const mainSidebar = [ { text: 'Leaf API', link: '/docs/leafapi/' }, { text: 'Skeleton', link: '/docs/skeleton/' }, { text: 'MVC Config', link: '/docs/mvc/config' }, - { text: 'MVC Routing', link: '/docs/mvc/routing' }, { text: 'Controllers', link: '/docs/mvc/controllers' }, { text: 'Views', link: '/docs/mvc/views' }, { text: 'Models', link: '/docs/mvc/models' }, @@ -317,9 +322,10 @@ const mainSidebar = [ { text: 'Schema', link: '/docs/mvc/schema' }, { text: 'Seeders', link: '/docs/mvc/seeds' }, { text: 'Factories', link: '/modules/mvc-core/factories' }, - // { text: 'MVC Console Tool', link: '/docs/mvc/console' }, - { text: 'Aloe CLI', link: '/aloe-cli/' }, - { text: 'MVC Core', link: '/modules/mvc-core/' } + { text: 'Writing Commands', link: '/docs/mvc/commands' }, + { text: 'Mailing', link: '/docs/mvc/mail' }, + { text: 'MVC Helpers', link: '/docs/mvc/globals' }, + { text: 'MVC Console Tool', link: '/docs/mvc/console' }, ] }, { diff --git a/.vitepress/theme/components/PreferenceSwitch.vue b/.vitepress/theme/components/PreferenceSwitch.vue index 0c9d0134..dfd0ab7d 100644 --- a/.vitepress/theme/components/PreferenceSwitch.vue +++ b/.vitepress/theme/components/PreferenceSwitch.vue @@ -22,7 +22,7 @@ onMounted(() => { const route = useRoute() const show = $computed(() => - /^\/(guide|docs|tutorial|examples|modules)\//.test(route.path) && !/^\/(docs\/tooling\/functions|docs\/config|modules\/db\/v\/1|modules\/http\/v\/2\/headers|modules\/date|modules\/fs|docs\/tooling\/testing)\//.test(route.path.replace('.html', '/')) + /^\/(guide|docs|tutorial|examples|modules)\//.test(route.path) && !/^\/(docs\/tooling\/functions|docs\/config\/settings|modules\/db\/v\/1|modules\/http\/v\/2\/headers|modules\/date|modules\/fs|docs\/tooling\/testing)\//.test(route.path.replace('.html', '/')) ) const showFullText = $computed(() => /^\/(tutorial|examples)\//.test(route.path) diff --git a/.vitepress/theme/styles/pages.css b/.vitepress/theme/styles/pages.css index d859a439..2d807ec7 100644 --- a/.vitepress/theme/styles/pages.css +++ b/.vitepress/theme/styles/pages.css @@ -19,3 +19,16 @@ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-gap: 1rem; } + +.dark .custom-block [class*='language-'] pre { + background-color: var(--vt-c-theme-plain); +} + +.dark .custom-block .custom-block { + background-color: var(--vt-c-theme-plain) !important; + border-left: none !important; +} + +.details.custom-block::before { + content: none !important; +} diff --git a/LICENSE b/LICENSE index 8944fd0b..55b818a7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 vuejs +Copyright (c) 2023 Michael Darko-Duodu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -19,3 +19,11 @@ 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. + +-------------------------------------------------------------------------------- +Third party licenses are below +-------------------------------------------------------------------------------- + +Parts of this project's code was based on code from the below repositories: + +- LICENSE.VUEJS https://github.com/vuejs/docs diff --git a/LICENSE.VUEJS b/LICENSE.VUEJS new file mode 100644 index 00000000..8944fd0b --- /dev/null +++ b/LICENSE.VUEJS @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 vuejs + +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/netlify.toml b/netlify.toml index 238ab5df..8690fdfe 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,7 @@ +[[redirects]] + from = "/aloe-cli/" + to = "/docs/mvc/console" + [build.environment] NODE_VERSION = "16" NPM_FLAGS = "--version" # prevent Netlify npm install diff --git a/package.json b/package.json index 7fca0248..7b38243b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dependencies": { "449.css": "^1.3.0", "@codemirror/lang-php": "^6.0.0", - "@leafphp/docs-theme": "^0.1.2", + "@leafphp/docs-theme": "0.1.2", "@vue/repl": "^1.2.4", "axios": "^0.27.2", "dynamics.js": "^1.1.5", @@ -29,7 +29,8 @@ "@algolia/client-search", "react", "react-dom", - "@types/react" + "@types/react", + "search-insights" ] } } diff --git a/src/aloe-cli/index.md b/src/aloe-cli/index.md index 590e4505..d9eb856a 100755 --- a/src/aloe-cli/index.md +++ b/src/aloe-cli/index.md @@ -30,8 +30,8 @@ Available commands: aloe aloe:config Install aloe config app - app:down Place app in maintainance mode - app:up Remove app from maintainance mode + app:down Place app in maintenance mode + app:up Remove app from maintenance mode d d:command Delete a console command d:controller Delete a controller diff --git a/src/aloe-cli/v/1.2.3/index.md b/src/aloe-cli/v/1.2.3/index.md index fbf1faab..b62439b0 100644 --- a/src/aloe-cli/v/1.2.3/index.md +++ b/src/aloe-cli/v/1.2.3/index.md @@ -83,8 +83,8 @@ Available commands: aloe aloe:config Install aloe config app - app:down Place app in maintainance mode - app:up Remove app from maintainance mode + app:down Place app in maintenance mode + app:up Remove app from maintenance mode d d:command Delete a console command d:controller Delete a controller diff --git a/src/community/team/Member.ts b/src/community/team/Member.ts index f124977e..9ad76d87 100644 --- a/src/community/team/Member.ts +++ b/src/community/team/Member.ts @@ -22,4 +22,6 @@ export interface Socials { github: string twitter?: string codepen?: string + instagram?: string + linkedin?: string } diff --git a/src/community/team/TeamMember.vue b/src/community/team/TeamMember.vue index a326324d..70e11d8d 100644 --- a/src/community/team/TeamMember.vue +++ b/src/community/team/TeamMember.vue @@ -6,6 +6,7 @@ import { VTIconGitHub, VTIconGlobe, VTIconHeart, + VTIconInstagram, VTIconLink, VTIconLinkedIn, VTIconMapPin, @@ -158,6 +159,15 @@ const avatarUrl = computed(() => { +
  • + +