<|start_filename|>applications/tari_web_extension/src/popup/login/login.css<|end_filename|>
.login {
  display: grid;
  grid-template-columns: auto;
  row-gap: 10px;
}

.logo {
  justify-self: center;
}

.editbox {
  justify-self: right;
}

.submit {
  text-align: center;
  width: 100%;
  border: 1px solid #AAAAAA;
  border-radius: 5px;
  background-color: #CCCCCC;
  transition-duration: 0.1s;
  font-size: larger;
}

.submit:hover {
  border: 1px solid #CCCCCC;
  cursor: pointer;
  background-color: #EEEEEE;
  ;
}

.form {
  display: grid;
  column-gap: 10px;
  row-gap: 10px;
  grid-template-columns: auto auto;
}

<|start_filename|>buildtools/install_xmrig.bat<|end_filename|>
@echo off

rem Control variables
rem - XMRig latest {Note: `powershell` cannot `expand-archive` to `C:\Program Files (x86)`}
rem   - Download `XMRig` at `https://github.com/xmrig/xmrig/releases/`

set xmrig_zip=xmrig-win64.zip
set xmrig_folder=%USERPROFILE%\.xmrig
set xmrig_runtime=xmrig.exe
set xmrig_repo=https://api.github.com/repos/xmrig/xmrig/releases/latest

echo Downloading and installing XMRig...
echo.

rem Install dependencies
call :INSTALL_XMRIG
goto END:

:INSTALL_XMRIG
rem Download and install
del /f "%TEMP%\%xmrig_zip%" 2>null
powershell "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process; .\get_xmrig_win.ps1"
powershell Expand-Archive -Force -LiteralPath "%TEMP%\%xmrig_zip%" -DestinationPath '%xmrig_folder%'
powershell "Get-Childitem -File -Recurse '%xmrig_folder%\' | Move-Item  -Force -Destination '%xmrig_folder%'"
powershell "Get-Childitem -Directory $env:USERPROFILE\.xmrig | Remove-item -Force"
rem Set XMRig environment variables
set TARI_XMRIG_DIR=%xmrig_folder%
setx TARI_XMRIG_DIR %TARI_XMRIG_DIR%
setx /m USERNAME %USERNAME%

rem Test installation
if not exist "%TARI_XMRIG_DIR%\%xmrig_runtime%" (
    echo.
    echo Problem with XMrig installation, "%xmrig_runtime%" not found!
    echo {Please try installing this dependency using the manual procedure described in the README file.}
    echo.
    pause
) else (
    echo.
    echo XMRig installation found at "%TARI_XMRIG_DIR%"
)
goto :eof

:END
echo.
if not [%1]==[NO_PAUSE] (
    pause
) else (
    ping -n 5 localhost>nul
)
if [%errorlevel%]==[10101] exit


<|start_filename|>applications/tari_merge_mining_proxy/windows/runtime/start_xmrig.bat<|end_filename|>
@echo off

echo.
echo Set up environment variables
echo ----------------------------
rem This is the XMRig executable name
set my_exe=xmrig.exe

rem This is the location of the XMRig configuration file
set config_path=%~dp0..\config
echo config_path = %config_path%

rem The default location for the XMRig start file
set my_exe_path=%~dp0
if %my_exe_path:~-1%==\ set my_exe_path=%my_exe_path:~0,-1%
echo my_exe_path = %my_exe_path%

echo.
echo Run XMRig
echo ---------
call "%my_exe_path%\source_xmrig_env.bat"

goto END:


:END
echo.
pause


<|start_filename|>integration_tests/.eslintrc.json<|end_filename|>
{
  "extends": ["eslint:recommended", "plugin:prettier/recommended"],
  "plugins": ["prettier", "@babel"],
  "env": {
    "browser": true,
    "commonjs": true,
    "node": true,
    "es2021": true
  },
  "parser": "@babel/eslint-parser", // Tell ESLint that you want to use the @babel/eslint-parser.
  "parserOptions": {
    "ecmaVersion": 2021,
    "sourceType": "module",
    "allowImportExportEverywhere": false,
    "ecmaFeatures": {
      "globalReturn": false
    },
    "requireConfigFile": false
  },
  "rules": {
    "no-undef": "error",
    "no-unused-vars": [
      "error",
      {
        "argsIgnorePattern": "^_"
      }
    ],
    "prettier/prettier": [
      "error",
      {
        "doubleQuote": true,
        "endOfLine": "auto"
      }
    ]
  }
}


<|start_filename|>applications/dns/package.json<|end_filename|>
{
  "name": "tari_dns",
  "type": "module",
  "version": "0.1.0",
  "description": "Update DNS records for auto-update",
  "scripts": {
    "update": "DEBUG=dns node --no-deprecation update.js"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/tari-project/tari.git"
  },
  "author": "The Tari Development Community",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/tari-project/tari/issues"
  },
  "homepage": "https://github.com/tari-project/tari#readme",
  "devDependencies": {},
  "dependencies": {
    "cloudflare": "^2.9.1",
    "debug": "^4.3.2",
    "dotenv": "^10.0.0"
  }
}


<|start_filename|>buildtools/generate_config.bat<|end_filename|>
type ..\common\config\presets\*.toml >.\tari_config_example.toml

<|start_filename|>applications/tari_collectibles/web-app/src/App.css<|end_filename|>
/* // Copyright 2021. The Tari Project */
/* // */
/* // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the */
/* // following conditions are met: */
/* // */
/* // 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following */
/* // disclaimer. */
/* // */
/* // 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the */
/* // following disclaimer in the documentation and/or other materials provided with the distribution. */
/* // */
/* // 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote */
/* // products derived from this software without specific prior written permission. */
/* // */
/* // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */
/* // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
/* // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
/* // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR */
/* // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, */
/* // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE */
/* // USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */

input {
  color: #fff !important;
}
input[type="text"].Mui-disabled {
  color: #aaa !important;
  -webkit-text-fill-color: #aaa !important;
}


<|start_filename|>applications/tari_web_extension_example/src/App.css<|end_filename|>
.App {
  text-align: center;
}

.button {
  border: 1px solid blue;
  background-color: rgb(74, 74, 255);
  color: white;
  border-radius: 10px;
  margin: 10px;
  padding: 10px;
}

.button:hover {
  cursor: pointer;
  background-color: rgb(34, 34, 255);
}

<|start_filename|>integration_tests/helpers/types.js<|end_filename|>
//  Copyright 2021, The Tari Project
//
//  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
//  following conditions are met:
//
//  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
//  disclaimer.
//
//  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
//  following disclaimer in the documentation and/or other materials provided with the distribution.
//
//  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
//  products derived from this software without specific prior written permission.
//
//  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
//  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
//  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
//  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
//  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
//  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
//  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

const PowAlgo = { MONERO: 0, SHA3: 1 };

const ConnectivityStatus = {
  INITIALIZING: "Initializing",
  ONLINE: "Online",
  DEGRADED: "Degraded",
  OFFLINE: "Offline",
};

const PaymentType = {
  STANDARD_MIMBLEWIMBLE: 0,
  ONE_SIDED: 1,
};

module.exports = { PowAlgo, ConnectivityStatus, PaymentType };
