Skip to content
Snippets Groups Projects
Commit 6926a7d5 authored by Srishti Bankar's avatar Srishti Bankar Committed by Tim Plunkett
Browse files

Issue #3274577 by srishti.bankar, chrisfromredfin, tim.plunkett: Not all...

Issue #3274577 by srishti.bankar, chrisfromredfin, tim.plunkett: Not all Categories are listed on admin/modules/browse page
parent fc31a089
Branches
Tags
1 merge request!42Issue #3274577: Not all Categories are listed on admin/modules/browse page
[
{"tid":"193884","name":"Accessibility"},
{"tid":"53","name":"Administration"},
{"tid":"55","name":"Commerce/Advertising"},
{"tid":"56","name":"Community"},
{"tid":"57","name":"Content"},
{"tid":"13434","name":"Content Access Control"},
{"tid":"88","name":"Content Construction Kit (CCK)"},
{"tid":"58","name":"Content Display"},
{"tid":"13158","name":"Database Drivers"},
{"tid":"186018","name":"Decoupled"},
{"tid":"59","name":"Developer"},
{"tid":"4654","name":"Drush"},
{"tid":"104","name":"E-commerce"},
{"tid":"41442","name":"Education"},
{"tid":"60","name":"Evaluation/Rating"},
{"tid":"61","name":"Event"},
{"tid":"19440","name":"Examples"},
{"tid":"11478","name":"Features Package"},
{"tid":"20224","name":"Fields"},
{"tid":"62","name":"File Management"},
{"tid":"63","name":"Filter/Editors"},
{"tid":"122","name":"Games and Amusements"},
{"tid":"64","name":"Import/Export"},
{"tid":"101","name":"JavaScript Utilities"},
{"tid":"65","name":"Location"},
{"tid":"66","name":"Mail"},
{"tid":"67","name":"Media"},
{"tid":"196950","name":"Migrate"},
{"tid":"7404","name":"Mobile"},
{"tid":"97","name":"Multilingual"},
{"tid":"26738","name":"Multisite"},
{"tid":"16190","name":"Novelty"},
{"tid":"90","name":"Organic Groups (OG)"},
{"tid":"51425","name":"Other"},
{"tid":"68","name":"Paging"},
{"tid":"8818","name":"Path Management"},
{"tid":"123","name":"Performance and Scalability"},
{"tid":"19984","name":"Project management"},
{"tid":"116","name":"RDF"},
{"tid":"11480","name":"Rules"},
{"tid":"105","name":"Search"},
{"tid":"69","name":"Security"},
{"tid":"36748","name":"SEO"},
{"tid":"124","name":"Site Navigation"},
{"tid":"7266","name":"Spam Prevention"},
{"tid":"119","name":"Statistics"},
{"tid":"70","name":"Syndication"},
{"tid":"71","name":"Taxonomy"},
{"tid":"73","name":"Theme Enhancements"},
{"tid":"52","name":"Third-party Integration"},
{"tid":"74","name":"User Access & Authentication"},
{"tid":"76","name":"User Management"},
{"tid":"75","name":"Utility"},
{"tid":"89","name":"Views"}
]
......@@ -13,6 +13,7 @@
},
"devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.0",
"rollup": "^2.3.4",
"rollup-plugin-css-only": "^3.1.0",
......@@ -74,6 +75,18 @@
"rollup": "^2.30.0"
}
},
"node_modules/@rollup/plugin-json": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-4.1.0.tgz",
"integrity": "sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==",
"dev": true,
"dependencies": {
"@rollup/pluginutils": "^3.0.8"
},
"peerDependencies": {
"rollup": "^1.20.0 || ^2.0.0"
}
},
"node_modules/@rollup/plugin-node-resolve": {
"version": "11.2.1",
"resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz",
......@@ -1087,6 +1100,15 @@
"resolve": "^1.17.0"
}
},
"@rollup/plugin-json": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-4.1.0.tgz",
"integrity": "sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==",
"dev": true,
"requires": {
"@rollup/pluginutils": "^3.0.8"
}
},
"@rollup/plugin-node-resolve": {
"version": "11.2.1",
"resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz",
......
......@@ -9,6 +9,7 @@
},
"devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.0",
"rollup": "^2.3.4",
"rollup-plugin-css-only": "^3.1.0",
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -4,6 +4,7 @@ import resolve from '@rollup/plugin-node-resolve';
import livereload from 'rollup-plugin-livereload';
import { terser } from 'rollup-plugin-terser';
import css from 'rollup-plugin-css-only';
import json from '@rollup/plugin-json';
const production = !process.env.ROLLUP_WATCH;
......@@ -37,6 +38,8 @@ export default {
file: 'public/build/bundle.js'
},
plugins: [
json(),
svelte({
compilerOptions: {
// enable run-time checks when not in production
......
<script context="module">
import { fetchEntity } from "./Project/project.js";
let globalLabels;
export function setLabels(labels) {
......@@ -10,6 +9,7 @@
<script>
import { createEventDispatcher, getContext } from "svelte";
import category_list from '../../fixtures/category_list.json';
const dispatch = createEventDispatcher();
const stateContext = getContext("state");
......@@ -90,14 +90,11 @@
<form class="views-exposed-form">
<div class="views-exposed-form__item js-form-item form-item js-form-type-select form-type--select js-form-item-type form-item--type">
<label class="form-item__label"><h2>Categories</h2></label>
{#await fetchEntity("https://www.drupal.org/api-d7/taxonomy_term.json?vocabulary=3")}
{:then data}
{#each data.list as dt }
{#each category_list as dt }
<input type = "checkbox" id= {dt.tid} bind:group={category} on:change={onSelectCategory} value={dt.tid} >
<label class="checkbox-label" for="{dt.tid}"> {dt.name}</label>
<br>
{/each}
{/await}
</div>
</form>
......@@ -41,6 +41,13 @@
"magic-string" "^0.25.7"
"resolve" "^1.17.0"
"@rollup/plugin-json@^4.1.0":
"integrity" "sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw=="
"resolved" "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-4.1.0.tgz"
"version" "4.1.0"
dependencies:
"@rollup/pluginutils" "^3.0.8"
"@rollup/plugin-node-resolve@^11.0.0":
"integrity" "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg=="
"resolved" "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz"
......@@ -53,7 +60,7 @@
"is-module" "^1.0.0"
"resolve" "^1.19.0"
"@rollup/pluginutils@^3.1.0":
"@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0":
"integrity" "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg=="
"resolved" "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz"
"version" "3.1.0"
......@@ -503,7 +510,7 @@
dependencies:
"estree-walker" "^0.6.1"
"rollup@^1.20.0||^2.0.0", "rollup@^2.0.0", "rollup@^2.3.4", "rollup@^2.30.0", "rollup@>=2.0.0", "rollup@1 || 2":
"rollup@^1.20.0 || ^2.0.0", "rollup@^1.20.0||^2.0.0", "rollup@^2.0.0", "rollup@^2.3.4", "rollup@^2.30.0", "rollup@>=2.0.0", "rollup@1 || 2":
"integrity" "sha512-6c5CJPLVgo0iNaZWWliNu1Kl43tjP9LZcp6D/tkf2eLH2a9/WeHxg9vfTFl8QV/2SOyaJX37CEm9XuGM0rviUg=="
"resolved" "https://registry.npmjs.org/rollup/-/rollup-2.50.6.tgz"
"version" "2.50.6"
......
......@@ -49,4 +49,15 @@ class ProjectBrowserUiTest extends WebDriverTestBase {
$assert_session->pageTextNotContains('No records available');
}
/**
* Tests the available categories.
*/
public function testCategories(): void {
$assert_session = $this->assertSession();
$this->drupalGet('admin/modules/browse');
$assert_session->waitForElement('css', '.views-exposed-form__item input[type="checkbox"]');
$assert_session->elementsCount('css', '.views-exposed-form__item input[type="checkbox"]', 54);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment