-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from xadamxk/chore/project-cleanup
Chore/project cleanup
- Loading branch information
Showing
20 changed files
with
261 additions
and
65 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Development | ||
### Install Dependencies | ||
``` | ||
npm i | ||
``` | ||
### Running the Application | ||
#### Serving Angular Live | ||
This builds the Angular and Electron portions of the code and runs the Electron application. The Angular portion of the code is served live (i.e. from a server). Changes to both the Angular portion and the Electron portion of the code are watched and will trigger the code to be recompiled. When the Angular portion of the code is recompiled, any open Electron windows will be reloaded. When the Electron portion of the code is recompiled, a new Electron process will be spawned. | ||
``` | ||
npm run start | ||
``` | ||
#### Serving Angular Locally | ||
This builds the Angular and Electron portions of the code and runs the Electron application. The Angular portion of the code is served locally (i.e. from a file). This is how the application would be ran once built into an executable. | ||
``` | ||
npm run build[:<dev|prod>] | ||
npm run electron -- ./ | ||
``` | ||
#### Skipping Angular Build | ||
If the Angular portion of the code has not changed, or if the Angular window is not being displayed, then (re)compiling the Angular portion may be skipped. | ||
``` | ||
npm run electron:build | ||
npm run electron -- ./ | ||
``` | ||
Alternatively, changes to the Electron portion of the code can be watched. When the Electron portion of the code is recompiled, a new Electron process will be spawned. | ||
``` | ||
npm run electron:watch | ||
``` | ||
### Building Executable | ||
``` | ||
npm run package | ||
``` | ||
|
||
### CI/CD Pipeline | ||
Commits trigger CodeQL analysis that build the application and add a status check to pull requests. Commits to master with a version tag (format v#.#.#) trigger the release job to build and create a release draft. The release draft requires manual review. Disabled atm |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Source: https://static.developer.riotgames.com/docs/lol/gameModes.json | ||
export enum GameModes { | ||
ARAM = 'ARAM', | ||
CLASSIC = 'CLASSIC' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
import { Model } from '../api'; | ||
|
||
export class LOLLobbyV2Lobby extends Model { | ||
canStartActivity: boolean; | ||
gameConfig: GameConfig; | ||
invitations: any[]; | ||
localMember: LocalMember; | ||
members: Member[]; | ||
mucJwtDto: MucJwtDto; | ||
multiUserChatId: string; | ||
multiUserChatPassword: string; | ||
partyId: string; | ||
partyType: string; | ||
restrictions: any; | ||
scarcePositions: any[]; | ||
warnings: any; | ||
} | ||
|
||
export interface GameConfig { | ||
allowablePremadeSizes: any[] | ||
customLobbyName: string | ||
customMutatorName: string | ||
customRewardsDisabledReasons: any[] | ||
customSpectatorPolicy: string | ||
customSpectators: any[] | ||
customTeam100: CustomTeam[] | ||
customTeam200: CustomTeam[] | ||
gameMode: string | ||
isCustom: boolean | ||
isLobbyFull: boolean | ||
isTeamBuilderManaged: boolean | ||
mapId: number | ||
maxHumanPlayers: number | ||
maxLobbySize: number | ||
maxTeamSize: number | ||
pickType: string | ||
premadeSizeAllowed: boolean | ||
queueId: number | ||
shouldForceScarcePositionSelection: boolean | ||
showPositionSelector: boolean | ||
showQuickPlaySlotSelection: boolean | ||
} | ||
|
||
export interface CustomTeam { | ||
allowedChangeActivity: boolean | ||
allowedInviteOthers: boolean | ||
allowedKickOthers: boolean | ||
allowedStartActivity: boolean | ||
allowedToggleInvite: boolean | ||
autoFillEligible: boolean | ||
autoFillProtectedForPromos: boolean | ||
autoFillProtectedForSoloing: boolean | ||
autoFillProtectedForStreaking: boolean | ||
botChampionId: number | ||
botDifficulty: string | ||
botId: string | ||
firstPositionPreference: string | ||
intraSubteamPosition: any | ||
isBot: boolean | ||
isLeader: boolean | ||
isSpectator: boolean | ||
playerSlots: any[] | ||
puuid: string | ||
quickplayPlayerState: any | ||
ready: boolean | ||
secondPositionPreference: string | ||
showGhostedBanner: boolean | ||
subteamIndex: any | ||
summonerIconId: number | ||
summonerId: number | ||
summonerInternalName: string | ||
summonerLevel: number | ||
summonerName: string | ||
teamId: number | ||
tftNPEQueueBypass: any | ||
} | ||
|
||
export interface LocalMember { | ||
allowedChangeActivity: boolean | ||
allowedInviteOthers: boolean | ||
allowedKickOthers: boolean | ||
allowedStartActivity: boolean | ||
allowedToggleInvite: boolean | ||
autoFillEligible: boolean | ||
autoFillProtectedForPromos: boolean | ||
autoFillProtectedForSoloing: boolean | ||
autoFillProtectedForStreaking: boolean | ||
botChampionId: number | ||
botDifficulty: string | ||
botId: string | ||
firstPositionPreference: string | ||
intraSubteamPosition: any | ||
isBot: boolean | ||
isLeader: boolean | ||
isSpectator: boolean | ||
playerSlots: any[] | ||
puuid: string | ||
quickplayPlayerState: any | ||
ready: boolean | ||
secondPositionPreference: string | ||
showGhostedBanner: boolean | ||
subteamIndex: any | ||
summonerIconId: number | ||
summonerId: number | ||
summonerInternalName: string | ||
summonerLevel: number | ||
summonerName: string | ||
teamId: number | ||
tftNPEQueueBypass: any | ||
} | ||
|
||
export interface Member { | ||
allowedChangeActivity: boolean | ||
allowedInviteOthers: boolean | ||
allowedKickOthers: boolean | ||
allowedStartActivity: boolean | ||
allowedToggleInvite: boolean | ||
autoFillEligible: boolean | ||
autoFillProtectedForPromos: boolean | ||
autoFillProtectedForSoloing: boolean | ||
autoFillProtectedForStreaking: boolean | ||
botChampionId: number | ||
botDifficulty: string | ||
botId: string | ||
firstPositionPreference: string | ||
intraSubteamPosition: any | ||
isBot: boolean | ||
isLeader: boolean | ||
isSpectator: boolean | ||
playerSlots: any[] | ||
puuid: string | ||
quickplayPlayerState: any | ||
ready: boolean | ||
secondPositionPreference: string | ||
showGhostedBanner: boolean | ||
subteamIndex: any | ||
summonerIconId: number | ||
summonerId: number | ||
summonerInternalName: string | ||
summonerLevel: number | ||
summonerName: string | ||
teamId: number | ||
tftNPEQueueBypass: any | ||
} | ||
|
||
export interface MucJwtDto { | ||
channelClaim: string | ||
domain: string | ||
jwt: string | ||
targetRegion: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.