Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging #79

Merged
merged 67 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
de4f1cd
feat: add leaf form v2 docs
mychidarko Jul 19, 2023
c3ecc33
feat: link forms v2
mychidarko Jul 20, 2023
f16b1e7
feat: add request validation docs
mychidarko Jul 20, 2023
35a319c
chore: update license
mychidarko Jul 24, 2023
1607dc1
chore: remove past events
mychidarko Jul 26, 2023
86ecdb4
feat: add vite docs
mychidarko Jul 26, 2023
429ba62
chore: add beta tag to leaf ui
mychidarko Jul 26, 2023
eb85f52
feat: update frontend docs
mychidarko Jul 28, 2023
c857334
feat: add mvc integration
mychidarko Jul 28, 2023
3e7bb57
chore: update headers
mychidarko Jul 29, 2023
25c18a9
Add documentation for app()->route() method
crosa7 Aug 1, 2023
c84706f
feat: add inertia docs
mychidarko Aug 2, 2023
1f8dd4e
chore: remove lock file
mychidarko Aug 2, 2023
149a655
fix: patch up broken links
mychidarko Aug 2, 2023
419b7bf
Merge pull request #77 from leafsphp/add-documentation-for-app-route-…
mychidarko Aug 2, 2023
e3ecb66
feat: update bareui docs
mychidarko Aug 3, 2023
73c2449
feat: update veins docs
mychidarko Aug 3, 2023
134e3e9
feat: update blade docs
mychidarko Aug 3, 2023
06be840
feat: update custom engine docs
mychidarko Aug 3, 2023
af70599
feat: update vite docs
mychidarko Aug 4, 2023
c9e75a4
fix: patch up code color
mychidarko Aug 4, 2023
73ef402
feat: update inertia docs
mychidarko Aug 4, 2023
81553d2
chore: update mvc docs
mychidarko Aug 4, 2023
caf0fb8
feat: update modules list
mychidarko Aug 4, 2023
8848b33
feat: update functional mode docs
mychidarko Aug 4, 2023
2371aec
feat: update cookie docs
mychidarko Aug 4, 2023
f59761e
feat: update leaf cli
mychidarko Aug 4, 2023
fc9d176
fix: patch up styling issues
mychidarko Aug 9, 2023
13fde76
feat: update installation docs
mychidarko Aug 9, 2023
ee948b5
feat: update introduction page
mychidarko Aug 9, 2023
94b438d
feat: update introduction page
mychidarko Aug 9, 2023
1f3d623
feat: update migration docs
mychidarko Aug 9, 2023
9ac47c4
chore: re-order sidebar
mychidarko Aug 9, 2023
0f0feef
feat: update testing docs
mychidarko Aug 9, 2023
d69667e
feat: update modules docs
mychidarko Aug 9, 2023
31e58e5
feat: update config docs
mychidarko Aug 10, 2023
fad6733
feat: update leaf cli docs
mychidarko Aug 10, 2023
00d5231
feat: update docker docs
mychidarko Aug 10, 2023
9dd8940
feat: update cors docs
mychidarko Aug 10, 2023
e135ad0
feat: update leaf view docs
mychidarko Aug 10, 2023
6329429
feat: update app.down info
mychidarko Aug 10, 2023
00f82b3
fix: spellcheck maintenance
mychidarko Aug 10, 2023
d651e76
fix: patch up broken links
mychidarko Aug 10, 2023
26dfa61
feat: update auth docs
mychidarko Aug 10, 2023
277a527
feat: update auth config
mychidarko Aug 11, 2023
9befc8a
feat: update auth session docs
mychidarko Aug 11, 2023
10263ba
feat: update db connection docs
mychidarko Aug 11, 2023
de5b513
feat: patch up vite docs
mychidarko Aug 11, 2023
6ace6d3
feat: add code contributors
mychidarko Aug 11, 2023
8cbf159
chore: update code samples
mychidarko Aug 11, 2023
75452af
feat: update leaf cli references
mychidarko Aug 11, 2023
04f29fc
chore: remove queues from docs
mychidarko Aug 11, 2023
c6f53a0
Merge branch 'master' into staging
mychidarko Aug 11, 2023
f81857b
fix: update events
mychidarko Aug 11, 2023
5cf4088
feat: update team
mychidarko Aug 11, 2023
2a25fee
feat: update leaf form docs
mychidarko Aug 12, 2023
b445d39
feat: add mvc mailing docs
mychidarko Aug 13, 2023
b716f17
feat: add leaf mvc console docs
mychidarko Aug 14, 2023
8b1437f
feat: add docs for writing commands
mychidarko Aug 14, 2023
0b90d81
feat: add globals documentation
mychidarko Aug 14, 2023
4bbe98b
feat: update leaf db mvc docs
mychidarko Aug 14, 2023
1a645f2
feat: add array() docs
mychidarko Aug 19, 2023
af410cf
feat: update auth docs
mychidarko Aug 20, 2023
3fd8cd0
feat: add session lifetime 0 docs
mychidarko Aug 20, 2023
cd05ca3
feat: add session lifetime 0 docs
mychidarko Aug 20, 2023
a62a38b
feat: add session lifetime 0 docs
mychidarko Aug 20, 2023
d3f91df
fix: update base routing docs
mychidarko Aug 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 22 additions & 16 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,22 +168,22 @@ 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' },
]
},
{
text: 'Introduction',
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' }
]
Expand All @@ -194,17 +194,17 @@ 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' },
]
},
{
text: 'The basics',
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' },
Expand All @@ -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' },
{
Expand All @@ -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/' }
]
Expand All @@ -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' }
]
},
Expand All @@ -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' }
]
},
Expand All @@ -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/' },
]
},
{
Expand All @@ -309,17 +315,17 @@ 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' },
{ text: 'Migrations', link: '/docs/mvc/migrations' },
{ 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' },
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/PreferenceSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 13 additions & 0 deletions .vitepress/theme/styles/pages.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
10 changes: 9 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
21 changes: 21 additions & 0 deletions LICENSE.VUEJS
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[[redirects]]
from = "/aloe-cli/"
to = "/docs/mvc/console"

[build.environment]
NODE_VERSION = "16"
NPM_FLAGS = "--version" # prevent Netlify npm install
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -29,7 +29,8 @@
"@algolia/client-search",
"react",
"react-dom",
"@types/react"
"@types/react",
"search-insights"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/aloe-cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/aloe-cli/v/1.2.3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/community/team/Member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ export interface Socials {
github: string
twitter?: string
codepen?: string
instagram?: string
linkedin?: string
}
16 changes: 10 additions & 6 deletions src/community/team/TeamMember.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
VTIconGitHub,
VTIconGlobe,
VTIconHeart,
VTIconInstagram,
VTIconLink,
VTIconLinkedIn,
VTIconMapPin,
Expand Down Expand Up @@ -158,6 +159,15 @@ const avatarUrl = computed(() => {
<VTIconLinkedIn class="social-icon" />
</VTLink>
</li>
<li v-if="member.socials.instagram" class="social-item">
<VTLink
class="social-link"
:href="`https://www.instagram.com/${member.socials.instagram}`"
:no-icon="true"
>
<VTIconInstagram class="social-icon" />
</VTLink>
</li>
<li v-if="member.socials.codepen" class="social-item">
<VTLink
class="social-link"
Expand Down Expand Up @@ -249,12 +259,6 @@ const avatarUrl = computed(() => {
padding: 20px 32px 32px;
}

@media (min-width: 512px) {
.data {
padding: 40px 32px 32px 32px;
}
}

.name {
font-size: 20px;
font-weight: 500;
Expand Down
18 changes: 18 additions & 0 deletions src/community/team/members-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@
},
"sponsor": false
},
{
"name": "André Rosa",
"title": "Developer",
"company": "Leaf PHP",
"projects": [
{
"label": "leafsphp/*",
"url": "https://www.github.com/leafsphp"
}
],
"location": "Portugal",
"languages": ["Portuguese", "English"],
"socials": {
"github": "crosa7",
"twitter": "andre_crosa"
},
"sponsor": false
},
{
"name": "Ashley Nyanteh",
"title": "Community Manager",
Expand Down
Loading