Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrMilchmann committed Jul 10, 2024
0 parents commit 0a06d9b
Show file tree
Hide file tree
Showing 629 changed files with 156,002 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gradlew text eol=lf
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @TheMrMilchmann
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 20
commit-message:
prefix: "build"
labels:
- "a:chore"
- "in:build"
- "in:dependencies"
groups:
"@actions/artifacts":
patterns:
- "actions/deploy-pages"
- "actions/download-artifact"
- "actions/upload-artifact"
- "actions/upload-pages-artifact"

- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 20
commit-message:
prefix: "build"
labels:
- "a:chore"
- "in:build"
- "in:dependencies"
60 changes: 60 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CD
on:
push:
branches:
- "master"
workflow_dispatch:


env:
JDK_VERSION: "22"


jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ env.JDK_VERSION }}

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true

- name: Gradle Check
run: ./gradlew check --info -S --show-version

- name: Gradle Build Distribution
run: ./gradlew wasmJsBrowserDistribution --info -S --show-version

- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build/dist/wasmJs/productionExecutable

deploy:
needs: build-test
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on:
- pull_request
- push
- workflow_dispatch


env:
JDK_VERSION: "22"


jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ env.JDK_VERSION }}

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true

- name: Gradle Check
run: ./gradlew check --info -S --show-version
38 changes: 38 additions & 0 deletions .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Dependency Submission
on:
push:
branches:
- master


permissions:
contents: write


env:
JDK_VERSION: "22"


jobs:
submit-dependencies:
name: Update Dependency Graph
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ env.JDK_VERSION }}

- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/.gradle

!/.idea
/.idea/*
!/.idea/copyright
!/.idea/inspectionProfiles
!/.idea/runConfigurations
!/.idea/scopes
!/.idea/icon.png

/.kotlin

/build

/node_modules
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "deps/GW2APIClient"]
path = deps/GW2APIClient
url = https://github.com/GW2ToolBelt/GW2APIClient
branch = tmm/wasm-support
6 changes: 6 additions & 0 deletions .idea/copyright/MIT__Main_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright (c) 2022-2024 Leon Linhart
All rights reserved.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# GW2TB Link

[link.gw2tb.com](https://link.gw2tb.com) is a simple utility for en- and
decoding Guild Wars 2 [chat links](https://wiki.guildwars2.com/wiki/Chat_link_format).


## Building from Source

!TODO


## License

#### link

```
Copyright (c) 2022-2024 Leon Linhart
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.
```

--------------------------------------------------------------------------------

#### Guild Wars 2

> © ArenaNet LLC. All rights reserved. NCSOFT, ArenaNet, Guild Wars, Guild
> Wars 2, GW2, Guild Wars 2: Heart of Thorns, Guild Wars 2: Path of Fire, Guild
> Wars 2: End of Dragons, and Guild Wars 2: Secrets of the Obscure and all
> associated logos, designs, and composite marks are trademarks or registered
> trademarks of NCSOFT Corporation.
As taken from [Guild Wars 2 Content Terms of Use](https://www.guildwars2.com/en/legal/guild-wars-2-content-terms-of-use/)
on 2024-01-23 00:57 CET.
78 changes: 78 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* Copyright (c) 2022-2024 Leon Linhart
*
* 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.
*/
import org.jetbrains.compose.resources.ResourcesExtension
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
import org.jetbrains.kotlin.gradle.targets.js.yarn.yarn

plugins {
alias(libs.plugins.compose)
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.plugin.compose)
alias(libs.plugins.kotlin.plugin.serialization)
}

compose {
resources {
generateResClass = ResourcesExtension.ResourceClassGeneration.Always
}
}

yarn.lockFileName = "kotlin-yarn.lock"
yarn.lockFileDirectory = rootProject.projectDir

kotlin {
applyDefaultHierarchyTemplate()

@OptIn(ExperimentalWasmDsl::class)
wasmJs {
moduleName = "link"

browser()

binaries.executable()
}

sourceSets {
named("wasmJsMain") {
dependencies {
implementation(compose.components.resources)
implementation(compose.material3)
implementation(compose.runtime)
implementation(compose.ui)
implementation(libs.coil.compose.core)
implementation(libs.coil.network.ktor)
implementation(libs.gw2api.client)
implementation(libs.gw2api.client.ktor)
implementation(libs.gw2chatlinks)
implementation(libs.ktor.client.core)
}
}
}
}

repositories {
mavenCentral()
maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/")
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
}
2 changes: 2 additions & 0 deletions deps/GW2APIClient/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/modules/*/src/*-generated/** text=auto eol=lf
gradlew text eol=lf
1 change: 1 addition & 0 deletions deps/GW2APIClient/.github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @TheMrMilchmann
Loading

0 comments on commit 0a06d9b

Please sign in to comment.