diff --git a/.editorconfig b/.editorconfig index d31b92d..d36d22f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,4 @@ -[*.{ts,tsx,js,mts,cts}] +[*.{ts,tsx,js,mjs,cjs,mts,cts,json}] charset = utf-8 indent_style = space indent_size = 2 diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 155d18f..cccad97 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -10,10 +10,21 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: "./.nvmrc" + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + package_json_file: "./src/DotNetDevLottery/package.json" + run_install: false + - name: Setup .NET Core SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: "8.0.x" + dotnet-version: "8.x" - name: Publish .NET Core Project run: dotnet publish ./src/DotNetDevLottery/DotNetDevLottery.csproj -c Release -o release --nologo diff --git a/.gitignore b/.gitignore index 3dd956b..151ead2 100644 --- a/.gitignore +++ b/.gitignore @@ -363,9 +363,11 @@ MigrationBackup/ FodyWeavers.xsd **/wwwroot/build/ +**/wwwroot/js/ .env appsettings.json -.idea/ \ No newline at end of file +.idea/ +.DS_Store \ No newline at end of file diff --git a/.nvmrc b/.nvmrc index ef3773b..9bdb657 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.14 \ No newline at end of file +20.16 \ No newline at end of file diff --git a/src/DotNetDevLottery/.npmrc b/src/DotNetDevLottery/.npmrc index d5fb807..54d4d98 100644 --- a/src/DotNetDevLottery/.npmrc +++ b/src/DotNetDevLottery/.npmrc @@ -1 +1 @@ -public-hoist-pattern[]=@spectrum-web-components/theme \ No newline at end of file +public-hoist-pattern[]=@spectrum-web-components/theme diff --git a/src/DotNetDevLottery/Components/Index/Dropzone.razor b/src/DotNetDevLottery/Components/Index/Dropzone.razor new file mode 100644 index 0000000..e69de29 diff --git a/src/DotNetDevLottery/Components/Random/MachineAnimation.razor b/src/DotNetDevLottery/Components/Random/MachineAnimation.razor new file mode 100644 index 0000000..e65c67d --- /dev/null +++ b/src/DotNetDevLottery/Components/Random/MachineAnimation.razor @@ -0,0 +1,99 @@ +@inject IJSRuntime JSRuntime + +