Skip to content

Commit fff1367

Browse files
committed
Merge branch 'dev'
2 parents 7582654 + 6c6398d commit fff1367

37 files changed

+1270
-42623
lines changed

.babelrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"presets": ["@babel/preset-react"]
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-typescript"
5+
]
36
}

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
2-
"extends": ["standard", "react-app"],
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint"],
4+
"parserOptions": {
5+
"project": "./tsconfig.json"
6+
},
7+
"extends": ["standard-with-typescript", "plugin:react/recommended", "plugin:react-hooks/recommended", "plugin:storybook/recommended"],
38
"rules": {
49
"array-bracket-spacing": "error",
510
"no-lonely-if": "warn",
@@ -15,9 +20,21 @@
1520
}
1621
],
1722
"quote-props": "warn",
18-
"import/no-anonymous-default-export": [
19-
"error", {
20-
"allowObject": true
21-
}]
23+
"@typescript-eslint/no-namespace": "off",
24+
"@typescript-eslint/strict-boolean-expressions": "off",
25+
"@typescript-eslint/promise-function-async": "off",
26+
"@typescript-eslint/array-type": "warn",
27+
"@typescript-eslint/no-confusing-void-expression": "off",
28+
"@typescript-eslint/no-invalid-void-type": "off",
29+
"@typescript-eslint/no-unused-vars": "warn",
30+
"@typescript-eslint/explicit-function-return-type": "warn",
31+
"@typescript-eslint/method-signature-style": "off",
32+
"@typescript-eslint/no-non-null-assertion": "warn",
33+
"react/prop-types": [
34+
"warn",
35+
{
36+
"ignore": ["children"]
37+
}
38+
]
2239
}
23-
}
40+
}

.github/workflows/deploy.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest]
20-
node: [16]
21-
packager: [npm]
20+
bun: [1.0.x]
2221

2322
runs-on: ${{ matrix.os }}
2423

@@ -33,25 +32,24 @@ jobs:
3332

3433
steps:
3534
- uses: actions/checkout@v3
36-
- name: Set up Node
35+
- name: Set up Bun
3736
id: setup
38-
uses: actions/setup-node@v3
37+
uses: oven-sh/setup-bun@v1
3938
with:
40-
node-version: ${{ matrix.node }}
41-
cache: ${{ matrix.packager }}
39+
bun-version: ${{ matrix.bun }}
4240
- name: Setup Pages
43-
uses: actions/configure-pages@v1
41+
uses: actions/configure-pages@v3
4442
- name: Install Dependencies
45-
run: npm ci
43+
run: bun i
4644
- name: Build Resources
47-
run: npm run build-storybook
45+
run: bun run build-storybook
4846
- name: Upload Static Artifact
4947
uses: actions/upload-pages-artifact@v1
5048
with:
51-
path: './storybook/'
49+
path: 'storybook/'
5250
- name: Deploy Storybook to Github Pages
5351
id: deploy
54-
uses: actions/deploy-pages@main
52+
uses: actions/deploy-pages@v2
5553

5654
package:
5755
name: Publish to NPM

.github/workflows/quality_assurance.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Quality Assurance
22

3-
on:
3+
on:
44
push:
55
pull_request:
66

