mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 22:24:11 +00:00
Merge remote-tracking branch 'origin/master' into excel-import
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ontime-ui",
|
"name": "ontime-ui",
|
||||||
"version": "2.8.2",
|
"version": "2.9.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^2.7.0",
|
"@chakra-ui/react": "^2.7.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ontime",
|
"name": "ontime",
|
||||||
"version": "2.8.2",
|
"version": "2.9.0",
|
||||||
"author": "Carlos Valente",
|
"author": "Carlos Valente",
|
||||||
"description": "Time keeping for live events",
|
"description": "Time keeping for live events",
|
||||||
"repository": "https://github.com/cpvalente/ontime",
|
"repository": "https://github.com/cpvalente/ontime",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "ontime-server",
|
"name": "ontime-server",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"version": "2.8.2",
|
"version": "2.9.0",
|
||||||
"exports": "./src/index.js",
|
"exports": "./src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.20.0",
|
"body-parser": "^1.20.0",
|
||||||
|
|||||||
@@ -106,8 +106,8 @@ export const parseExcel = (excelData: unknown[][], options?: Partial<ExcelImport
|
|||||||
.filter((e) => e.length > 0)
|
.filter((e) => e.length > 0)
|
||||||
.forEach((row) => {
|
.forEach((row) => {
|
||||||
// these fields contain the data to its right
|
// these fields contain the data to its right
|
||||||
let eventTitleNext = false;
|
|
||||||
let projectTitleNext = false;
|
let projectTitleNext = false;
|
||||||
|
let projectDescriptionNext = false;
|
||||||
let publicUrlNext = false;
|
let publicUrlNext = false;
|
||||||
let publicInfoNext = false;
|
let publicInfoNext = false;
|
||||||
let backstageUrlNext = false;
|
let backstageUrlNext = false;
|
||||||
@@ -117,12 +117,12 @@ export const parseExcel = (excelData: unknown[][], options?: Partial<ExcelImport
|
|||||||
|
|
||||||
row.forEach((column, j) => {
|
row.forEach((column, j) => {
|
||||||
// 1. we check if we have set a flag for a known field
|
// 1. we check if we have set a flag for a known field
|
||||||
if (eventTitleNext) {
|
if (projectTitleNext) {
|
||||||
projectData.title = makeString(column, '');
|
projectData.title = makeString(column, '');
|
||||||
eventTitleNext = false;
|
|
||||||
} else if (projectTitleNext) {
|
|
||||||
projectData.description = makeString(column, '');
|
|
||||||
projectTitleNext = false;
|
projectTitleNext = false;
|
||||||
|
} else if (projectDescriptionNext) {
|
||||||
|
projectData.description = makeString(column, '');
|
||||||
|
projectDescriptionNext = false;
|
||||||
} else if (publicUrlNext) {
|
} else if (publicUrlNext) {
|
||||||
projectData.publicUrl = makeString(column, '');
|
projectData.publicUrl = makeString(column, '');
|
||||||
publicUrlNext = false;
|
publicUrlNext = false;
|
||||||
@@ -190,10 +190,10 @@ export const parseExcel = (excelData: unknown[][], options?: Partial<ExcelImport
|
|||||||
// need to make sure it is a string first
|
// need to make sure it is a string first
|
||||||
switch (col) {
|
switch (col) {
|
||||||
case importMap.projectName:
|
case importMap.projectName:
|
||||||
eventTitleNext = true;
|
projectTitleNext = true;
|
||||||
break;
|
break;
|
||||||
case importMap.projectDescription:
|
case importMap.projectDescription:
|
||||||
projectTitleNext = true;
|
projectDescriptionNext = true;
|
||||||
break;
|
break;
|
||||||
case importMap.publicUrl:
|
case importMap.publicUrl:
|
||||||
publicUrlNext = true;
|
publicUrlNext = true;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ontime",
|
"name": "ontime",
|
||||||
"version": "2.8.2",
|
"version": "2.9.0",
|
||||||
"description": "Time keeping for live events",
|
"description": "Time keeping for live events",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"lighdev",
|
"lighdev",
|
||||||
|
|||||||
Reference in New Issue
Block a user