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

Upstream Changes #1

Open
wants to merge 146 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
ffb30ee
Fix touch events for the color picker.
Kyon147 Jun 23, 2020
a635950
Add check value as a prop
Kyon147 Aug 8, 2020
d9759ca
Removed data value for checked.
Kyon147 Aug 8, 2020
b259810
Build
Kyon147 Aug 8, 2020
245f61c
Checked now works of local data value but takes in a prop for the def…
Kyon147 Aug 9, 2020
444592b
Update composer
Kyon147 Sep 13, 2020
539cd92
console
Kyon147 Sep 13, 2020
473b57f
Build
Kyon147 Sep 13, 2020
ab1f1bc
Build
Kyon147 Sep 13, 2020
eeb45a6
Update README.md
Kyon147 Oct 30, 2021
fa0ec46
Update README.md
Kyon147 Nov 1, 2021
4a2452b
Start the long process od updating the WAY OLD NPM
Kyon147 Nov 7, 2021
f1fd2e0
Update node-sass to dart-sass
Kyon147 Nov 7, 2021
aa10671
Update README.md
Kyon147 Nov 7, 2021
b2d7b31
Update package version
Kyon147 Nov 7, 2021
8ecd576
Merge remote-tracking branch 'origin/master'
Kyon147 Nov 7, 2021
9807efc
Update to math.div
Kyon147 Nov 7, 2021
c6b8da4
update npm
Kyon147 Nov 7, 2021
e1f33c0
Add drop console plugin
Kyon147 Nov 7, 2021
23504cc
Remove logs
Kyon147 Nov 7, 2021
c97da0a
Update to webpack 4 and change the css loaders.
Kyon147 Nov 7, 2021
367629c
polaris min map
Kyon147 Nov 7, 2021
36e5e19
README.md update.
Kyon147 Nov 7, 2021
70b743a
Update test page to 2.6
Kyon147 Nov 8, 2021
c862707
Remove the toString as it can break in the find.
Kyon147 Nov 8, 2021
01f9aec
Fix the selected option in the select to properly update the correct …
Kyon147 Nov 8, 2021
a96de62
Fix the broken stuff in the test.
Kyon147 Nov 8, 2021
a2e1bc0
Fixed the selected option vs the option value to display.
Kyon147 Nov 8, 2021
2b6422b
Fix the select box
Kyon147 Nov 8, 2021
7601e8e
Remove duplicated modal
Kyon147 Nov 8, 2021
d3c07c8
Add datepicker to the popover
Kyon147 Nov 8, 2021
d306d8c
Build next version
Kyon147 Nov 8, 2021
f7f7f49
Hide size hints for now
Kyon147 Nov 8, 2021
cf4443a
Fix the popover.
Kyon147 Nov 8, 2021
6cb2f70
Fix popover with missing content.
Kyon147 Nov 8, 2021
b00a504
Fix actions and button disabled state.
Kyon147 Nov 8, 2021
4b801b1
Add basic button to the test
Kyon147 Nov 8, 2021
ebe0c10
Rebuild for v0.1.29
Kyon147 Nov 8, 2021
544a760
Rebuild for v0.1.30
Kyon147 Nov 9, 2021
3702fcb
Resource list checkout to scoped.
Kyon147 Nov 9, 2021
15a895c
v0.1.31
Kyon147 Nov 9, 2021
5bfb3f7
Tweak the resource list.
Kyon147 Nov 9, 2021
2b40289
Remove console logs
Kyon147 Nov 9, 2021
81d03d4
Remove console logs
Kyon147 Nov 9, 2021
65b3f3c
Merge remote-tracking branch 'origin/master'
Kyon147 Nov 9, 2021
3727641
Create codeql-analysis.yml
Kyon147 Nov 10, 2021
3ec07e5
Add the vue visibility library.
Kyon147 Mar 17, 2022
9198793
Fix the issue where the client height of the color picker modules wou…
Kyon147 Mar 17, 2022
aeb963d
Build
Kyon147 Mar 17, 2022
8596575
0.1.34
Kyon147 Mar 17, 2022
a84b53a
Fix components being in the wrong place in PolarisTag.vue
Kyon147 Mar 17, 2022
911425b
0.1.35
Kyon147 Mar 17, 2022
9f997d1
Merge remote-tracking branch 'origin/master'
Kyon147 Mar 17, 2022
7f83114
Start datatable
Kyon147 Apr 24, 2022
37ba5cb
Add hoverable to DataTable
Kyon147 Apr 24, 2022
de3745b
Add default sorting.
Kyon147 Apr 24, 2022
1f9b368
Fix sorting
Kyon147 Apr 24, 2022
4da7294
Add icon color and hover cursor.
Kyon147 Apr 25, 2022
e2aa5d0
Add custom total string
Kyon147 Apr 25, 2022
10c0e55
Comments
Kyon147 Apr 25, 2022
f8c641e
Revert links for now.
Kyon147 Apr 25, 2022
88d6803
prod build
Kyon147 Apr 25, 2022
069c10a
0.1.36
Kyon147 Apr 25, 2022
e7efcec
Update README.md
Kyon147 Apr 25, 2022
ab3cc7f
Fix bug in the sorting
Kyon147 Apr 25, 2022
59cabdc
0.1.37
Kyon147 Apr 25, 2022
ec2ca64
Fix only sortable when there is a sortable array.
Kyon147 May 1, 2022
e361953
0.1.38
Kyon147 May 1, 2022
978d75e
Fix sorting on non-sortable.
Kyon147 May 1, 2022
65a0ced
0.1.39
Kyon147 May 1, 2022
d617199
Some logging
Kyon147 May 17, 2022
f8db72f
0.1.40
Kyon147 May 17, 2022
dbb63dc
Save build
Kyon147 May 17, 2022
2650b13
0.1.41
Kyon147 May 17, 2022
22c7a5d
Save build
Kyon147 May 17, 2022
d2dd3e5
0.1.42
Kyon147 May 17, 2022
58b7f3e
Fix the missing slot for secondary actions when there is no primary a…
Kyon147 May 17, 2022
37f0fc9
Build
Kyon147 May 17, 2022
87c998a
0.1.43
Kyon147 May 17, 2022
58e5c17
Add some logs
Kyon147 May 17, 2022
f3558d8
0.1.44
Kyon147 May 17, 2022
3543ee0
Add some more logs
Kyon147 May 17, 2022
f864359
0.1.45
Kyon147 May 17, 2022
872d704
more loggess
Kyon147 May 17, 2022
94d1c9a
Icon
Kyon147 May 17, 2022
4e546a6
0.1.46
Kyon147 May 17, 2022
7ff50d3
0.1.47
Kyon147 May 17, 2022
7a7f2e0
fix export
Kyon147 May 17, 2022
917fb92
0.1.48
Kyon147 May 17, 2022
be17af0
Remove logs and build
Kyon147 May 17, 2022
1e63f46
0.2.0
Kyon147 May 17, 2022
a19ce4b
Update README.md
Kyon147 May 18, 2022
895242a
Set up contentual save bar
Kyon147 Jul 17, 2022
9bd737f
Add full width and animations
Kyon147 Jul 17, 2022
ec55aab
Allow to disable and load the button
Kyon147 Jul 17, 2022
d0ebf64
Fix deprecation warnings
Kyon147 Jul 17, 2022
d10479d
Fix moving scss over to math.div
Kyon147 Jul 17, 2022
5ede24d
Fix the color getting darker as it makes is harder to pick the right …
Kyon147 Jul 17, 2022
66f78b5
0.2.1
Kyon147 Jul 17, 2022
d518286
Build
Kyon147 Jul 17, 2022
6b55a28
0.2.2
Kyon147 Jul 17, 2022
5c8f017
Build 0.2.3
Kyon147 Jul 17, 2022
5735e75
0.2.3
Kyon147 Jul 17, 2022
15ee1c3
Add the file drop zone
Kyon147 Jul 31, 2022
bce6a4f
Dynamic button text
Kyon147 Jul 31, 2022
c351499
Fix
Kyon147 Jul 31, 2022
4b8765e
Build 0.2.4
Kyon147 Jul 31, 2022
ee19c12
0.2.4
Kyon147 Jul 31, 2022
63e4cf5
Build 0.2.5 + Names
Kyon147 Jul 31, 2022
405294c
0.2.5
Kyon147 Jul 31, 2022
7c626c4
Update to use sass
Kyon147 Oct 15, 2022
9741c3d
0.2.6
Kyon147 Oct 15, 2022
432df40
update webpack
Kyon147 Oct 15, 2022
c235ab4
0.2.7
Kyon147 Oct 15, 2022
1784039
update webpack
Kyon147 Oct 24, 2022
086b778
Add the createApp
Kyon147 Oct 24, 2022
4df1caa
Add providor stuyff
Kyon147 Oct 24, 2022
5e47bdb
remove app bridge
Kyon147 Oct 24, 2022
71a45e6
Build
Kyon147 Oct 25, 2022
1d3d771
0.3.0
Kyon147 Oct 25, 2022
87978ff
Add better error logging
Kyon147 Oct 26, 2022
fef05ef
Build
Kyon147 Oct 26, 2022
7cd215d
0.3.1
Kyon147 Oct 26, 2022
60fc9c0
Add slots
Kyon147 Apr 24, 2023
dcaed03
Add slots
Kyon147 Apr 24, 2023
002864f
0.3.2
Kyon147 Apr 24, 2023
6215fd8
Fix the datatable
Kyon147 Apr 25, 2023
7effa92
0.3.3
Kyon147 Apr 25, 2023
7226a23
Fix the datatable and fix the drop zone.
Kyon147 Apr 25, 2023
2653b50
0.3.4
Kyon147 Apr 25, 2023
3fbd20a
Updaate resourse list
Kyon147 May 28, 2023
f6110bf
0.3.5
Kyon147 May 28, 2023
10e90b0
Set up the I18n
Kyon147 May 29, 2023
ef9f00a
Build 0.3.6
Kyon147 May 29, 2023
0e94060
0.3.6
Kyon147 May 29, 2023
021fbe0
Add inject
Kyon147 May 29, 2023
2cbc833
0.3.7
Kyon147 May 29, 2023
50483b4
get the function
Kyon147 May 29, 2023
bc3e040
0.3.8
Kyon147 May 29, 2023
5e3c76d
Map the new provider
Kyon147 May 30, 2023
e33ea45
build
Kyon147 May 30, 2023
edbfd72
0.3.9
Kyon147 May 30, 2023
9ecb2b1
new computed for inject/provide
Kyon147 May 30, 2023
7a316de
0.3.10
Kyon147 May 30, 2023
13aac52
Update the banner to match the new-ish components
Kyon147 Nov 17, 2023
ce99054
0.4.0
Kyon147 Nov 17, 2023
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
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": ["es2015"],
"plugins": ["babel-plugin-add-module-exports"]
}
"presets": [["@babel/env", { "modules": "commonjs" }]],
"plugins": ["add-module-exports"]
}
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '35 22 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
58 changes: 42 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
Allows you to use [Shopify Polaris](http://polaris.shopify.com/) components in [Vue 2](http://vuejs.org/).

This library currently contains components up-to-date with: _@shopify/polaris `v1.9.1`_
**Notice:** This has recently been detached so I am working on updating NPM modules and bringing the components up to date. If you'd like to help I'd welcome PRs!

`polaris-vue` has been used in production and been exposed to thousands of merchants, but please note that there may still be some rough edges. If you notice any bugs, please submit a PR or issue. You can also contact [email protected].
Allows you to use [Shopify Polaris](http://polaris.shopify.com/) components in [Vue 2](http://vuejs.org/).

This library currently contains components up-to-date with: @shopify/polaris `v1.9.1`

`polaris-vue` has been used in production and been exposed to thousands of merchants,
but please note that there may still be some rough edges. If you notice any bugs,
please submit a PR or issue. You can also contact [email protected]

## Getting started
```
npm install @eastsideco/polaris-vue
npm install @appydesign/polaris-vue
```

When initializing Vue, i.e. in `main.js`:
```
import Vue from 'vue';
import PolarisVue from '@eastsideco/polaris-vue';
import PolarisVue from '@appydesign/polaris-vue';

// Recommended: import the correct CSS for the version of Polaris the library uses.
import '@eastsideco/polaris-vue/lib/polaris-vue.css';
import '@appydesign/polaris-vue/lib/polaris-vue.css';

// Register the plugin with Vue
Vue.use(PolarisVue);
Expand All @@ -36,14 +38,10 @@ Check the demo page for usage examples.
## Viewing the demo page
The demo page contains code examples of almost all the functionality in the library, so it can be pretty helpful.

To view the demo, open up `node_modules/@eastsideco/polaris-vue/test/index.html` after installing the library.

Online version: http://demo.polaris-vue.eastsideco.io/
To view the demo, open up `node_modules/@appydesign/polaris-vue/test/index.html` after installing the library.

Or to create a standalone copy: clone the repo, run `npm run dev`, then open the file at `test/index.html`.



## Differences to @shopify/polaris

There are a few differences from the official react version you should be aware of:
Expand Down Expand Up @@ -82,12 +80,8 @@ Check out the `<polaris-resource-list>` examples on the demo page for examples.
#### 4. No support for the Polaris EASDK integrations.
This library doesn't currently support complete integration with the EASDK.

You can still use this library in EASDK apps, but the page header will not be automatically hidden and synced with the EASDK header.

Support for the official behavior is planned.



## Configuration

The plugin supports passing configuration via `Vue.use`. Here's the defaults:
Expand All @@ -106,6 +100,38 @@ Vue.use(PolarisVue, {
});
```

## Icons and Laravel Mix
If you are using mix from Laravel, then you'll need to set up the inline loader for the svg icons otherwise you'll only see the grey square placeholder.

You can add an override like so, where we run the `html-loader` to parse the svg files into their HTML.

````js
mix.override(config => {
config.module.rules.find(rule =>
rule.test.test('.svg')
).exclude = /\.svg$/

config.module.rules.push({
test: /\.svg$/,
use: [
{loader: 'html-loader'}
]
})
})
````
## Roadmap
- ~~DataTable~~ done.
- Storybook support (80% done)
- Index Table
- Section Header
- Update Banner Styling to the latest Polaris version

## Contribution
If you are interested contributing all PRs are welcomed.

## Issues
Please file an issue on the [Github Repo](https://github.com/Kyon147/polaris-vue/issues)

## License

This library is provided 'as-is' under the terms of MIT license.
Loading