diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index a09e8f0f..00857d2e 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -4,21 +4,21 @@ on: # Sequence of patterns matched against refs/tags tags: - 'v[0-9]+.[0-9]+.[0-9]+' - - 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+' - - 'v[0-9]+.[0-9]+.[0-9]+-alpha[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+' jobs: deploy: runs-on: ubuntu-latest strategy: matrix: - node-version: [12.x] + node-version: [18.13.0] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Test and build with node ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} @@ -31,5 +31,5 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: build/_output/* tag: ${{ github.ref }} - overwrite: false - file_glob: true \ No newline at end of file + overwrite: true + file_glob: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index beb92d48..49264325 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,3 @@ - name: Run Tests on: [push, pull_request] jobs: @@ -6,17 +5,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [12.3.1] - + node-version: [18.13.0] steps: - name: Checkout code - uses: actions/checkout@v2 - + uses: actions/checkout@v4 - name: Run tests with Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install -g yarn - run: yarn install # - run: yarn test-ci # no tests....... yet - - run: yarn build \ No newline at end of file + - run: yarn build diff --git a/package.json b/package.json index 0e6def10..dffe2661 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ }, "version": "2.3.1", "dependencies": { - "materia-widget-development-kit": "~3.0.0", + "materia-widget-development-kit": "^3.0.1", "micromarkdown": "^0.3.0" }, "scripts": { diff --git a/src/_exports/playdata_exporters.php b/src/_exports/playdata_exporters.php index 08e513eb..af69ed09 100644 --- a/src/_exports/playdata_exporters.php +++ b/src/_exports/playdata_exporters.php @@ -72,7 +72,7 @@ $cur_csv['question_text'] = ""; foreach ($questions as $q) { - $clean_str = str_replace(["\r","\n", ","], "", $q->questions[0]['text']); + $clean_str = is_string($q->questions[0]['text']) ? str_replace(["\r","\n", ","], "", $q->questions[0]['text']) : ""; if (strlen($clean_str) > 80) { @@ -124,7 +124,7 @@ if (array_search($r['item_id'], $cur_csv['questions']) !== FALSE) { $position = array_search($r['item_id'], $cur_csv['questions']); - $logs[5 + $position] = str_replace(["\r","\n", ","], "", $r['text']); + $logs[5 + $position] = is_string($r['text']) ? str_replace(["\r","\n", ","], "", $r['text']) : ""; } } } @@ -136,7 +136,7 @@ // Return the csv zip. $tempname = tempnam('/tmp', 'materia_raw_log_csv'); $zip = new \ZipArchive(); - $zip->open($tempname); + $zip->open($tempname, \ZipArchive::OVERWRITE); foreach ($csvs as $key => $csv) { $string = $headers . $csv['question_text'] . "\r\n" . implode("\r\n", $csv['rows']); diff --git a/src/assets/icomoon.css b/src/assets/icomoon.css index b7dcf3e5..07574c8f 100644 --- a/src/assets/icomoon.css +++ b/src/assets/icomoon.css @@ -1,10 +1,10 @@ @font-face { font-family: 'icomoon'; - src: url('fonts/icomoon.eot?iwicyl'); - src: url('fonts/icomoon.eot?iwicyl#iefix') format('embedded-opentype'), - url('fonts/icomoon.ttf?iwicyl') format('truetype'), - url('fonts/icomoon.woff?iwicyl') format('woff'), - url('fonts/icomoon.svg?iwicyl#icomoon') format('svg'); + src: url('assets/fonts/icomoon.eot?iwicyl'); + src: url('assets/fonts/icomoon.eot?iwicyl#iefix') format('embedded-opentype'), + url('assets/fonts/icomoon.ttf?iwicyl') format('truetype'), + url('assets/fonts/icomoon.woff?iwicyl') format('woff'), + url('assets/fonts/icomoon.svg?iwicyl#icomoon') format('svg'); font-weight: normal; font-style: normal; font-display: block; diff --git a/src/creator.html b/src/creator.html index 21ba2331..d48fe251 100644 --- a/src/creator.html +++ b/src/creator.html @@ -99,6 +99,12 @@

Manage Inventory

tabindex="0"> +
+

Item Inventory

+ Create items to enhance your Adventure! Items add additional depth to the player experience: reward them upon reaching certain destinations and gate certain decisions behind item possession. + Items can represent physical goods, currencies, or status effects like reputation or emotional states. + Begin by creating at least one item below. Afterwards, additional options will be present at each destination to manage item distribution and answer requirements. +