Skip to content
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

refactor: move to father #78

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .eslintrc-src.js

This file was deleted.

14 changes: 14 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const base = require('@umijs/fabric/dist/eslint');
const path = require('path');

module.exports = {
...base,
rules: {
...base.rules,
'default-case': 0,
'react/sort-comp': 0,
'jsx-a11y/interactive-supports-focus': 0,
'jsx-a11y/no-autofocus': 0,
'react/no-unknown-property': 0,
},
};
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

9 changes: 9 additions & 0 deletions .fatherrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'father';

export default defineConfig({
platform: 'browser',
cjs: { output: 'lib' },
esm: {
output: 'es',
},
});
21 changes: 14 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,22 @@ Thumbs.db
node_modules
.cache
dist
debug.tsx
debug.md
assets/**/*.css
build
lib
coverage
.vscode
yarn.lock
/es/
/pkg/
.vscode/
/dom-align/
*.tsbuildinfo
.nyc_output/
.next/
es/
package-lock.json
src/*.js
src/*.map
tslint.json
tsconfig.test.json
.prettierignore
.storybook
storybook/index.js
.doc
.umi
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"endOfLine": "lf",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"proseWrap": "never",
"printWidth": 100
}
19 changes: 19 additions & 0 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// more config: https://d.umijs.org/config
import { defineConfig } from 'dumi';

export default defineConfig({
title: '@rc-component/dom-align',
favicon:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
logo:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
outputPath: '.doc',
exportStatic: {},
styles: [
`
.markdown table {
width: auto !important;
}
`,
]
});
33 changes: 1 addition & 32 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,32 +1 @@
# History
----

## 1.12.0

- fix adjust: https://github.com/yiminghe/dom-align/pull/53

## 1.11.0

- add alwaysByViewport option

## 1.9.0

- support shadow dom

## 1.7.0

- support alignPoint https://github.com/yiminghe/dom-align/pull/34#issuecomment-394074937

## 1.5.0

- support useCssTransform

## 1.4.0

- only flip if it's visible


## 1.1.0

- support targetOffset
- offset/targetOffset support percentage value
See https://github.com/react-component/dom-align/releases
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-present yiminghe
Copyright (c) 2014-present alipay.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# dom-align
# @rc-component/dom-align
---

align source html element with target html element flexibly.

[![NPM version][npm-image]][npm-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![npm download][download-image]][download-url]
![Build Status](https://github.com/yiminghe/dom-align/actions/workflows/ci.yaml/badge.svg)
[![dom-align](https://img.shields.io/endpoint?url=https://cloud.cypress.io/badge/simple/22j6d7/main&style=flat&logo=cypress)](https://cloud.cypress.io/projects/22j6d7/runs)
![Build Status](https://github.com/react-component/dom-align/actions/workflows/ci.yaml/badge.svg)
[![@rc-component/dom-align](https://img.shields.io/endpoint?url=https://cloud.cypress.io/badge/simple/22j6d7/main&style=flat&logo=cypress)](https://cloud.cypress.io/projects/22j6d7/runs)

[npm-image]: http://img.shields.io/npm/v/dom-align.svg?style=flat-square
[npm-url]: http://npmjs.org/package/dom-align
[coveralls-image]: https://img.shields.io/coveralls/yiminghe/dom-align.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/yiminghe/dom-align?branch=master
[npm-image]: http://img.shields.io/npm/v/@rc-component/dom-align.svg?style=flat-square
[npm-url]: http://npmjs.org/package/@rc-component/dom-align
[coveralls-image]: https://img.shields.io/coveralls/react-component/dom-align.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/react-component/dom-align?branch=master
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/dom-align.svg?style=flat-square
[download-url]: https://npmjs.org/package/dom-align
[download-image]: https://img.shields.io/npm/dm/@rc-component/dom-align.svg?style=flat-square
[download-url]: https://npmjs.org/package/@rc-component/dom-align

## Screenshot

<img height=444 src="http://gtms02.alicdn.com/tps/i2/TB1XIp2HXXXXXajaXXXgJfr8XXX-548-888.png">

## Install

[![dom-align](https://nodei.co/npm/dom-align.png)](https://npmjs.org/package/dom-align)
[![@rc-component/dom-align](https://nodei.co/npm/@rc-component/dom-align.png)](https://npmjs.org/package/@rc-component/dom-align)

## Feature

Expand All @@ -34,12 +34,12 @@ align source html element with target html element flexibly.

## Online Demo

* http://yiminghe.github.io/dom-align/
* http://yiminghe.github.io/@rc-component/dom-align/

## Usage

```js
import domAlign from 'dom-align';
import domAlign from '@rc-component/dom-align';

// use domAlign
// sourceNode's initial style should be position:absolute;left:-9999px;top:-9999px;
Expand Down Expand Up @@ -126,8 +126,8 @@ pnpm start

## Example

http://localhost:3000/
http://localhost:8000/

## License

dom-align is released under the MIT license.
@rc-component/dom-align is released under the MIT license.
58 changes: 0 additions & 58 deletions app/body-overflow/page.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions app/fail/page.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions app/layout.tsx

This file was deleted.

55 changes: 0 additions & 55 deletions app/page.tsx

This file was deleted.

Loading
Loading