Umami working

This commit is contained in:
Owen 2025-02-09 16:49:14 -05:00
parent 2e48ce31ae
commit e537b89cae
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
4 changed files with 22 additions and 27 deletions

View file

@ -17,8 +17,5 @@
}, },
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
], ]
"dependencies": {
"@dipakparmar/docusaurus-plugin-umami": "2.1.7"
}
} }

View file

@ -17,7 +17,7 @@ Are you experienced with authentication procedures and best practices? We would
- [ ] Filter by site - [ ] Filter by site
- [ ] Click "Show resources" on site dropdown which takes you to resources table with filter defined - [ ] Click "Show resources" on site dropdown which takes you to resources table with filter defined
- [x] Transfer resource to different site - [x] Transfer resource to different site
- [ ] Allow resource without a subdomain (use base domain) - limited to one resource per domain - [x] Allow resource without a subdomain (use base domain) - limited to one resource per domain
- [ ] Create temporary link from resource page - [ ] Create temporary link from resource page
- [ ] Show temporary links in table on resource page - [ ] Show temporary links in table on resource page
- [ ] Track temporary link usage and session count - [ ] Track temporary link usage and session count
@ -37,12 +37,12 @@ Are you experienced with authentication procedures and best practices? We would
- [ ] Support for multiple domains - [ ] Support for multiple domains
- [ ] Set domain per organization - [ ] Set domain per organization
- [ ] Would need to refactor auth to support cross-site cookies - [ ] Would need to refactor auth to support cross-site cookies
- [ ] Support for running a resource at the root domain (without subdomain) - [x] Support for running a resource at the root domain (without subdomain)
- [ ] Make this optional via a flag in the config - [x] Make this optional via a flag in the config
### Authentication & Integration ### Authentication & Integration
- [ ] Google, GitHub, etc. OAuth support - [ ] Google, GitHub, etc. OAuth support
- [ ] Cache authentication in badger to speed up proxy requests - [x] Cache authentication in badger to speed up proxy requests
- [ ] Nicely formatted error pages for badger - [ ] Nicely formatted error pages for badger
- [ ] Bearer token support for resources (useful for protecting APIs) - [ ] Bearer token support for resources (useful for protecting APIs)
- [ ] Auth token in headers or URL parameters (useful for APIs) - [ ] Auth token in headers or URL parameters (useful for APIs)
@ -76,4 +76,4 @@ Are you experienced with authentication procedures and best practices? We would
### SAAS ### SAAS
We intend at some point to provide Pangolin in a hosted offering with a healthy free tier and pricing competitive to generally available cloud VPS services. This way users who would like to use Pangolin - but don't want to manage their own VPS - can do so and help to fund future development. We intend at some point to provide Pangolin in a hosted offering with a healthy free tier and pricing competitive to generally available cloud VPS services. This way users who would like to use Pangolin - but don't want to manage their own VPS - can do so and help to fund future development.

View file

@ -157,25 +157,22 @@ const config: Config = {
prism: { prism: {
theme: prismThemes.github, theme: prismThemes.github,
darkTheme: prismThemes.dracula darkTheme: prismThemes.dracula
}, }
} satisfies Preset.ThemeConfig,
plugins: [ plugins: [
[ [
"@dipakparmar/docusaurus-plugin-umami", "@dipakparmar/docusaurus-plugin-umami",
/** @type {import('@dipakparmar/docusaurus-plugin-umami').Options} */ /** @type {import('@dipakparmar/docusaurus-plugin-umami').Options} */
{ {
websiteID: "d9a3a131-d2f4-4f8f-922b-80d668e96640", // Required websiteID: "d9a3a131-d2f4-4f8f-922b-80d668e96640", // Required
analyticsDomain: "umami.schwartznetwork.net", // Required analyticsDomain: "umami.schwartznetwork.net", // Required
scriptName: "", // Optional dataAutoTrack: false, // Optional
dataHostURL: "", // Optional dataDoNotTrack: false, // Optional
dataAutoTrack: true, // Optional dataCache: true, // Optional
dataDoNotTrack: true, // Optional dataDomains: "docs.fossorial.io" // comma separated list of domains, *Recommended*
dataCache: true, // Optional }
dataDomains: "docs.fossorial.io" // comma separated list of domains, *Recommended*
}
]
] ]
} satisfies Preset.ThemeConfig ]
}; };
export default config; export default config;

View file

@ -15,6 +15,7 @@
"typecheck": "tsc" "typecheck": "tsc"
}, },
"dependencies": { "dependencies": {
"@dipakparmar/docusaurus-plugin-umami": "2.1.7",
"@docusaurus/core": "3.6.3", "@docusaurus/core": "3.6.3",
"@docusaurus/preset-classic": "3.6.3", "@docusaurus/preset-classic": "3.6.3",
"@mdx-js/react": "^3.0.0", "@mdx-js/react": "^3.0.0",