repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/tiles/Bluetooth.tsx
src/window/control-center/widgets/tiles/Bluetooth.tsx
import { Tile } from "./Tile"; import { BluetoothPage } from "../pages/Bluetooth"; import { TilesPages } from "../tiles"; import { createBinding, createComputed } from "ags"; import { Bluetooth } from "../../../../modules/bluetooth"; import AstalBluetooth from "gi://AstalBluetooth"; import { secureBaseBinding } from "...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/tiles/NightLight.tsx
src/window/control-center/widgets/tiles/NightLight.tsx
import { Tile } from "./Tile"; import { NightLight } from "../../../../modules/nightlight"; import { PageNightLight } from "../pages/NightLight"; import { tr } from "../../../../i18n/intl"; import { TilesPages } from "../tiles"; import { isInstalled } from "../../../../modules/utils"; import { createBinding, createComp...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/tiles/Tile.tsx
src/window/control-center/widgets/tiles/Tile.tsx
import { Gtk } from "ags/gtk4"; import { createBinding } from "ags"; import { omitObjectKeys, variableToBoolean } from "../../../../modules/utils"; import { property, register, signal } from "ags/gobject"; import Pango from "gi://Pango?version=1.0"; @register({ GTypeName: "ClshTile" }) export class Tile extends Gtk....
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/tiles/index.tsx
src/window/control-center/widgets/tiles/index.tsx
import { Gtk } from "ags/gtk4"; import { TileNetwork } from "./Network"; import { TileBluetooth } from "./Bluetooth"; import { TileDND } from "./DoNotDisturb"; import { TileRecording } from "./Recording"; import { TileNightLight } from "./NightLight"; import { Pages } from "../pages"; import { createRoot, getScope } fr...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/tiles/Network.tsx
src/window/control-center/widgets/tiles/Network.tsx
import { Tile } from "./Tile"; import { execAsync } from "ags/process"; import { PageNetwork } from "../pages/Network"; import { tr } from "../../../../i18n/intl"; import { TilesPages } from "../tiles"; import { Accessor, createBinding, createComputed } from "ags"; import { secureBaseBinding } from "../../../../modules...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/pages/Bluetooth.tsx
src/window/control-center/widgets/pages/Bluetooth.tsx
import { Gtk } from "ags/gtk4"; import { Page, PageButton } from "../Page"; import { tr } from "../../../../i18n/intl"; import { Windows } from "../../../../windows"; import { Notifications } from "../../../../modules/notifications"; import { execApp } from "../../../../modules/apps"; import { createBinding, createComp...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/pages/NightLight.tsx
src/window/control-center/widgets/pages/NightLight.tsx
import { Page } from "../Page"; import { NightLight } from "../../../../modules/nightlight"; import { tr } from "../../../../i18n/intl"; import { Astal, Gtk } from "ags/gtk4"; import { addSliderMarksFromMinMax } from "../../../../modules/utils"; import { createBinding } from "ags"; export const PageNightLight = <Page...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/pages/Sound.tsx
src/window/control-center/widgets/pages/Sound.tsx
import { Page, PageButton } from "../Page"; import { Astal, Gtk } from "ags/gtk4"; import { getAppIcon, lookupIcon } from "../../../../modules/apps"; import { Wireplumber } from "../../../../modules/volume"; import { tr } from "../../../../i18n/intl"; import { createBinding, For } from "ags"; import { createScopedConne...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/pages/index.tsx
src/window/control-center/widgets/pages/index.tsx
import GObject, { getter, gtype, register } from "ags/gobject"; import { Gtk } from "ags/gtk4"; import { Page } from "../Page"; import GLib from "gi://GLib?version=2.0"; @register({ GTypeName: "Pages" }) export class Pages extends Gtk.Box { #timeouts: Array<[GLib.Source, (() => void)|undefined]> = []; #page:...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/pages/Microphone.tsx
src/window/control-center/widgets/pages/Microphone.tsx
import { Page, PageButton } from "../Page"; import { Wireplumber } from "../../../../modules/volume"; import { Gtk } from "ags/gtk4"; import { tr } from "../../../../i18n/intl"; import { createBinding, For } from "ags"; import { lookupIcon } from "../../../../modules/apps"; import AstalWp from "gi://AstalWp?version=0....
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/pages/Backlight.tsx
src/window/control-center/widgets/pages/Backlight.tsx
import { Astal, Gtk } from "ags/gtk4"; import { tr } from "../../../../i18n/intl"; import { Backlights } from "../../../../modules/backlight"; import { Page, PageButton } from "../Page"; import { createBinding, For, With } from "ags"; import { addSliderMarksFromMinMax } from "../../../../modules/utils"; import { userDa...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/pages/Network.tsx
src/window/control-center/widgets/pages/Network.tsx
import { Gtk } from "ags/gtk4"; import { Page, PageButton } from "../Page"; import { Windows } from "../../../../windows"; import { tr } from "../../../../i18n/intl"; import { execApp } from "../../../../modules/apps"; import { Notifications } from "../../../../modules/notifications"; import { AskPopup, AskPopupProps }...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/center-window/index.tsx
src/window/center-window/index.tsx
import { Gdk, Gtk } from "ags/gtk4"; import { Separator } from "../../widget/Separator"; import { PopupWindow } from "../../widget/PopupWindow"; import { BigMedia } from "./widgets/BigMedia"; import { time, variableToBoolean } from "../../modules/utils"; import { createBinding } from "ags"; import Media from "../../mo...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/center-window/widgets/BigMedia.tsx
src/window/center-window/widgets/BigMedia.tsx
import { createBinding, For } from "ags"; import { register } from "ags/gobject"; import { Astal, Gdk, Gtk } from "ags/gtk4"; import { Clipboard } from "../../../modules/clipboard"; import { createSubscription, pathToURI, variableToBoolean } from "../../../modules/utils"; import { Cache } from "../../../modules/cache";...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/osd/index.tsx
src/window/osd/index.tsx
import { Astal, Gtk } from "ags/gtk4"; import { createBinding, createState, With } from "ags"; import { Wireplumber } from "../../modules/volume"; import { Windows } from "../../windows"; import { Backlights } from "../../modules/backlight"; import { secureBaseBinding, variableToBoolean } from "../../modules/utils"; i...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/osd/modules/osdmode.ts
src/window/osd/modules/osdmode.ts
import { Accessor } from "ags"; import { construct } from "../../../modules/utils"; import GObject, { gtype, property, register } from "ags/gobject"; @register({ GTypeName: "OSDMode" }) export default class OSDMode extends GObject.Object { readonly #subs: Array<() => void> = []; @property(String) icon: s...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/bar/index.tsx
src/window/bar/index.tsx
import { Astal, Gtk } from "ags/gtk4"; import { Tray } from "./widgets/Tray"; import { Workspaces } from "./widgets/Workspaces"; import { FocusedClient } from "./widgets/FocusedClient"; import { Apps } from "./widgets/Apps"; import { Clock } from "./widgets/Clock"; import { Status } from "./widgets/Status"; import { Me...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/bar/widgets/Clock.tsx
src/window/bar/widgets/Clock.tsx
import { Gtk } from "ags/gtk4"; import { Windows } from "../../../windows"; import { createBinding } from "ags"; import { time } from "../../../modules/utils"; import { generalConfig } from "../../../config"; export const Clock = () => <Gtk.Button class={createBinding(Windows.getDefault(), "openWindows").as((win...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/bar/widgets/Tray.tsx
src/window/bar/widgets/Tray.tsx
import { createBinding, createComputed, For, With } from "ags"; import { Gdk, Gtk } from "ags/gtk4"; import { variableToBoolean } from "../../../modules/utils"; import GObject from "gi://GObject?version=2.0"; import AstalTray from "gi://AstalTray" import Gio from "gi://Gio?version=2.0"; const astalTray = AstalTray.g...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/bar/widgets/Media.tsx
src/window/bar/widgets/Media.tsx
import { createBinding, With } from "ags"; import { Gtk } from "ags/gtk4"; import { Separator } from "../../../widget/Separator"; import { Windows } from "../../../windows"; import { Clipboard } from "../../../modules/clipboard"; import { getPlayerIconFromBusName, secureBaseBinding, secureBinding, variableToBoolean } f...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/bar/widgets/Workspaces.tsx
src/window/bar/widgets/Workspaces.tsx
import { Gtk } from "ags/gtk4"; import { getAppIcon, getSymbolicIcon } from "../../../modules/apps"; import { Separator } from "../../../widget/Separator"; import { generalConfig } from "../../../config"; import { createBinding, createComputed, createState, For, With } from "ags"; import { variableToBoolean } from "../...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/bar/widgets/FocusedClient.tsx
src/window/bar/widgets/FocusedClient.tsx
import { Compositor } from "../../../modules/compositors"; import { Gtk } from "ags/gtk4"; import { createBinding, With } from "ags"; import { variableToBoolean } from "../../../modules/utils"; import { getAppIcon, getSymbolicIcon } from "../../../modules/apps"; import Pango from "gi://Pango?version=1.0"; export cons...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/bar/widgets/Status.tsx
src/window/bar/widgets/Status.tsx
import { Gtk } from "ags/gtk4"; import { Wireplumber } from "../../../modules/volume"; import { Battery } from "../../../modules/battery"; import { Notifications } from "../../../modules/notifications"; import { Windows } from "../../../windows"; import { Recording } from "../../../modules/recording"; import { Accessor...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/bar/widgets/Apps.tsx
src/window/bar/widgets/Apps.tsx
import { Gtk } from "ags/gtk4"; import { Windows } from "../../../windows"; import { createBinding } from "ags"; import { tr } from "../../../i18n/intl"; export const Apps = () => <Gtk.Button class={createBinding(Windows.getDefault(), "openWindows").as((openWindows) => `apps ${Object.hasOwn(openWindow...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/apps-window/index.tsx
src/window/apps-window/index.tsx
import { Astal, Gdk, Gtk } from "ags/gtk4"; import { execApp, getAppIcon, getApps, getAstalApps } from "../../modules/apps"; import { getPopupWindowContainer, PopupWindow } from "../../widget/PopupWindow"; import AstalApps from "gi://AstalApps"; import Pango from "gi://Pango?version=1.0"; import { createState, For } f...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/i18n/struct.ts
src/i18n/struct.ts
export type i18nStruct = { language: string, cancel: string, accept: string, connected: string, disconnected: string, connecting: string, unknown: string, none: string, limited: string, devices: string, others: string, disconnect: string, connect: string, app...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/i18n/intl.ts
src/i18n/intl.ts
import GLib from "gi://GLib?version=2.0"; const i18nKeys = { en_US: (await import("./lang/en_US")).default, fr_FR: (await import("./lang/fr_FR")).default, fr_BE: (await import("./lang/fr_FR")).default, pt_BR: (await import("./lang/pt_BR")).default, ru_RU: (await import("./lang/ru_RU")).default, }; const lan...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/i18n/lang/pt_BR.ts
src/i18n/lang/pt_BR.ts
import { i18nStruct } from "../struct"; export default { language: "Português (Brasil)", cancel: "Cancelar", accept: "Ok", devices: "Dispositivos", others: "Outros", connected: "Conectado", disconnected: "Desconectado", unknown: "Desconhecido", connecting: "Conectando", limite...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/i18n/lang/fr_FR.ts
src/i18n/lang/fr_FR.ts
import { i18nStruct } from "../struct"; export default { language: "Français (France)", cancel: "Annuler", accept: "Ok", devices: "Appareils", others: "Autres", connected: "Connecté", disconnected: "Déconnecté", unknown: "Inconnu", connecting: "Connexion en cours", none: "Aucun", limited: "Limi...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/i18n/lang/en_US.ts
src/i18n/lang/en_US.ts
import { i18nStruct } from "../struct"; export default { language: "English (United States)", cancel: "Cancel", accept: "Ok", devices: "Devices", others: "Others", connected: "Connected", disconnected: "Disconnected", unknown: "Unknown", connecting: "Connecting", none: "None",...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/i18n/lang/ru_RU.ts
src/i18n/lang/ru_RU.ts
import { i18nStruct } from "../struct"; export default { language: "Русский (Российская Федерация)", cancel: "Отменить", accept: "Ок", devices: "Устройства", others: "Другие", connected: "Подключён", disconnected: "Отключён", unknown: "Неизвестный", connecting: "Подключение", ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/Runner.tsx
src/runner/Runner.tsx
import { Astal, Gdk, Gtk } from "ags/gtk4"; import { CCProps, createRoot } from "ags"; import { getPopupWindowContainer, PopupWindow } from "../widget/PopupWindow"; import { updateApps } from "../modules/apps"; import { ResultWidget, ResultWidgetProps } from "./widgets/ResultWidget"; import { Windows } from "../windows...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/plugins/wallpapers.ts
src/runner/plugins/wallpapers.ts
import { Gdk, Gtk } from "ags/gtk4"; import { Wallpaper } from "../../modules/wallpaper"; import { Runner } from "../Runner"; import { createRoot, jsx } from "ags"; import { createScopedConnection } from "gnim-utils"; import { ResultWidget } from "../widgets/ResultWidget"; import Fuse, { IFuseOptions } from "fuse.js"; ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/plugins/shell.ts
src/runner/plugins/shell.ts
import { Runner } from "../Runner"; import { Notifications } from "../../modules/notifications"; import GLib from "gi://GLib?version=2.0"; import Gio from "gi://Gio?version=2.0"; export const PluginShell = (() => { const shell = GLib.getenv("SHELL") ?? "/bin/sh"; const procLauncher = Gio.SubprocessLauncher....
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/plugins/kill.ts
src/runner/plugins/kill.ts
import { execAsync } from "ags/process"; import { Runner } from "../Runner"; import { Notifications } from "../../modules/notifications"; export const PluginKill = { prefix: ":k", handle: () => ({ title: "Select a client to kill", closeOnClick: true, icon: "window-close-symbolic", ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/plugins/clipboard.ts
src/runner/plugins/clipboard.ts
import { Gtk } from "ags/gtk4"; import { Clipboard, ClipboardItem } from "../../modules/clipboard"; import { Runner } from "../Runner"; import { jsx } from "ags/gtk4/jsx-runtime"; import Fuse from "fuse.js"; class _PluginClipboard implements Runner.Plugin { #fuse!: Fuse<unknown>; prefix = '>'; prioritize...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/plugins/websearch.ts
src/runner/plugins/websearch.ts
import AstalHyprland from "gi://AstalHyprland"; import { Runner } from "../Runner"; const searchEngines = { duckduckgo: "https://duckduckgo.com/?q=", google: "https://google.com/search?q=", yahoo: "https://search.yahoo.com/search?p=" }; let engine: string = searchEngines.google; export const PluginWebSe...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/plugins/index.ts
src/runner/plugins/index.ts
import { PluginApps } from "./apps" import { PluginClipboard } from "./clipboard" import { PluginMedia } from "./media" import { PluginShell } from "./shell" import { PluginWallpapers } from "./wallpapers" import { PluginWebSearch } from "./websearch" import { PluginKill } from "./kill" export { PluginApps, ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/plugins/media.ts
src/runner/plugins/media.ts
import { createBinding, createComputed } from "ags"; import { Runner } from "../Runner"; import { secureBaseBinding } from "../../modules/utils"; import { tr } from "../../i18n/intl"; import Media from "../../modules/media"; import AstalMpris from "gi://AstalMpris"; export const PluginMedia = { prefix: ":", ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/plugins/apps.ts
src/runner/plugins/apps.ts
import { execApp, getAstalApps, lookupIcon, updateApps } from "../../modules/apps"; import { Runner } from "../Runner"; export const PluginApps = { // Do not provide prefix, so it always runs. name: "Apps", // asynchronously-refresh apps list on init init: async () => updateApps(), handle: (text: s...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/runner/widgets/ResultWidget.tsx
src/runner/widgets/ResultWidget.tsx
import { getter, gtype, property, register, setter, signal } from "ags/gobject"; import { Gtk } from "ags/gtk4"; import { variableToBoolean } from "../../modules/utils"; import Pango from "gi://Pango?version=1.0"; import GdkPixbuf from "gi://GdkPixbuf?version=2.0"; export type ResultWidgetProps = { icon?: string...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/config.ts
src/modules/config.ts
import { monitorFile, readFile, writeFileAsync } from "ags/file"; import { Notifications } from "./notifications"; import { Accessor } from "ags"; import GObject, { getter, gtype, register } from "ags/gobject"; import Gio from "gi://Gio?version=2.0"; import AstalNotifd from "gi://AstalNotifd"; import GLib from "gi://G...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/wallpaper.ts
src/modules/wallpaper.ts
import { exec, execAsync } from "ags/process"; import { readFile, readFileAsync } from "ags/file"; import GObject, { register, getter, gtype, property, setter } from "ags/gobject"; import Gio from "gi://Gio?version=2.0"; import GLib from "gi://GLib?version=2.0"; import { createSubscription, encoder } from "./utils"; i...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/arg-handler.ts
src/modules/arg-handler.ts
import { Gtk } from "ags/gtk4"; import { Wireplumber } from "./volume"; import { Windows } from "../windows"; import { restartInstance } from "./reload-handler"; import { timeout } from "ags/time"; import { Runner } from "../runner/Runner"; import { showWorkspaceNumber } from "../window/bar/widgets/Workspaces"; import ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/notifymap.ts
src/modules/notifymap.ts
import { Accessor } from "ags"; import { getter, gtype, register, signal } from "ags/gobject"; import GObject from "gi://GObject?version=2.0"; @register({ GTypeName: "ClshNotifyMap" }) export class NotifyMap<K extends string|symbol|number = string, V = any> extends GObject.Object { declare $signals: NotifyMap.Sig...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/bluetooth.ts
src/modules/bluetooth.ts
import { createRoot, getScope, Scope } from "ags"; import { execAsync } from "ags/process"; import { userData } from "../config"; import { createScopedConnection } from "../modules/utils"; import GObject, { getter, gtype, property, register, setter } from "ags/gobject"; import AstalBluetooth from "gi://AstalBluetooth"...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/utils.ts
src/modules/utils.ts
import { createPoll } from "ags/time"; import { exec, execAsync } from "ags/process"; import { Astal, Gtk } from "ags/gtk4"; import { getSymbolicIcon } from "./apps"; export { toBoolean as variableToBoolean, construct, transform, transformWidget, createSubscription, createAccessorBinding as ba...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/backlight.ts
src/modules/backlight.ts
import { monitorFile, readFile } from "ags/file"; import { exec } from "ags/process"; import GObject, { getter, ParamSpec, register, setter, signal } from "ags/gobject"; import Gio from "gi://Gio?version=2.0"; export namespace Backlights { const BacklightParamSpec = (name: string, flags: GObject.ParamFlags) => ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/auth.ts
src/modules/auth.ts
import { exec, execAsync } from "ags/process"; import { register } from "ags/gobject"; import { AuthPopup } from "../widget/AuthPopup"; import Polkit from "gi://Polkit?version=1.0"; import PolkitAgent from "gi://PolkitAgent?version=1.0"; import Gio from "gi://Gio?version=2.0"; import GLib from "gi://GLib?version=2.0";...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/cache.ts
src/modules/cache.ts
import { register } from "ags/gobject"; import GObject from "gi://GObject?version=2.0"; @register({ GTypeName: "ClshCache" }) export class Cache extends GObject.Object { private static instance: Cache; #sections: Map<string, Map<string, unknown>> = new Map(); #lastId: number = -1; constructor() ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/notifications.ts
src/modules/notifications.ts
import { execAsync } from "ags/process"; import { generalConfig } from "../config"; import { onCleanup } from "ags"; import GObject, { getter, ParamSpec, property, register, signal } from "ags/gobject"; import AstalNotifd from "gi://AstalNotifd"; import GLib from "gi://GLib?version=2.0"; import { pathToURI } from "./u...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/nightlight.ts
src/modules/nightlight.ts
import { execAsync, exec } from "ags/process"; import { userData } from "../config"; import GObject, { getter, register, setter } from "ags/gobject"; import GLib from "gi://GLib?version=2.0"; @register({ GTypeName: "NightLight" }) export class NightLight extends GObject.Object { private static instance: NightLig...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/reload-handler.ts
src/modules/reload-handler.ts
import { uwsmIsActive } from "./apps"; import Gio from "gi://Gio?version=2.0"; import { Shell } from "../app"; export function restartInstance(): void { Gio.Subprocess.new( ( uwsmIsActive ? [ "uwsm", "app", "--", "colorshell" ] : [ "colorshell" ]), Gio.SubprocessFlags.STDOU...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/volume.ts
src/modules/volume.ts
import AstalWp from "gi://AstalWp"; export class Wireplumber { private static astalWireplumber: AstalWp.Wp|null = AstalWp.get_default(); private static inst: Wireplumber; private defaultSink: AstalWp.Endpoint = Wireplumber.astalWireplumber!.get_default_speaker()!; private defaultSource: AstalWp.Endpo...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/clipboard.ts
src/modules/clipboard.ts
import { timeout } from "ags/time"; import { monitorFile, readFile } from "ags/file"; import { execAsync } from "ags/process"; import GObject, { getter, register, signal } from "ags/gobject"; import AstalIO from "gi://AstalIO"; import GLib from "gi://GLib?version=2.0"; import Gio from "gi://Gio?version=2.0"; export...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/battery.ts
src/modules/battery.ts
import { Accessor, createBinding } from "ags"; import AstalBattery from "gi://AstalBattery?version=0.1"; export class Battery { private static astalBattery: AstalBattery.Device = AstalBattery.get_default(); private static batteryInst: Battery; constructor() { AstalBattery.get_default(); } public stati...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/media.ts
src/modules/media.ts
import { Accessor, createConnection, getScope, Scope } from "ags"; import { createScopedConnection, decoder } from "./utils"; import AstalMpris from "gi://AstalMpris"; import GObject from "gi://GObject?version=2.0"; import { property, register } from "ags/gobject"; @register({ GTypeName: "Media" }) export default cl...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/recording.ts
src/modules/recording.ts
import { execAsync } from "ags/process"; import { getter, register, signal } from "ags/gobject"; import { Gdk } from "ags/gtk4"; import { createRoot, getScope, Scope } from "ags"; import { makeDirectory } from "./utils"; import { Notifications } from "./notifications"; import { time } from "./utils"; import GObject fr...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/stylesheet.ts
src/modules/stylesheet.ts
import { monitorFile, readFile, writeFileAsync } from "ags/file"; import { decoder } from "./utils"; import { execAsync } from "ags/process"; import { Wallpaper } from "./wallpaper"; import { Shell } from "../app"; import Gio from "gi://Gio?version=2.0"; import GLib from "gi://GLib?version=2.0"; /** handles styleshe...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/apps.ts
src/modules/apps.ts
import { Gdk, Gtk } from "ags/gtk4"; import { execAsync } from "ags/process"; import AstalApps from "gi://AstalApps"; import AstalHyprland from "gi://AstalHyprland"; export const uwsmIsActive: boolean = await execAsync( "uwsm check is-active" ).then(() => true).catch(() => false); const astalApps: AstalApps.Apps...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/compositors/hyprland.ts
src/modules/compositors/hyprland.ts
import { Compositor } from "."; import { register } from "ags/gobject"; import { createRoot, getScope, Scope } from "ags"; import { createScopedConnection } from "../utils"; import AstalHyprland from "gi://AstalHyprland"; type Event = "activewindow" | "activewindowv2" | "workspace" | "workspacev2" ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/modules/compositors/index.ts
src/modules/compositors/index.ts
import GObject, { getter, gtype, property, register, signal } from "ags/gobject"; /** WIP modular implementation of a system that supports implementing * a variety of Wayland Compositors * @todo implement more general compositor properties + a lot of stuff * */ @register({ GTypeName: "Compositor" }) export class Com...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/cli/index.ts
src/cli/index.ts
import { Scope } from "ags"; import { createScopedConnection, decoder, encoder } from "../modules/utils"; import main from "./modules/main"; import volume from "./modules/volume"; import devel from "./modules/devel"; import media from "./modules/media"; import Gio from "gi://Gio?version=2.0"; import GLib from "gi://GL...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/cli/modules/devel.ts
src/cli/modules/devel.ts
import { Gtk } from "ags/gtk4"; import { Cli } from ".."; export default { prefix: "dev", help: "development tools to help debugging colorshell", commands: [{ name: "inspector", help: "open the gtk's visual inspector", onCalled: (print) => { Gtk.Window.set_interactive_d...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/cli/modules/main.ts
src/cli/modules/main.ts
import GLib from "gi://GLib?version=2.0"; import { Cli } from ".."; import { showWorkspaceNumber } from "../../window/bar/widgets/Workspaces"; import { Windows } from "../../windows"; let window: string|undefined; const defaultPeekMillis = 2200; let peekMillis: number = defaultPeekMillis, peekTimeout: GLib.Source...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/cli/modules/volume.ts
src/cli/modules/volume.ts
import { Cli } from ".."; import { Wireplumber } from "../../modules/volume"; type DeviceType = "sink"|"source"; let device: DeviceType|undefined; export default { prefix: "volume", onCalled: () => device = undefined, help: `\ Control speaker and microphone volume levels. Extra help: sink is the defa...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/cli/modules/media.ts
src/cli/modules/media.ts
import AstalMpris from "gi://AstalMpris?version=0.1"; import { Cli } from ".."; import Media from "../../modules/media"; export default { prefix: "media", help: `\ Manage colorshell's active player Arguments: --select, -s [bus_name]: set new active player by its bus name. Commands: play: resume/start a...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/widget/BackgroundWindow.tsx
src/widget/BackgroundWindow.tsx
import { Accessor } from "ags"; import { Astal, Gdk, Gtk } from "ags/gtk4"; import GObject from "gi://GObject?version=2.0"; const { TOP, LEFT, RIGHT, BOTTOM } = Astal.WindowAnchor; export type BackgroundWindowProps = { /** GtkWindow Layer */ layer?: Astal.Layer | Accessor<Astal.Layer>; /** Monitor number...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/widget/Notification.tsx
src/widget/Notification.tsx
import { Gdk, Gtk } from "ags/gtk4"; import { Separator } from "./Separator"; import { Cache } from "../modules/cache"; import { Notifications } from "../modules/notifications"; import { getIconByAppName, getSymbolicIcon, lookupIcon } from "../modules/apps"; import { createScopedConnection, omitObjectKeys, pathToURI } ...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/widget/AuthPopup.tsx
src/widget/AuthPopup.tsx
import { Astal, Gtk } from "ags/gtk4"; import { CustomDialog, getContainerCustomDialog } from "./CustomDialog"; import GLib from "gi://GLib?version=2.0"; export type AuthPopupData = { user: string; hidePassword: boolean; passwd: string; }; export function AuthPopup(props: { /** hide password on show...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/widget/PopupWindow.tsx
src/widget/PopupWindow.tsx
import { Astal, Gdk, Gtk } from "ags/gtk4"; import { BackgroundWindow } from "./BackgroundWindow"; import { Accessor, CCProps, createComputed, createRoot, getScope, Node } from "ags"; import { omitObjectKeys } from "../modules/utils"; import GObject from "ags/gobject"; type PopupWindowSpecificProps = { $?: (self...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/widget/EntryPopup.tsx
src/widget/EntryPopup.tsx
import { Accessor } from "ags"; import { tr } from "../i18n/intl"; import { CustomDialog } from "./CustomDialog"; import { Astal, Gtk } from "ags/gtk4"; export type EntryPopupProps = { title: string | Accessor<string>; text?: string | Accessor<string>; cancelText?: string | Accessor<string>; acceptText...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/widget/Separator.tsx
src/widget/Separator.tsx
import { Accessor } from "ags"; import { Gtk } from "ags/gtk4"; export interface SeparatorProps { class?: string; alpha?: number; cssColor?: string; orientation?: Gtk.Orientation; size?: number; spacing?: number; margin?: number; visible?: boolean | Accessor<boolean>; } export functio...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/widget/AskPopup.tsx
src/widget/AskPopup.tsx
import { Accessor } from "ags"; import { tr } from "../i18n/intl"; import { CustomDialog } from "./CustomDialog"; import { Astal } from "ags/gtk4"; export type AskPopupProps = { title?: string | Accessor<string>; text: string | Accessor<string>; cancelText?: string; acceptText?: string; onAccept?:...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
retrozinndev/colorshell
https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/widget/CustomDialog.tsx
src/widget/CustomDialog.tsx
import { Astal, Gtk } from "ags/gtk4"; import { Windows } from "../windows"; import { getPopupWindowContainer, PopupWindow } from "./PopupWindow"; import { Separator } from "./Separator"; import { tr } from "../i18n/intl"; import { Accessor, Node } from "ags"; import { transformWidget, variableToBoolean } from "../modu...
typescript
BSD-3-Clause
0678c32649762315a4347b803609850278568b7f
2026-01-05T04:52:41.246810Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/discord-implicit-example/vite.config.ts
custom-authentication/single-connection/discord-implicit-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/discord-implicit-example/src/App.tsx
custom-authentication/single-connection/discord-implicit-example/src/App.tsx
/* eslint-disable no-console */ import "./App.css"; import { useEnableMFA, useManageMFA, useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser} from "@web3auth/modal/react"; import { WALLET_CONNECTORS, AUTH_CONNECTION } from "@web3auth/modal"; import { useAccount } from "wagmi"; import { SendTransaction } from "./...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/discord-implicit-example/src/web3authContext.tsx
custom-authentication/single-connection/discord-implicit-example/src/web3authContext.tsx
import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io // Instantiate SDK const web3AuthOptions: Web3AuthOptions = { clie...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/discord-implicit-example/src/index.tsx
custom-authentication/single-connection/discord-implicit-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // Setup Wagmi Provider import { WagmiProvider } from "@web3auth/modal/react/wagmi"; import { QueryClient, QueryClie...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/discord-implicit-example/src/vite-env.d.ts
custom-authentication/single-connection/discord-implicit-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/discord-implicit-example/src/components/sendTransaction.tsx
custom-authentication/single-connection/discord-implicit-example/src/components/sendTransaction.tsx
import { FormEvent } from "react"; import { useWaitForTransactionReceipt, useSendTransaction, BaseError } from "wagmi"; import { Hex, parseEther } from "viem"; export function SendTransaction() { const { data: hash, error, isPending, sendTransaction } = useSendTransaction() async function submit(e: FormEvent<HTML...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/discord-implicit-example/src/components/getBalance.tsx
custom-authentication/single-connection/discord-implicit-example/src/components/getBalance.tsx
import { useAccount, useBalance } from "wagmi"; import { formatUnits } from "viem"; export function Balance() { const { address } = useAccount() const { data, isLoading, error } = useBalance({ address }) return ( <div> <h2>Balance</h2> <div>{data?.value !== undefined && `${formatUnits(data.valu...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/discord-implicit-example/src/components/switchNetwork.tsx
custom-authentication/single-connection/discord-implicit-example/src/components/switchNetwork.tsx
import { useChainId, useSwitchChain } from 'wagmi' export function SwitchChain() { const chainId = useChainId() const { chains, switchChain, error } = useSwitchChain() return ( <div> <h2>Switch Chain</h2> <h3>Connected to {chainId}</h3> {chains.map((chain) => ( <button di...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/modal-example/vite.config.ts
custom-authentication/single-connection/modal-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/modal-example/src/App.tsx
custom-authentication/single-connection/modal-example/src/App.tsx
import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser } from "@web3auth/modal/react"; import { useAccount } from "wagmi"; import { SendTransaction } from "./components/sendTransaction"; import { Balance } from "./components/getBalance"; import { SwitchChain } from "./components/switchN...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/modal-example/src/web3authContext.tsx
custom-authentication/single-connection/modal-example/src/web3authContext.tsx
// IMP START - Quick Start import { WALLET_CONNECTORS, WEB3AUTH_NETWORK } from "@web3auth/modal"; import { type Web3AuthContextConfig } from "@web3auth/modal/react"; // IMP END - Quick Start // IMP START - Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvo...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/modal-example/src/main.tsx
custom-authentication/single-connection/modal-example/src/main.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // IMP START - Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // IMP END - Setup Web3Auth Provider // IMP START - Setup Wagmi Provider import { WagmiProvider } from "...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/modal-example/src/vite-env.d.ts
custom-authentication/single-connection/modal-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/modal-example/src/components/sendTransaction.tsx
custom-authentication/single-connection/modal-example/src/components/sendTransaction.tsx
import { FormEvent } from "react"; import { useWaitForTransactionReceipt, useSendTransaction, BaseError } from "wagmi"; import { Hex, parseEther } from "viem"; export function SendTransaction() { const { data: hash, error, isPending, sendTransaction } = useSendTransaction() async function submit(e: FormEvent<HTML...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/modal-example/src/components/getBalance.tsx
custom-authentication/single-connection/modal-example/src/components/getBalance.tsx
import { useAccount, useBalance } from "wagmi"; import { formatUnits } from "viem"; export function Balance() { const { address } = useAccount() const { data, isLoading, error } = useBalance({ address }) return ( <div> <h2>Balance</h2> <div>{data?.value !== undefined && `${formatUnits(data.valu...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/modal-example/src/components/switchNetwork.tsx
custom-authentication/single-connection/modal-example/src/components/switchNetwork.tsx
import { useChainId, useSwitchChain } from 'wagmi' export function SwitchChain() { const chainId = useChainId() const { chains, switchChain, error } = useSwitchChain() return ( <div> <h2>Switch Chain</h2> <h3>Connected to {chainId}</h3> {chains.map((chain) => ( <button di...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/twitch-implicit-example/vite.config.ts
custom-authentication/single-connection/twitch-implicit-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/twitch-implicit-example/src/App.tsx
custom-authentication/single-connection/twitch-implicit-example/src/App.tsx
/* eslint-disable no-console */ import "./App.css"; import { useWeb3AuthConnect, useWeb3AuthDisconnect, useWeb3AuthUser} from "@web3auth/modal/react"; import { WALLET_CONNECTORS, AUTH_CONNECTION } from "@web3auth/modal"; import { useAccount } from "wagmi"; import { SendTransaction } from "./components/sendTransaction";...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/twitch-implicit-example/src/web3authContext.tsx
custom-authentication/single-connection/twitch-implicit-example/src/web3authContext.tsx
import { WEB3AUTH_NETWORK, type Web3AuthOptions } from "@web3auth/modal"; // Dashboard Registration const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYiIV_og9jAvoIxQ8L3Smrwe04Lw"; // get from https://dashboard.web3auth.io // Instantiate SDK const web3AuthOptions: Web3AuthOptions = { clie...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/twitch-implicit-example/src/index.tsx
custom-authentication/single-connection/twitch-implicit-example/src/index.tsx
import "./index.css"; import ReactDOM from "react-dom/client"; // Setup Web3Auth Provider import { Web3AuthProvider } from "@web3auth/modal/react"; import web3AuthContextConfig from "./web3authContext"; // Setup Wagmi Provider import { WagmiProvider } from "@web3auth/modal/react/wagmi"; import { QueryClient, QueryClie...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/twitch-implicit-example/src/vite-env.d.ts
custom-authentication/single-connection/twitch-implicit-example/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/twitch-implicit-example/src/components/sendTransaction.tsx
custom-authentication/single-connection/twitch-implicit-example/src/components/sendTransaction.tsx
import { FormEvent } from "react"; import { useWaitForTransactionReceipt, useSendTransaction, BaseError } from "wagmi"; import { Hex, parseEther } from "viem"; export function SendTransaction() { const { data: hash, error, isPending, sendTransaction } = useSendTransaction() async function submit(e: FormEvent<HTML...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/twitch-implicit-example/src/components/getBalance.tsx
custom-authentication/single-connection/twitch-implicit-example/src/components/getBalance.tsx
import { useAccount, useBalance } from "wagmi"; import { formatUnits } from "viem"; export function Balance() { const { address } = useAccount() const { data, isLoading, error } = useBalance({ address }) return ( <div> <h2>Balance</h2> <div>{data?.value !== undefined && `${formatUnits(data.valu...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/twitch-implicit-example/src/components/switchNetwork.tsx
custom-authentication/single-connection/twitch-implicit-example/src/components/switchNetwork.tsx
import { useChainId, useSwitchChain } from 'wagmi' export function SwitchChain() { const chainId = useChainId() const { chains, switchChain, error } = useSwitchChain() return ( <div> <h2>Switch Chain</h2> <h3>Connected to {chainId}</h3> {chains.map((chain) => ( <button di...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false
Web3Auth/web3auth-examples
https://github.com/Web3Auth/web3auth-examples/blob/7cf44e9b226676781496f9274d56c70bfedde4bd/custom-authentication/single-connection/google-one-tap-example/vite.config.ts
custom-authentication/single-connection/google-one-tap-example/vite.config.ts
/* eslint-disable import/no-extraneous-dependencies */ import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], // alias are only to be added when absolutely necessary, these modules are already present in the bro...
typescript
MIT
7cf44e9b226676781496f9274d56c70bfedde4bd
2026-01-05T04:59:52.308622Z
false