Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #27 from mendixCN/engalar/issue16
Browse files Browse the repository at this point in the history
feat(back-top-web): new widget
  • Loading branch information
engalar committed Nov 18, 2021
2 parents 1a23b79 + 97fc475 commit 506b090
Show file tree
Hide file tree
Showing 19 changed files with 19,683 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/editorConfig.code-snippets
Expand Up @@ -35,6 +35,7 @@
" return defaultProperties;",
"}",
"export function getPreview(values: $1PreviewProps): StructurePreviewProps | null {",
" console.log(values);",
" return null;",
"}",
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -17,7 +17,7 @@
"build": "lerna run build --ignore @mendix/custom-widgets-utils-internal",
"start:transfer": "lerna run start --scope 'transfer'",
"start:amap": "lerna run start --scope 'amap'",
"new": "yo @mendix/widget packages/pluggableWidgets/link",
"new": "yo @mendix/widget packages/pluggableWidgets/BackTop",
"release:marketplace": "lerna run release:marketplace",
"release": "lerna run release",
"validate-staged-widget-versions": "node scripts/validation/validate-versions-staged-files.js"
Expand Down
5 changes: 5 additions & 0 deletions packages/pluggableWidgets/back-top-web/.eslintrc.js
@@ -0,0 +1,5 @@
const base = require("@mendix/pluggable-widgets-tools/configs/eslint.ts.base.json");

module.exports = {
...base
};
15 changes: 15 additions & 0 deletions packages/pluggableWidgets/back-top-web/.gitattributes
@@ -0,0 +1,15 @@
* text=auto
*.ts text eol=lf
*.tsx text eol=lf
*.js text eol=lf
*.jsx text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.json text eol=lf
*.xml text eol=lf
*.md text eol=lf
*.gitattributes eol=lf
*.gitignore eol=lf
*.png binary
*.jpg binary
*.gif binary
5 changes: 5 additions & 0 deletions packages/pluggableWidgets/back-top-web/.gitignore
@@ -0,0 +1,5 @@
dist/
node_modules/
tests/testProject/
*.log
.env
1 change: 1 addition & 0 deletions packages/pluggableWidgets/back-top-web/.prettierignore
@@ -0,0 +1 @@
tests/testProject/
15 changes: 15 additions & 0 deletions packages/pluggableWidgets/back-top-web/LICENSE
@@ -0,0 +1,15 @@
The Apache License v2.0

Copyright 2020 Mendix Technology BV

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.
24 changes: 24 additions & 0 deletions packages/pluggableWidgets/back-top-web/README.md
@@ -0,0 +1,24 @@
## BackTop
[My widget description]

## Features
[feature highlights]

## Usage
[step by step instructions]

## Demo project
[link to sandbox]

## Issues, suggestions and feature requests
[link to GitHub issues]

## Development and contribution

1. Install NPM package dependencies by using: `npm install`. If you use NPM v7.x.x, which can be checked by executing `npm -v`, execute: `npm install --legacy-peer-deps`.
1. Run `npm start` to watch for code changes. On every change:
- the widget will be bundled;
- the bundle will be included in a `dist` folder in the root directory of the project;
- the bundle will be included in the `deployment` and `widgets` folder of the Mendix test project.

[specify contribution]

0 comments on commit 506b090

Please sign in to comment.