Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export filtered subset #27

Draft
wants to merge 13 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"env": {
"es6": true,
"es2017": true,
"es2020": true,
"node": true
},
"extends": ["airbnb-base"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"arrow-body-style": 0,
"comma-dangle": 0,
"linebreak-style": ["error", "windows"],
"indent": 0,
"import/extensions": ["error", "never"],
"no-async-promise-executor": 0,
"no-await-in-loop": 0,
"no-console": 0,
"no-empty-function": 0,
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-restricted-syntax": 0,
"no-tabs": 0,
"no-trailing-spaces": 0,
"no-unused-vars": 0,
"no-useless-constructor": 0,
"@typescript-eslint/indent": ["error", "tab"],
"@typescript-eslint/no-empty-function": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-useless-constructor": ["error"]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".ts",".mjs"]
}
}
}
}
16 changes: 9 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.github export-ignore
FUNDING.yml export-ignore
.gitattributes export-ignore
README.md export-ignore
preview.jpg export-ignore
compendium-browser.less export-ignore
Patchnotes.md export-ignore
.github export-ignore
FUNDING.yml export-ignore
.gitattributes export-ignore
README.md export-ignore
preview.jpg export-ignore
styles/compendium-browser.less export-ignore
Patchnotes.md export-ignore
.vscode export-ignore
docs export-ignore
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github: syl3r86
custom: ["paypal.me/syl3r86"]
github: DanielBoettner
custom: ["https://paypal.me/pools/c/8B3yZd2Z2f"]
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Upload Release Asset

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Zip files
run: |
zip -r compendium-browser ./dist/ * -x "img/*" ".github/*" ".idea/*" "tsconfig.json"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./compendium-browser.zip
asset_name: compendium-browser.zip
asset_content_type: application/zip
89 changes: 89 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# compiled output
/dist
/tmp
/out-tsc

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# IDEs and editors
.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
.sass-cache
connect.lock
typings

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*


# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# Lerna
lerna-debug.log

# System Files
.DS_Store
.vscode/settings.json
3 changes: 3 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"esversion": 11
}
27 changes: 27 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"typescript.tsdk": "C:\\Users\\jackp\\AppData\\Local\\FoundryVTT\\Data\\systems\\dnd5e\\module",
"debug.javascript.usePreview": false,
"triggerTaskOnSave.tasks": {
"watch: reload": [
"dist/**/*.js",
"dist/templates/**/*.hbs"
],
"watch: less": [
"/styles/*.less"
]
},
"triggerTaskOnSave.showStatusBarToggle": true,
"launches": {
"fvtt-debug": "FoundryVTT"
},
"includePath": [
"C:\\Program Files\\FoundryVTT\\resources\\app",
"C:\\Users\\jackp\\AppData\\Local\\FoundryVTT\\Data\\systems\\dnd5e\\module"
],
"filesync.mappings": [
{
"source": "C:\\Users\\jackp\\Documents\\GitHub\\compendium-browser\\dist",
"destination": "C:\\Users\\jackp\\AppData\\Local\\FoundryVTT\\Data\\modules\\compendium-browser"
}
],
}
89 changes: 54 additions & 35 deletions Patchnotes.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,54 @@
#v0.5.0
- Fixed: Issue #17 (error in filtering NPCs by Creature Type)

#v0.4.5
- Fixed: [Suggestion] Show compendium source in results; Issue #11
- Fixed: Spells from non-system compendium show up in items tab. Issue#10

#v0.4.3

#v0.3.1
- fixed a bug that prevented loading when Class type items were loaded.
- fixed a bug that prevented disabled the scrollbar in the settings tab.

#v0.3.0
- improved load times by lazyloading images
- fixed some css problems
- new Feature: Feat Browser
- Compendium Browser now has a new section for Feats
- lets you filter by source, class (as set in the requirements field), activation cost, damage type and if it uses ressources
- new Feature: Item Browser
- Compendium Browser now has a new section for all inventory Items
- All item Packs (such as Explorer's Pack) are configured and you can browse a List of all Items contained in a pack!
- this list can be modified by editing the "item-packs.json" file to customize your packs
- many further filters available!

#v0.2.1
- fixed an issue that prevented the rendering of the Button to open the browser

#v0.2
- fixed a bug that could prevent proper npc loading
- added a filter for "Source" for both spells and npcs
- migrated to the new TabsV2
- added a Reset Filters button
- Added the Artificer class, thanks to Tielc#7191 for that

#v0.6.0
- new: Export to a world/compendium rolltable
- new: UI inspired by TidySheet5e
- new: Light (default) and dark mode color scheme
- new: the source files are structured to give developers a cleaner environment
- most parts of the module are now TypeScript
- `hooks` for event related js
- `scripts` as the base folder for app related js
- `data` holding json files with data used to filter results

- added: JournalEntry Browser
- added: RollTable Browser
- added: code documentation
- added: user documentation
- added: german translation

- changed: Used native JS calls instead of jQuery wherever possible
- changed: The style definitions are now written in less

#v0.5.0
- Fixed: Issue #17 (error in filtering NPCs by Creature Type)

#v0.4.5
- Fixed: [Suggestion] Show compendium source in results; Issue #11
- Fixed: Spells from non-system compendium show up in items tab. Issue#10

#v0.4.3

#v0.3.1
- fixed a bug that prevented loading when Class type items were loaded.
- fixed a bug that prevented disabled the scrollbar in the settings tab.

#v0.3.0
- improved load times by lazyloading images
- fixed some css problems
- new Feature: Feat Browser
- Compendium Browser now has a new section for Feats
- lets you filter by source, class (as set in the requirements field), activation cost, damage type and if it uses ressources
- new Feature: Item Browser
- Compendium Browser now has a new section for all inventory Items
- All item Packs (such as Explorer's Pack) are configured and you can browse a List of all Items contained in a pack!
- this list can be modified by editing the "item-packs.json" file to customize your packs
- many further filters available!

#v0.2.1
- fixed an issue that prevented the rendering of the Button to open the browser

#v0.2
- fixed a bug that could prevent proper npc loading
- added a filter for "Source" for both spells and npcs
- migrated to the new TabsV2
- added a Reset Filters button
- Added the Artificer class, thanks to Tielc#7191 for that

Loading