Skip to content

Commit eed79e3

Browse files
authored
Merge pull request #114 from TaloDev/develop
Release 0.24.0
2 parents 666c266 + 8e73abd commit eed79e3

File tree

7 files changed

+12
-15
lines changed

7 files changed

+12
-15
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Build and push
2626
id: docker_build
27-
uses: docker/build-push-action@v3
27+
uses: docker/build-push-action@v4
2828
with:
2929
push: true
3030
tags: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:lts-alpine AS build
1+
FROM node:16-alpine AS build
22
WORKDIR /usr/frontend
33
COPY . .
44
RUN yarn

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"classnames": "^2.3.2",
2020
"date-fns": "^2.29.3",
2121
"dinero.js": "^2.0.0-alpha.11",
22-
"framer-motion": "^8.0.0",
22+
"framer-motion": "^9.0.0",
2323
"lodash-es": "^4.17.21",
2424
"prop-types": "^15.7.2",
2525
"querystring": "^0.2.1",
@@ -71,7 +71,7 @@
7171
"lint-staged": {
7272
"*.{js,jsx}": "eslint --fix"
7373
},
74-
"version": "0.23.2",
74+
"version": "0.24.0",
7575
"engines": {
7676
"node": "16.x"
7777
}

src/components/AlertBanner.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const AlertBanner = (props) => {
1414
AlertBanner.propTypes = {
1515
text: PropTypes.oneOfType([PropTypes.node, PropTypes.string]).isRequired,
1616
className: PropTypes.string,
17-
icon: PropTypes.func
17+
icon: PropTypes.object
1818
}
1919

2020
AlertBanner.defaultProps = {

src/modals/Scopes.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types'
22
import Modal from '../components/Modal'
33
import Button from '../components/Button'
44

5-
const Scopes = (props) => {
5+
export default function Scopes(props) {
66
const [, setOpen] = props.modalState
77

88
return (
@@ -13,7 +13,6 @@ const Scopes = (props) => {
1313
>
1414
<div>
1515
<div className='p-4 space-y-4'>
16-
<p>Key ending in <span className='font-semibold'>{props.selectedKey?.token}</span></p>
1716
<div className='text-white'>
1817
<div className='flex flex-wrap -mb-2'>
1918
{props.selectedKey?.scopes.sort((a, b) => {
@@ -40,5 +39,3 @@ Scopes.propTypes = {
4039
modalState: PropTypes.array.isRequired,
4140
selectedKey: PropTypes.object
4241
}
43-
44-
export default Scopes

src/pages/APIKeys.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ const APIKeys = () => {
115115
}
116116

117117
{user.emailConfirmed && keys.length > 0 &&
118-
<Table columns={['Ending in', 'Created by', 'Created at', 'Scopes', '']}>
118+
<Table columns={['Created by', 'Created at', 'Last used', 'Scopes', '']}>
119119
<TableBody iterator={keys}>
120120
{(key) => (
121121
<>
122-
<TableCell>{key.token}</TableCell>
123122
<TableCell>{key.createdBy === user.username ? 'You' : key.createdBy}</TableCell>
124123
<DateCell>{format(new Date(key.createdAt), 'dd MMM Y, HH:mm')}</DateCell>
124+
<DateCell>{key.lastUsedAt ? format(new Date(key.lastUsedAt), 'dd MMM Y, HH:mm') : 'Never used'}</DateCell>
125125
<TableCell className='flex'>
126126
<div>
127127
<Button variant='grey' onClick={() => setSelectedKey(key)}>View scopes</Button>

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2752,10 +2752,10 @@ fraction.js@^4.2.0:
27522752
resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.2.0.tgz#448e5109a313a3527f5a3ab2119ec4cf0e0e2950"
27532753
integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==
27542754

2755-
framer-motion@^8.0.0:
2756-
version "8.5.0"
2757-
resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-8.5.0.tgz#700cc132f7b22b1627d0031a4ae8d169998a9613"
2758-
integrity sha512-z5hQvIa+9uFcA2aFmT+6XsUfuVPl9Y1uhs5yntxU1Q0E6hm4wDRpvFlB/yYN/cdfXUctf/1Q1Rep/dqOipz8sg==
2755+
framer-motion@^9.0.0:
2756+
version "9.0.0"
2757+
resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-9.0.0.tgz#acad6aa4bea014ee06f4300941a1cb71eebefc41"
2758+
integrity sha512-nDLVzUlIUNyxD7SbqWpWKBeK1FIP/mDMFNy4yhXjhaRoyvGPcoe3uGYf0cEti+DG64N99Dzaw5kdmVjsxbwlEA==
27592759
dependencies:
27602760
"@motionone/dom" "^10.15.3"
27612761
hey-listen "^1.0.8"

0 commit comments

Comments
 (0)