Skip to content

Commit

Permalink
qs web-components
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Mar 18, 2024
1 parent 6087828 commit a80f04a
Show file tree
Hide file tree
Showing 25 changed files with 1,095 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ pom.xml.versionsBackup
release.properties
.flattened-pom.xml

# web-bundler uses it for IDE support
node_modules/

# Eclipse
.project
.classpath
Expand Down
2 changes: 2 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,5 @@ you will need to set up a few things manually:
== License

This project is licensed under the Apache License Version 2.0.

The web assets in `src/main/resources/web` are licensed under the Creative Commons Attribution 3.0 International License.
101 changes: 98 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.quarkus.search</groupId>
<artifactId>search-quarkus-io</artifactId>
Expand Down Expand Up @@ -38,6 +37,7 @@
<version.impsort-maven-plugin>1.9.0</version.impsort-maven-plugin>
<!-- This version needs to match the version in src/main/docker/opensearch-custom.Dockerfile -->
<version.opensearch>2.12</version.opensearch>
<version.quarkus-web-bundler>1.4.0.CR2</version.quarkus-web-bundler>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -107,6 +107,31 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive</artifactId>
</dependency>
<dependency>
<groupId>io.quarkiverse.web-bundler</groupId>
<artifactId>quarkus-web-bundler</artifactId>
<version>${version.quarkus-web-bundler}</version>
</dependency>
<!-- Web Dependencies -->
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>lit</artifactId>
<version>3.1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>lodash</artifactId>
<version>4.17.21</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mvnpm.at.types</groupId>
<artifactId>lodash</artifactId>
<version>4.14.202</version>
<scope>provided</scope>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-openapi</artifactId>
Expand Down Expand Up @@ -186,6 +211,13 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkiverse.playwright</groupId>
<artifactId>quarkus-playwright</artifactId>
<version>0.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
Expand Down Expand Up @@ -335,4 +367,67 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>locker</id>
<activation>
<property>
<name>!unlocked</name>
</property>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.mvnpm.at.lit-labs</groupId>
<artifactId>ssr-dom-shim</artifactId>
<version>1.2.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mvnpm.at.lit</groupId>
<artifactId>reactive-element</artifactId>
<version>2.0.4</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mvnpm.at.types</groupId>
<artifactId>lodash</artifactId>
<version>4.14.202</version>
<classifier>sources</classifier>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mvnpm.at.types</groupId>
<artifactId>trusted-types</artifactId>
<version>2.0.7</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>lit-element</artifactId>
<version>4.0.4</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>lit-html</artifactId>
<version>3.1.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>lit</artifactId>
<version>3.1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>lodash</artifactId>
<version>4.17.21</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
</profiles>
</project>
7 changes: 7 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ quarkus.test.integration-test-profile=integrationtest
%dev,test,integrationtest.indexing.scheduled.cron=off
# Allow localhost in particular
%dev.quarkus.http.cors.origins=/.*/
%dev.quarkus.http.header."Access-Control-Allow-Private-Network".value=true

########################
# Logging
Expand Down Expand Up @@ -233,3 +234,9 @@ quarkus.helm.values."@.opensearch.resources.limits.cpu".value=2000m
quarkus.helm.values."@.opensearch.resources.requests.cpu".value=500m
quarkus.helm.values."@.opensearch.resources.limits.memory".value=2Gi
quarkus.helm.values."@.opensearch.resources.requests.memory".value=1.9Gi

# Web Bundler configuration
quarkus.web-bundler.loaders.data-url=svg
quarkus.web-bundler.loaders.file=
quarkus.web-bundler.bundle-redirect=true
quarkus.web-bundler.dependencies.node-modules=node_modules
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/main/resources/web/app/assets/icons/docsicon-pdf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions src/main/resources/web/app/assets/icons/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import tutorials from './docsicon-tutorials.svg';
import guides from './docsicon-guides.svg';
import howto from './docsicon-guides.svg';
import pdf from './docsicon-pdf.svg';
import concepts from './docsicon-concepts.svg';
import reference from './docsicon-reference.svg';
import quarkus from './quarkus_icon_default.svg';
import quarkiverse from './quarkiverse_icon_default.svg';
import loading from './loading.svg';

const icons = {
docs: {
tutorials,
guides,
howto,
pdf,
concepts,
reference
},
origins: {
quarkus,
quarkiverse
},
loading
}

export default icons;
45 changes: 45 additions & 0 deletions src/main/resources/web/app/assets/icons/loading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a80f04a

Please sign in to comment.