Skip to content

Commit

Permalink
Changes has been added for the checklist and removed console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
y509144 committed Jan 19, 2023
1 parent a93c4fc commit 263cd82
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 105 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,6 @@ This guide will teach you how to add the widget in your existing or new dashboar

**Note** the City will default to London, if no city name is typed into this field and the selected device doesn't contain location (latitude & longitude) details.

### Development - to enhance and test this widget in your local environment
1. Clone the repository on your local machine using `git clone https://github.com/SoftwareAG/cumulocity-weather-forecast-widget-plugin.git`.
2. Run `npm install` to download the module dependencies.
3. Run `c8ycli server -u https://your_tenant_url` to start the server.
4. Go to `http://localhost:9000/apps/cockpit/` in the browser to view and test your changes.
5. (Optional) push the changes back to this repository.

### Build - to create a new build of the weather-forecast widget for the Runtime Widget Loader
1. Finish the development and testing on your local machine.
2. Run `gulp` to start the build process.
3. Use the `weather-forecast-widget.zip` file in the `dist` folder as your distribution file.

------------------------------

This Widget is provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
Expand Down
18 changes: 18 additions & 0 deletions app.module.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (c) 2019 Software AG, Darmstadt, Germany and/or its licensors
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed 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.
*/

describe('Example test', () => {
/*let testComponent;
Expand Down
159 changes: 68 additions & 91 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0-beta",
"description": "This Weather Forecast Widget displays a 5-day weather forecast using weather data provided by the OpenWeatherAPI.",
"scripts": {
"start": "c8ycli server --env.beta=true",
"start": "c8ycli server",
"build": "c8ycli build",
"deploy": "c8ycli deploy",
"postinstall": "ngcc",
Expand All @@ -30,7 +30,7 @@
"rxjs": "~6.6.3",
"zone.js": "~0.11.7",
"@c8y/style": "1016.0.40",
"@c8y/ng1-modules": "1006.6.13"
"@c8y/ng1-modules": "1016.0.40"
},
"devDependencies": {
"@angular-devkit/build-angular": "14.0.6",
Expand Down Expand Up @@ -60,6 +60,9 @@
"isPackage": true,
"noAppSwitcher": true,
"package": "plugin",
"icon": {
"class": "fa fw fa-sun-o"
},
"requiredPlatformVersion": ">=1016.0.0",
"exports": [
{
Expand Down

0 comments on commit 263cd82

Please sign in to comment.