### Start Development Server Source: https://github.com/toboshii/hajimari/blob/main/frontend/README.md Starts the SvelteKit development server for local development. Use the --open flag to automatically open the application in a new browser tab. ```bash npm run dev ``` ```bash npm run dev -- --open ``` -------------------------------- ### Hajimari Helm Chart Example Configuration Source: https://github.com/toboshii/hajimari/blob/main/charts/hajimari/README.md This is a complete example of the values.yaml file for the Hajimari Helm chart. It demonstrates how to configure instance settings, namespace selection, themes, search providers, custom applications, and global bookmarks. ```yaml hajimari: instanceName: null defaultEnable: true namespaceSelector: matchNames: - default - downloads - media name: You title: Hajimari lightTheme: gazette darkTheme: horizon customThemes: - name: danger backgroundColor: '#0c0e0c' primaryColor: '#eaebea' accentColor: '#d8323c' showGreeting: true showAppGroups: false showAppUrls: true showAppInfo: false showAppStatus: true defaultAppIcon: mdi:application showBookmarkGroups: true showGlobalBookmarks: false alwaysTargetBlank: false defaultSearchProvider: Google searchProviders: - name: Google token: g icon: simple-icons:google searchUrl: https://www.google.com/search?q={query} url: https://www.google.com - name: DuckDuckGo token: d icon: simple-icons:duckduckgo searchUrl: https://duckduckgo.com/?q={query} url: https://duckduckgo.com - name: IMDB token: i icon: simple-icons:imdb searchUrl: https://www.imdb.com/find?q={query} url: https://www.imdb.com - name: Reddit token: r icon: simple-icons:reddit searchUrl: https://www.reddit.com/search?q={query} url: https://www.reddit.com - name: YouTube token: 'y' icon: simple-icons:youtube searchUrl: https://www.youtube.com/results?search_query={query} url: https://www.youtube.com - name: Spotify token: s icon: simple-icons:spotify searchUrl: hhttps://open.spotify.com/search/{query} url: https://open.spotify.com customApps: - group: Media apps: - name: Test url: 'https://example.com' icon: 'mdi:test-tube' info: This is a test app globalBookmarks: - group: Communicate bookmarks: - name: Discord url: 'https://discord.com' - name: Gmail url: 'http://gmail.com' - name: Slack url: 'https://slack.com/signin' - group: Cloud bookmarks: - name: Box url: 'https://box.com' - name: Dropbox url: 'https://dropbox.com' - name: Drive url: 'https://drive.google.com' - group: Design bookmarks: - name: Awwwards url: 'https://awwwards.com' - name: Dribbble url: 'https://dribbble.com' - name: Muz.li url: 'https://medium.muz.li/' - group: Dev bookmarks: - name: Codepen url: 'https://codepen.io/' - name: Devdocs url: 'https://devdocs.io' - name: Devhints url: 'https://devhints.io' - group: Lifestyle bookmarks: - name: Design Milk url: 'https://design-milk.com/category/interior-design/' - name: Dwell url: 'https://www.dwell.com/' - name: Freshome url: 'https://www.mymove.com/freshome/' - group: Media bookmarks: - name: Spotify url: 'http://browse.spotify.com' - name: Trakt url: 'http://trakt.tv' - name: YouTube url: 'https://youtube.com/feed/subscriptions' - group: Reading bookmarks: - name: Instapaper url: 'https://www.instapaper.com/u' - name: Medium url: 'http://medium.com' - name: Reddit url: 'http://reddit.com' - group: Tech bookmarks: - name: TheNextWeb url: 'https://thenextweb.com/' - name: The Verge url: 'https://theverge.com/' - name: MIT Technology Review url: 'https://www.technologyreview.com/' ingress: main: enabled: true hosts: - host: hajimari.domain.tld paths: - path: / pathType: Prefix persistence: data: enabled: true accessMode: ReadWriteOnce size: 1Gi ``` -------------------------------- ### Install Dependencies Locally Source: https://github.com/toboshii/hajimari/blob/main/README.md Installs project dependencies required for building or developing Hajimari locally. ```bash make deps ``` -------------------------------- ### Install Hajimari using Helm Source: https://github.com/toboshii/hajimari/blob/main/README.md Installs the Hajimari application into your Kubernetes cluster using Helm. ```bash helm install hajimari hajimari/hajimari ``` -------------------------------- ### Run Hajimari in Development Mode Source: https://github.com/toboshii/hajimari/blob/main/README.md Starts Hajimari in development mode with hot reload for local development. ```bash make dev ``` -------------------------------- ### Build Production Version Source: https://github.com/toboshii/hajimari/blob/main/frontend/README.md Creates a production-ready build of the SvelteKit application. ```bash npm run build ``` -------------------------------- ### Build Hajimari Binary Locally Source: https://github.com/toboshii/hajimari/blob/main/README.md Builds the Hajimari binary from the source code for local use. ```bash make build ``` -------------------------------- ### Add Hajimari Helm Repository Source: https://github.com/toboshii/hajimari/blob/main/README.md Adds the Hajimari Helm repository to your local Helm configuration. ```bash helm repo add hajimari https://hajimari.io ``` -------------------------------- ### Default Search Providers Configuration Source: https://github.com/toboshii/hajimari/blob/main/README.md This YAML configuration defines the default search providers for Hajimari, including Google, DuckDuckGo, IMDB, Reddit, YouTube, and Spotify. Each provider has a name, token, icon, search URL, and a base URL. ```yaml searchProviders: - name: Google token: g icon: simple-icons:google searchUrl: https://www.google.com/search?q={query} url: https://www.google.com - name: DuckDuckGo token: d icon: simple-icons:duckduckgo searchUrl: https://duckduckgo.com/?q={query} url: https://duckduckgo.com - name: IMDB token: i icon: simple-icons:imdb searchUrl: https://www.imdb.com/find?q={query} url: https://www.imdb.com - name: Reddit token: r icon: simple-icons:reddit searchUrl: https://www.reddit.com/search?q={query} url: https://www.reddit.com - name: YouTube token: 'y' icon: simple-icons:youtube searchUrl: https://www.youtube.com/results?search_query={query} url: https://www.youtube.com - name: Spotify token: s icon: simple-icons:spotify searchUrl: hhttps://open.spotify.com/search/{query} url: https://open.spotify.com ``` -------------------------------- ### SvelteKit Head and Body Placeholders Source: https://github.com/toboshii/hajimari/blob/main/frontend/src/app.html These are standard SvelteKit placeholders for injecting content into the HTML document's head and body sections. They are essential for integrating SvelteKit's routing and rendering mechanisms. ```html %sveltekit.head% ``` ```html %sveltekit.body% ``` -------------------------------- ### Apply Theme from Local Storage Source: https://github.com/toboshii/hajimari/blob/main/frontend/src/app.html Applies CSS variables for background, primary text, and accent text colors from local storage to the document's root element when the DOM is fully loaded. This ensures theme persistence across sessions. ```javascript if (document) { const setValueFromLocalStorage = property => { let value = localStorage.getItem(property); if (value) { document.documentElement.style.setProperty("--${property}", value); } }; document.addEventListener('DOMContentLoaded', () => { setValueFromLocalStorage('color-background'); setValueFromLocalStorage('color-text-pri'); setValueFromLocalStorage('color-text-acc'); }); } ``` -------------------------------- ### Update Helm Repositories Source: https://github.com/toboshii/hajimari/blob/main/README.md Updates all configured Helm repositories, including the newly added Hajimari repository. ```bash helm repo update ``` -------------------------------- ### Define Hajimari Application via Custom Resource Source: https://github.com/toboshii/hajimari/blob/main/README.md Use this YAML to define an Application object in Kubernetes for Hajimari. It specifies application details like name, icon, URL, and whether to open in a new tab. ```yaml apiVersion: hajimari.io/v1alpha1 kind: Application metadata: name: hajimari-issues spec: name: Hajimari Issues group: info icon: simple-icons:github url: https://github.com/toboshii/hajimari/issues info: Submit issue to this project targetBlank: true ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.