Skip to content

Commit ab90d7d

Browse files
committed
agsv1 for hyprluna
0 parents  commit ab90d7d

File tree

123 files changed

+14242
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+14242
-0
lines changed

.eslintrc.yml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
env:
2+
es2021: true
3+
extends:
4+
- "eslint:recommended"
5+
- "plugin:@typescript-eslint/recommended"
6+
parser: "@typescript-eslint/parser"
7+
parserOptions:
8+
ecmaVersion: 2022
9+
sourceType: "module"
10+
project: "./tsconfig.json"
11+
warnOnUnsupportedTypeScriptVersion: false
12+
root: true
13+
ignorePatterns:
14+
- example/
15+
- types/
16+
- gi-types/
17+
- _build/
18+
- build/
19+
- result/
20+
plugins:
21+
- "@typescript-eslint"
22+
rules:
23+
"@typescript-eslint/ban-ts-comment":
24+
- "off"
25+
"@typescript-eslint/no-non-null-assertion":
26+
- "off"
27+
"@typescript-eslint/no-explicit-any":
28+
- "off"
29+
"@typescript-eslint/no-unused-vars":
30+
- error
31+
- varsIgnorePattern: (^unused|_$)
32+
argsIgnorePattern: ^(unused|_)
33+
"@typescript-eslint/no-empty-interface":
34+
- "off"
35+
36+
arrow-parens:
37+
- error
38+
- as-needed
39+
comma-dangle:
40+
- error
41+
- always-multiline
42+
comma-spacing:
43+
- error
44+
- before: false
45+
after: true
46+
comma-style:
47+
- error
48+
- last
49+
curly:
50+
- error
51+
- multi-or-nest
52+
- consistent
53+
dot-location:
54+
- error
55+
- property
56+
eol-last:
57+
- error
58+
indent:
59+
- error
60+
- 4
61+
- SwitchCase: 1
62+
keyword-spacing:
63+
- error
64+
- before: true
65+
lines-between-class-members:
66+
- error
67+
- always
68+
- exceptAfterSingleLine: true
69+
padded-blocks:
70+
- error
71+
- never
72+
- allowSingleLineBlocks: false
73+
prefer-const:
74+
- error
75+
quotes:
76+
- error
77+
- single
78+
- avoidEscape: true
79+
semi:
80+
- error
81+
- always
82+
nonblock-statement-body-position:
83+
- error
84+
- below
85+
no-trailing-spaces:
86+
- error
87+
no-useless-escape:
88+
- off
89+
max-len:
90+
- error
91+
- code: 100
92+
93+
func-call-spacing:
94+
- error
95+
array-bracket-spacing:
96+
- error
97+
space-before-function-paren:
98+
- error
99+
- anonymous: never
100+
named: never
101+
asyncArrow: ignore
102+
space-before-blocks:
103+
- error
104+
key-spacing:
105+
- error
106+
object-curly-spacing:
107+
- error
108+
- always
109+
110+
globals:
111+
pkg: readonly
112+
ARGV: readonly
113+
Debugger: readonly
114+
GIRepositoryGType: readonly
115+
globalThis: readonly
116+
imports: readonly
117+
Intl: readonly
118+
log: readonly
119+
logError: readonly
120+
print: readonly
121+
printerr: readonly
122+
window: readonly
123+
TextEncoder: readonly
124+
TextDecoder: readonly
125+
console: readonly
126+
setTimeout: readonly
127+
setInterval: readonly
128+
clearTimeout: readonly
129+
clearInterval: readonly

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: aylur
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/cachix.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Binary Cache
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
jobs:
5+
nix:
6+
name: "Build"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
with:
12+
submodules: recursive
13+
14+
- uses: cachix/install-nix-action@v25
15+
- uses: DeterminateSystems/magic-nix-cache-action@main
16+
- uses: cachix/cachix-action@v12
17+
with:
18+
name: ags
19+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
20+
21+
- name: Build ags
22+
run: |
23+
nix build --print-build-logs
24+
nix build --print-build-logs .#agsWithTypes
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Create Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
release:
12+
name: Create Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: 'recursive'
18+
- name: Create ags tar file
19+
run: |
20+
cd ..
21+
tar -czf "ags-${{ github.ref_name }}.tar.gz" "ags"
22+
- name: setup node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: latest
26+
- name: npm install
27+
run: npm install
28+
- name: create node tar file
29+
run: tar -czf "node_modules-${{ github.ref_name }}.tar.gz" "node_modules"
30+
- name: Upload assets
31+
uses: softprops/action-gh-release@v1
32+
with:
33+
files: |
34+
../ags-${{ github.ref_name }}.tar.gz
35+
node_modules-${{ github.ref_name }}.tar.gz

.github/workflows/lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: lint and typecheck
11+
uses: actions/setup-node@v3
12+
with:
13+
node-version: latest
14+
cache: 'npm'
15+
- run: npm ci
16+
- run: npm test

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
_build
3+
build
4+
run.sh
5+
tmp
6+
result

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "subprojects/gvc"]
2+
path = subprojects/gvc
3+
url = https://gitlab.gnome.org/GNOME/libgnome-volume-control

0 commit comments

Comments
 (0)