Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Update project to use official directus extension scaffolding tools
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyst committed Jul 4, 2023
1 parent 46cd4ab commit 6f3605f
Show file tree
Hide file tree
Showing 18 changed files with 10,354 additions and 3,779 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DS_Store
node_modules
dist
config.js
*.sqlite
99 changes: 99 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Changelog

All notable changes to this project will be documented in this file. A "⚠️" emoji denotes a potentially breaking change.

## [2.0.0] - 2023-04-07

### Changed

- ⚠️ Config file is now a ES module not a CommonJS module
- Updated dependencies

### Other

- Updated project to use the official directus extension scaffolding and CLI tool

## [1.6.0] - 2022-11-30

### Changed

- Bumped express version
- Temporarily avoid using JSON field filtering as directus removed support for it

### Fixed

- Include mime type in GPX upload

## [1.5.0] - 2022-06-09

### Changed

- Combined activities list into main page
- Remove all code and documentation related to subscribing to changes
- Improved logging output


## [1.4.0] - 2022-01-03

### Changed

- Add option to disable requirement for directus authentication cookie if you want to use some other method

### Fixed

- Remove unused options from README

## [1.3.1] - 2021-11-27

### Fixed

- Webhook subscription not working due to lack of auth cookie

## [1.3.0] - 2021-11-17

### Changed

- Updated compatibility to stable directus 9.0.1
- Remove server as I realised the server would need to track athlete IDs and endpoint urls to be multi user and I don't want to do that. Now you need your own oauth app.
- Add dark mode

### Other

- Converted to typescript

## [1.2.0] - 2021-10-04

### Changed

- Changed app name to Directus Strava
- Make extension path configurable
- Add secret for webhook endpoint
- Add favicon and title to html pages

### Other

- Improve heroku server documentation

## [1.1.0] - 2021-10-04

### Changed

- Check for Directus login so that unauthenticated users cannot see Strava data
- Use cookies for storing Strava token to eliminate need for metadata table in Directus

## [1.0.1] - 2021-10-01

### Fixed

- Fix authentication token not refreshing due to reinitialised variable
- Fix updated checkmark not appearing due to query string / activity id type mismatch

### Other

- Added dev build script that includes sourcemaps

## [1.0.0] - 2021-09-13

### Added

- Initial release.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The Strava activity endpoint does not allow access to private notes or original

### Install

Compatible with Directus 9.x.x.
Compatible with Directus 10.x.x.

Install the extension by copying the release files to your directus extensions folder:

Expand Down Expand Up @@ -55,3 +55,9 @@ Build the extension files:
```
npm run build
```

Run an instance of Directus with the extension installed:

```
npm run start
```
13 changes: 13 additions & 0 deletions extension.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import copy from "rollup-plugin-copy";
import { string } from "rollup-plugin-string";

export default {
plugins: [
copy({
targets: [{ src: "src/config.js", dest: "dist" }],
}),
string({
include: "**/*.njk",
}),
],
};
3 changes: 0 additions & 3 deletions fake_modules/fsevents/index.js

This file was deleted.

11 changes: 0 additions & 11 deletions fake_modules/fsevents/package.json

This file was deleted.

Loading

0 comments on commit 6f3605f

Please sign in to comment.