-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Proposer le QRCode des évènements via un pass Apple Wallet
Merge pull request #2 from VincentHardouin/feat-add-pass
- Loading branch information
Showing
47 changed files
with
1,383 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
.env | ||
.env | ||
certs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
const up = async function (knex) { | ||
await knex.schema.createTable('devices', (table) => { | ||
table.string('deviceLibraryIdentifier').primary(); | ||
table.string('pushToken').notNullable(); | ||
table.dateTime('created_at').notNullable().defaultTo(knex.fn.now()); | ||
}); | ||
|
||
await knex.schema.createTable('passes', (table) => { | ||
table.string('passTypeIdentifier').notNullable(); | ||
table.string('serialNumber').notNullable().unique(); | ||
table.string('nextEvent').defaultTo(null); | ||
table.timestamp('updated_at').notNullable().defaultTo(knex.fn.now()); | ||
}); | ||
|
||
await knex.schema.createTable('registrations', (table) => { | ||
table.string('passTypeIdentifier'); | ||
table.string('serialNumber').references('passes.serialNumber'); | ||
table.string('deviceLibraryIdentifier').references('devices.deviceLibraryIdentifier'); | ||
table.dateTime('created_at').notNullable().defaultTo(knex.fn.now()); | ||
}); | ||
}; | ||
|
||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
const down = async function (knex) { | ||
await knex.schema.dropTable('registrations'); | ||
await knex.schema.dropTable('passes'); | ||
await knex.schema.dropTable('devices'); | ||
}; | ||
|
||
export { | ||
down, | ||
up, | ||
}; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"formatVersion": 1, | ||
"locations": [ | ||
{ | ||
"longitude": 2.371645, | ||
"latitude": 48.896370 | ||
} | ||
], | ||
"organizationName": "Vincent Hardouin", | ||
"description": "UCPA Reservation ticket", | ||
"labelColor": "rgb(255, 255, 255)", | ||
"foregroundColor": "rgb(255, 255, 255)", | ||
"backgroundColor": "rgb(76, 19, 223)", | ||
"eventTicket": { | ||
"primaryFields": [ | ||
], | ||
"secondaryFields": [ | ||
] | ||
} | ||
} |
Oops, something went wrong.