pax_global_header 0000666 0000000 0000000 00000000064 14101765300 0014507 g ustar 00root root 0000000 0000000 52 comment=a17c4a845390c533a12684380465329059317ef5 mycard-3.0.48/ 0000775 0000000 0000000 00000000000 14101765300 0013062 5 ustar 00root root 0000000 0000000 mycard-3.0.48/.ci/ 0000775 0000000 0000000 00000000000 14101765300 0013533 5 ustar 00root root 0000000 0000000 mycard-3.0.48/.ci/macos-build.sh 0000775 0000000 0000000 00000000203 14101765300 0016264 0 ustar 00root root 0000000 0000000 #!/bin/bash set -x set -o errexit if [[ -z "$CI_COMMIT_TAG" ]]; then export TRAVIS_BRANCH="_no_notarize" fi npm ci npm run dist mycard-3.0.48/.ci/macos-notarize.sh 0000775 0000000 0000000 00000000454 14101765300 0017030 0 ustar 00root root 0000000 0000000 #!/bin/bash set -o errexit BUNDLE_ID="com.mycard.mycard" APP_PATH=$(ls -1 dist/*.dmg | head -n 1) xcrun altool --notarize-app --primary-bundle-id "$BUNDLE_ID" --username "$MACOS_NOTARIZE_USERNAME" --password "$MACOS_NOTARIZE_PASSWORD" --asc-provider "$MACOS_ASC_PROVIDER" -t osx --file "$APP_PATH" mycard-3.0.48/.gitattributes 0000664 0000000 0000000 00000000162 14101765300 0015754 0 ustar 00root root 0000000 0000000 # Auto detect text files and perform LF normalization * text=auto *.rb text *.yml text *.png binary *.jpg binary mycard-3.0.48/.gitignore 0000664 0000000 0000000 00000000412 14101765300 0015047 0 ustar 00root root 0000000 0000000 /bin/ /app/**/*.js /app/**/*.js.map /app/*.metadata.json /app/*.shim.ts /app/*.ngfactory.ts /aot !/aot/index.html /node_modules/ /dist/ /cache/ /typings/ /npm-debug.log* /.idea/ .DS_Store Thumbs.db messages.xlf messages.xlf.bak locale/*.xlf.bak # /package-lock.json mycard-3.0.48/.gitlab-ci.yml 0000664 0000000 0000000 00000003131 14101765300 0015514 0 ustar 00root root 0000000 0000000 variables: GIT_DEPTH: "1" stages: - prepare - build - deploy macOS_bin: stage: prepare tags: - linux artifacts: paths: - bin script: - wget -O - https://cdn01.moecube.com/ygopro-build-materials/mycard-mat/mycard-mat-macos.tar.gz | tar zxf - windows_bin: stage: prepare tags: - linux artifacts: paths: - bin script: - wget -O - https://cdn01.moecube.com/ygopro-build-materials/mycard-mat/mycard-mat-windows.tar.gz | tar zxf - windows: stage: build dependencies: - windows_bin tags: - vs script: - npm ci - npm run dist:windows #- dir dist artifacts: paths: - dist/ linux: image: node:16 stage: build tags: - linux script: - apt update ; apt -y install python3 build-essential git - npm ci - npm run dist #- ls -la dist artifacts: paths: - dist/ macOS: stage: build dependencies: - macOS_bin tags: - macOS variables: CSC_KEY_PASSWORD: $MACOS_CSC_KEY_PASSWORD CSC_LINK: $MACOS_CSC_LINK APPLE_ID: $MACOS_NOTARIZE_USERNAME APPLE_ID_PASSWORD: $MACOS_NOTARIZE_PASSWORD TEAM_SHORT_NAME: $MACOS_ASC_PROVIDER script: ./.ci/macos-build.sh artifacts: paths: - dist/ #macOS_notarize: # stage: deploy # dependencies: # - macOS # tags: # - macOS # script: ./.ci/macos-notarize.sh # only: # - tags upload_to_minio: stage: deploy dependencies: - macOS - windows - linux tags: - linux script: - aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/downloads only: - tags #- v3 mycard-3.0.48/.travis.yml 0000664 0000000 0000000 00000002207 14101765300 0015174 0 ustar 00root root 0000000 0000000 language: node_js node_js: node os: - linux - osx dist: trusty sudo: required env: npm_config_target: $(npm show electron version) npm_config_arch: x64 npm_config_target_arch: x64 npm_config_disturl: https://atom.io/download/atom-shell npm_config_runtime: electron npm_config_build_from_source: true global: secure: KsebO9wNxM2RfUGg6Y0E4hRdXzQLNe1fdB1AOV5U1LddLGZYTYvsknPL6oyjOV3vY5ed7wueErt1GCDjEZJMdox0rMUEZ9HH8umwUoJi2uS6LoaU31yWNCCbPbpdtJw3rohzNvEtxd1Y01U5msKPuUd4M5mt/RKlPPPR/L5H178= addons: apt: packages: - icnsutils - graphicsmagick - xz-utils cache: directories: - node_modules - $HOME/.electron - $HOME/.cache before_install: - env - openssl aes-256-cbc -K $encrypted_9f35b7f09ebe_key -iv $encrypted_9f35b7f09ebe_iv -in ssh-key.enc -out $HOME/.ssh/id_ecdsa -d - chmod 600 $HOME/.ssh/id_ecdsa install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p bin; curl --location --retry 5 https://github.com/aria2/aria2/releases/download/release-1.29.0/aria2-1.29.0-osx-darwin.tar.bz2 | tar --strip-components=2 -C bin -jxf - aria2-1.29.0/bin/aria2c; fi - npm install - npm prune script: - npm run dist mycard-3.0.48/README.md 0000664 0000000 0000000 00000004740 14101765300 0014346 0 ustar 00root root 0000000 0000000 # MyCard [![Build Status](https://travis-ci.org/mycard/mycard.svg?branch=v3)](https://travis-ci.org/mycard/mycard) [![Build status](https://ci.appveyor.com/api/projects/status/t4jyh0rkwh0nep7w?svg=true)](https://ci.appveyor.com/project/zh99998/mycard) [![NSP Status](https://nodesecurity.io/orgs/mycard/projects/62dd15a6-3927-49c2-8c30-1bc19d4a6e92/badge)](https://nodesecurity.io/orgs/mycard/projects/62dd15a6-3927-49c2-8c30-1bc19d4a6e92) ## Install Dependencies ```bash npm install ``` ## Install Dependencies (macOS) ```bash mkdir -p bin curl --location --retry 5 https://github.com/aria2/aria2/releases/download/release-1.29.0/aria2-1.29.0-osx-darwin.tar.bz2 | tar --strip-components=2 -C bin -jxf - aria2-1.29.0/bin/aria2c ``` ## Install Dependencies (Windows) ```bash mkdir -p bin curl --location --retry 5 --output aria2-1.29.0-win-32bit-build1.zip https://github.com/aria2/aria2/releases/download/release-1.29.0/aria2-1.29.0-win-32bit-build1.zip unzip -o aria2-1.29.0-win-32bit-build1.zip aria2-1.29.0-win-32bit-build1/aria2c.exe mv aria2-1.29.0-win-32bit-build1/aria2c.exe bin rm -rf aria2-1.29.0-win-32bit-build1 aria2-1.29.0-win-32bit-build1.zip curl -L 'http://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/i686/bsdtar-3.2.1-1-i686.pkg.tar.xz' | tar --strip-components=2 -C bin -Jxf - usr/bin/bsdtar.exe curl -L 'http://downloads.sourceforge.net/project/msys2/Base/i686/msys2-base-i686-20161025.tar.xz' | tar --strip-components=3 -C bin -Jxf - msys32/usr/bin/msys-2.0.dll msys32/usr/bin/msys-bz2-1.dll msys32/usr/bin/msys-gcc_s-1.dll msys32/usr/bin/msys-iconv-2.dll msys32/usr/bin/msys-lzma-5.dll msys32/usr/bin/msys-lzo2-2.dll msys32/usr/bin/msys-nettle-6.dll msys32/usr/bin/msys-xml2-2.dll msys32/usr/bin/msys-z.dll msys32/usr/bin/sha256sum.exe msys32/usr/bin/msys-intl-8.dll node_modules\.bin\electron-rebuild ``` ## Run ```bash npm start ``` ## WebStorm ``` Editor Code Style HTML Other × Keep line breaks × Keep line breaks in text Wrap attributes: Do not wrap × Wrap text TypeScript Other Generated code Quote marks: Single quotes Languages & Frameworks Javascript Javascript language version: ECMAScript 6 √ Prefer Strict mode √ Only type-based completion TypeScript √ Enable TypeScript Compiler TSLint √ Enable Node.js and NPM Coding Assistance Enable ``` mycard-3.0.48/app/ 0000775 0000000 0000000 00000000000 14101765300 0013642 5 ustar 00root root 0000000 0000000 mycard-3.0.48/app/about.component.css 0000664 0000000 0000000 00000000000 14101765300 0017455 0 ustar 00root root 0000000 0000000 mycard-3.0.48/app/about.component.html 0000664 0000000 0000000 00000001764 14101765300 0017653 0 ustar 00root root 0000000 0000000 mycard-3.0.48/app/about.component.ts 0000664 0000000 0000000 00000000403 14101765300 0017322 0 ustar 00root root 0000000 0000000 /** * Created by zh99998 on 16/9/2. */ import {Component} from '@angular/core'; @Component({ moduleId: module.id, selector: 'about', templateUrl: 'about.component.html', styleUrls: ['about.component.css'], }) export class AboutComponent { } mycard-3.0.48/app/app-detail.component.css 0000664 0000000 0000000 00000006104 14101765300 0020376 0 ustar 00root root 0000000 0000000 :host { flex-grow: 1; position: relative; padding: 1rem 1rem 0 1rem; background-blend-mode: color; background-size: 100% auto !important; background-repeat: no-repeat !important; } .list-group { width: 20rem; } progress { margin: 2px 0 0; } .carousel-inner img { width: 100%; } .dependency { margin-right: 0.8em; } #news p { margin-bottom: 0; } #news a { display: block; } #network { display: inline-block; vertical-align: middle; width: 230px; } #network .input-group-btn > .btn:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0; border-top-right-radius: 0; } #network .input-group-btn > .dropdown-toggle { border-bottom-left-radius: 0; border-top-left-radius: 0; } .i-b{ display: inline-block; } .custom-file { width: 100%; } .custom-file-control:lang(en)::after { content: initial; } .custom-file-control { overflow: hidden; white-space: nowrap; } h1 { font-size: 28px; } #status { font-size: 15px; } h2 { font-size: 20px; margin-bottom: 0; } .cover { width: 128px; height: 128px; object-fit: contain; box-shadow: 0 0 4px #ccc; } .banner { width: 120px; height: 45px; object-fit: cover; } #main { display: flex; flex-direction: row; } .panel { border: 1px solid #eceeef; border-radius: 6px; background: rgba(255, 255, 255, .7); padding: .8rem; margin-bottom: 1rem; box-shadow: 0 0 15px rgba(0, 0, 0, .05); position: relative; } #news h3 > .title { font-size: 1rem; color: inherit; } #news h3 { padding-top: .8rem; margin-bottom: 0; } #news p { font-size: 14px; color: #888; } #news a { font-size: 14px; color: #00a4d9; } #news span { font-size: 12px; color: #ccc; } .moreinfo { color: #00a4d9; display: block; position: absolute; top: 12px; right: 18px; font-size: 14px; } #local h2 { margin-bottom: .8rem; } #main { display: flex; flex-direction: row; } #right { margin-left: 1rem; } h1 { font-size: 28px; margin-bottom: 0; } #time { font-size: 14px; margin-bottom: .6rem; visibility: hidden; } th { width: 25%; } .moreinfo { color: #00a4d9; display: block; position: absolute; top: 12px; right: 18px; font-size: 14px; } #arena { position: relative; } .btn-primary { background-color: #00a4d9; border-color: #008dbb; } /* 竞技场 */ h2 { font-size: 20px; } dt, dd { font-size: 14px; } table { margin-top: .5rem; margin-bottom: 0; } table th, table td { border-top: none; font-size: 14px; font-weight: normal; } #game_info { font-size: 14px; margin-right: 8px; display: flex; flex-direction: column; flex-grow: 1; } #game_info p { flex-grow: 1; } #game_info_2 { width: 160px; flex-shrink: 0; } .tag { font-size: 12px; padding: 2px 5px; } #purchase-form .form-check { padding-right: 8px; } #purchase-form legend { font-size: 1rem; margin-bottom: 0; margin-top: .5rem; } mycard-3.0.48/app/app-detail.component.html 0000664 0000000 0000000 00000052637 14101765300 0020566 0 ustar 00root root 0000000 0000000
竞技排名 | {{points.arena_rank}} | 娱乐排名 | {{points.exp_rank}} |
---|---|---|---|
竞技胜率 | {{points.athletic_wl_ratio}}% | 经验 | {{points.exp}} |
胜场 | {{points.athletic_win}} | 胜场 | {{points.entertain_win}} |
负场 | {{points.athletic_lose}} | 负场 | {{points.entertain_lose}} |
平局 | {{points.athletic_draw}} | 平局 | {{points.entertain_draw}} |
总场 | {{points.athletic_all}} | 总场 | {{points.entertain_all}} |
# | 名称 | 操作 | ||
---|---|---|---|---|
{{i + 1}} | {{mod.name}} |