Skip to content

Commit

Permalink
Update to stable version 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adnzaki committed Mar 16, 2023
1 parent efe6cfd commit 3e00f79
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const paging = usePagingStore()
```
For use without build tool, you can include SSPaging via CDN:
```html
<script src="https://unpkg.com/[email protected]-beta.1/dist/ss-paging.dist.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ss-paging.dist.js"></script>
```
```javascript
// in your JS file
Expand Down
21 changes: 12 additions & 9 deletions dist/ss-paging.dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var SSPaging = (function (exports, vue) {
* @package Pagination
* @author Adnan Zaki
* @type Libraries
* @version 2.3.0-beta.1
* @version 2.3.0
* @url https://lib.actudent.com/ss-paging
*/

Expand Down Expand Up @@ -260,19 +260,22 @@ var SSPaging = (function (exports, vue) {
options.beforeRequest();
}

let fetchOptions = {
method: 'GET',
mode: options.cors === undefined ? 'cors' : options.cors, // CORS must be default
headers: {
Authorization: options.token ?? ''
}
};
let fetchOptions = {};

// we always use authentication for getting data by default
// but it can be turned off for some purposes
// Eg: Getting public data
if(!options.useAuth) {
if(options.useAuth === false) {
fetchOptions = { method: 'GET' };
this.useAuth = options.useAuth;
} else {
fetchOptions = {
method: 'GET',
mode: options.mode === undefined ? 'cors' : options.mode, // CORS must be default
headers: {
Authorization: options.token ?? ''
}
};
}

fetch(requestURL, fetchOptions)
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
{ icon: 'github', link: 'https://github.com/adnzaki/ss-paging-vue' }
],
nav: [
{ text: 'v2.3.0-beta.1', link: 'https://www.npmjs.com/package/ss-paging-vue' }
{ text: 'v2.3.0', link: 'https://www.npmjs.com/package/ss-paging-vue' }
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/builtin-components/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ If you use build tool, pagination components has been included with SSPaging aft

If you do not use build tool, pagination components should be imported in your script tag and can be accessed via `SSComponents` object.
```html
<script src="https://unpkg.com/[email protected]-beta.1/components/dist/ss-components.prod.js"></script>
<script src="https://unpkg.com/[email protected]/components/dist/ss-components.prod.js"></script>
```

## Requirements
Expand All @@ -16,7 +16,7 @@ SSPaging components relies on Material Icons to define its icon. You have to inc
- ### Components Stylesheet
Pagination components' stylesheet should be imported manually in your HTML header:
```html
<link rel="stylesheet" href="https://unpkg.com/[email protected]-beta.1/components/dist/style.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/components/dist/style.css">
```

## Local Usage
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const paging = usePagingStore()
```
For use without build tool, you can include SSPaging via CDN:
```html
<script src="https://unpkg.com/[email protected]-beta.1/dist/ss-paging.dist.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ss-paging.dist.js"></script>
```
```javascript
// in your JS file
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ss-paging-vue",
"version": "2.3.0-beta.1",
"version": "2.3.0",
"description": "SSPaging: A Full Server-side pagination library for Vue.js",
"main": "index.js",
"directories": {},
Expand Down
2 changes: 1 addition & 1 deletion src/ss-paging-esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @package Pagination
* @author Adnan Zaki
* @type Libraries
* @version 2.3.0-beta.1
* @version 2.3.0
* @url https://lib.actudent.com/ss-paging
*/
import { ref, reactive, computed } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion src/ss-paging-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @package Pagination
* @author Adnan Zaki
* @type Libraries
* @version 2.3.0-beta.1
* @version 2.3.0
* @url https://lib.actudent.com/ss-paging
*/

Expand Down

0 comments on commit 3e00f79

Please sign in to comment.