-
Notifications
You must be signed in to change notification settings - Fork 185
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
kie-issues#2545: Create a landing page for the Jobs Service #2592
Merged
tiagobento
merged 3 commits into
apache:main
from
kumaradityaraj:jobsServiceLandingPage
Sep 17, 2024
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env"); | ||
|
||
module.exports = composeEnv([require("@kie-tools/root-env/env")], { | ||
vars: varsWithName({}), | ||
get env() { | ||
return { | ||
jobsServiceWebapp: { | ||
dev: { | ||
port: 9028, | ||
}, | ||
}, | ||
}; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "@kie-tools/jobs-service-webapp", | ||
"version": "0.0.0", | ||
"description": "", | ||
"license": "Apache-2.0", | ||
"keywords": [], | ||
"homepage": "https://github.com/apache/incubator-kie-tools", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/apache/incubator-kie-tools.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/apache/incubator-kie-tools/issues" | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build:dev": "rimraf dist && webpack --env dev", | ||
"build:prod": "pnpm lint && pnpm test && rimraf dist && webpack", | ||
"lint": "echo 'Linting'", | ||
"start": "webpack serve --host 0.0.0.0 --env dev", | ||
"test": "run-script-if --ignore-errors \"$(build-env tests.ignoreFailures)\" --bool \"$(build-env tests.run)\" --then \"jest --silent --verbose --passWithNoTests\"" | ||
}, | ||
"devDependencies": { | ||
"@kie-tools-core/webpack-base": "workspace:*", | ||
"@kie-tools/root-env": "workspace:*", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"jest": "^29.7.0", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.9.2", | ||
"webpack": "^5.94.0", | ||
"webpack-cli": "^4.10.0", | ||
"webpack-dev-server": "^4.15.1", | ||
"webpack-merge": "^5.9.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one | ||
~ or more contributor license agreements. See the NOTICE file | ||
~ distributed with this work for additional information | ||
~ regarding copyright ownership. The ASF licenses this file | ||
~ to you under the Apache License, Version 2.0 (the | ||
~ "License"); you may not use this file except in compliance | ||
~ with the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Jobs Service Webapp</title> | ||
<link rel="stylesheet" href="styles.css" /> | ||
<link rel="shortcut icon" type="image/x-icon" href="favicon.svg" /> | ||
</head> | ||
<body> | ||
<div class="maindiv"> | ||
<div class="container"> | ||
<div class="logo" style="display: flex; justify-content: center"> | ||
<img src="favicon.svg" alt="KIE Logo" /> | ||
<h1>Jobs Service</h1> | ||
</div> | ||
<div> | ||
<h4>Your Jobs service is up and working!</h4> | ||
</div> | ||
<p> | ||
The Job Service facilitates the scheduled execution of tasks in a cloud environment. These tasks are | ||
implemented by independent services, and can be started by using any of the Job Service supported interaction | ||
modes, based on Http calls or Knative Events delivery. | ||
</p> | ||
<div> | ||
<a | ||
href="https://kiegroup.github.io/kogito-docs/serverlessworkflow/latest/job-services/core-concepts.html" | ||
class="btn" | ||
target="_blank" | ||
>Jobs Service docs</a | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
kumaradityaraj marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
body { | ||
margin: 0px; | ||
padding: 0px; | ||
} | ||
|
||
.maindiv { | ||
font-family: "RedHatText", "Overpass", overpass, helvetica, arial, sans-serif; | ||
background-color: #fff; | ||
color: #fff; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
|
||
.container { | ||
text-align: center; | ||
background-color: #fff; | ||
max-width: 700px; | ||
} | ||
|
||
.logo img { | ||
width: 80px; | ||
height: auto; | ||
} | ||
|
||
h1 { | ||
font-size: 48px; | ||
color: #e44c3b; | ||
padding-left: 15px; | ||
} | ||
|
||
h4 { | ||
font-size: 30px; | ||
color: #c94848; | ||
margin-top: 10px; | ||
} | ||
|
||
p { | ||
font-size: 16px; | ||
color: #1f1e1e; | ||
margin-top: 5px; | ||
margin-bottom: 40px; | ||
} | ||
|
||
.btn { | ||
padding: 10px 20px; | ||
background-color: #e44c3b; | ||
color: #fff; | ||
text-decoration: none; | ||
border-radius: 5px; | ||
font-size: 16px; | ||
transition: background-color 0.3s; | ||
} | ||
|
||
.btn:hover { | ||
background-color: #c73828; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
.maindiv, | ||
.container { | ||
background-color: #232121; | ||
} | ||
|
||
h4, | ||
p { | ||
color: #fefefe; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
const CopyPlugin = require("copy-webpack-plugin"); | ||
const { merge } = require("webpack-merge"); | ||
const common = require("@kie-tools-core/webpack-base/webpack.common.config"); | ||
const { env } = require("./env"); | ||
const buildEnv = env; | ||
|
||
module.exports = async (env) => | ||
merge(common(env), { | ||
entry: {}, | ||
plugins: [ | ||
new CopyPlugin({ | ||
patterns: [ | ||
{ from: "./src/index.html", to: "./index.html" }, | ||
{ from: "./src/styles.css", to: "./styles.css" }, | ||
{ from: "./static/favicon.svg", to: "./favicon.svg" }, | ||
], | ||
}), | ||
], | ||
ignoreWarnings: [/Failed to parse source map/], | ||
devServer: { | ||
static: { | ||
directory: "./dist", | ||
}, | ||
port: buildEnv.jobsServiceWebapp.dev.port, | ||
}, | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wmedvede @ricardozanini
Which link should we add as documentation?
Is https://kiegroup.github.io/kogito-docs/serverlessworkflow/latest/job-services/core-concepts.html ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use an env var to set the link?
For Processes, we would probably use https://docs.kogito.kie.org/latest/html_single/#con-jobs-service_kogito-configuring instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add both. jBPM the one @thiagoelg mentioned, and the SonataFlow one here: https://sonataflow.org/serverlessworkflow/main/job-services/core-concepts.html