@@ -11,23 +11,21 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
node: [16, lts/*]
15-
packager: [npm]
14+
bun: [1.0.x]
1615

1716
runs-on: ${{ matrix.os }}
1817

1918
steps:
2019
- uses: actions/checkout@v3
21-
- name: Set up Node
20+
- name: Set up Bun
2221
id: setup
23-
uses: actions/setup-node@v3
22+
uses: oven-sh/setup-bun@v1
2423
with:
25-
node-version: ${{ matrix.node }}
26-
cache: ${{ matrix.packager }}
24+
bun-version: ${{ matrix.bun }}
2725
- name: Install Dependencies
28-
run: npm ci
26+
run: bun i
2927
- name: Lint Code
30-
run: npm run lint
28+
run: bun run lint
3129
analyze:
3230
name: Security Analysis
3331

.storybook/main.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

.storybook/main.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { type StorybookConfig } from '@storybook/react-webpack5'
2+
3+
const config: StorybookConfig = {
4+
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
5+
addons: [
6+
'@storybook/addon-links',
7+
'@storybook/addon-essentials',
8+
'@storybook/addon-actions',
9+
{
10+
name: '@storybook/addon-styling',
11+
options: {
12+
postCss: true
13+
}
14+
}
15+
],
16+
framework: {
17+
name: '@storybook/react-webpack5',
18+
options: {}
19+
},
20+
staticDirs: ['../src/stories/assets', '../assets'],
21+
docs: {
22+
autodocs: false
23+
}
24+
}
25+
26+
export default config

.storybook/preview.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

.storybook/preview.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { type Preview } from '@storybook/react'
2+
import '@storybook/addon-console'
3+
4+
const preview: Preview = {
5+
parameters: {
6+
actions: {
7+
argTypesRegex: '^on[A-Z].*'
8+
},
9+
controls: {
10+
matchers: {
11+
color: /(background|color)$/i,
12+
date: /Date$/,
13+
}
14+
},
15+
docs: {
16+
disable: true,
17+
hidden: true
18+
},
19+
console: {
20+
disabled: false,
21+
patterns: [/^dev$/],
22+
omitFirst: true
23+
}
24+
}
25+
}
26+
27+
export default preview

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Roadmap](https://img.shields.io/badge/ROADMAP-GITHUB%20PROJECT-2d85e3?style=for-the-badge&logo=trello)](https://github.com/users/exoRift/projects/2/views/4)
77

88
[![Maintainability](https://api.codeclimate.com/v1/badges/a6122e76dcb42d834772/maintainability)](https://codeclimate.com/github/exoRift/react-fluent-mobile/maintainability)
9-
[![Quality Assurance](https://img.shields.io/github/workflow/status/exoRift/react-fluent-mobile/Quality%20Assurance/master?label=Quality%20Assurance&logo=github)](https://github.com/exoRift/react-fluent-mobile/actions/workflows/quality_assurance.yml)
9+
[![Quality Assurance](https://img.shields.io/github/actions/workflow/status/exoRift/react-fluent-mobile/quality_assurance.yml?branch=master&label=Quality%20Assurance&logo=github)](https://github.com/exoRift/react-fluent-mobile/actions/workflows/quality_assurance.yml)
1010

1111
# *What's the problem with mobile browsers?*
1212
### Mobile web browsers are an adaptation of the PC browsing experience for your mobile device. As a result, many features found on desktop browsers are sloppily implemented in ways that just aren't meant for phones, degrading your browsing experience.
@@ -16,7 +16,7 @@
1616
**react-fluent-mobile** allows you to take your mobile browser's native features and augment them, improving gloss and agility without compromising on ability.
1717

1818
## Selecting text
19-
<img alt='selectionvideo' src='assets/selection.gif' width='150'/>
19+
<img alt='selectionvideo' src='assets/selection.gif' width='150' />
2020

2121
Fluent takes selecting text on mobile to a whole new level by adding the *selection manipulation pad*. When text is selected by the user, whether selected through normal means, selected by the website, or tap-selected on Android, the *selection manipulation pad* appears. Users can touch and drag on the pad to shift the bounds of their selection in any direction they'd like, transforming their selection. Once the selection is fit to the user's liking, they can tap on the pad to instantly copy their selection to their clipboard.
2222

@@ -35,13 +35,15 @@ nativeManipulationInactivityDuration|The interval the manipulation pad is inacti
3535
theme|The theme of the pad (dark, light)
3636

3737
## Context menus
38-
<img alt='contextvideo' src='assets/context.gif' width='150'/>
38+
<img alt='contextvideo' src='assets/context.gif' width='150' />
3939

4040
Context menus have been reimagined! Now, instead of holding and lifting your finger four times, holding down on a link or image will launch a cleaner context menu in which you can drag you finger to the desired option and lift your finger to select it. No more tapping!
4141

4242
If the new context menu is not desired, there is an option located at the bottom corner of the screen to disable it.
4343

44-
> NOTE: The *share* features are only available on HTTPS sites
44+
> *NOTE: Opening in new tab may trigger browser popup blockers*
45+
> *NOTE: The `share` features are only available on HTTPS sites*
46+
> *NOTE: Copying images to clipboard utilizes [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API) and therefore requires HTTPS.*
4547
4648
### Component Properties
4749
Name|Description
@@ -65,8 +67,8 @@ import {
6567
function Component (props) {
6668
return (
6769
<>
68-
<FluentContextMixin/>
69-
<FluentSelectionMixin/>
70+
<FluentContextMixin />
71+
<FluentSelectionMixin />
7072

7173
<div ...>
7274
...
@@ -79,7 +81,7 @@ function Component (props) {
7981
## *Snappy, fluid, deliberate interactions*
8082
*INSERT GIF*
8183

82-
<br/>
84+
<br />
8385

8486
***
8587
## Known bugs

0 commit comments

Comments
 (0)