Skip to content

Commit

Permalink
Export section to have commas and be sorted, last line at end
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 committed Jan 7, 2024
1 parent e88cff3 commit 61b3f57
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 44 deletions.
4 changes: 3 additions & 1 deletion js/date-aux.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ function getCurrentDateTimeStr()
}

export {
getDateStr, getMonthLength, getCurrentDateTimeStr
getCurrentDateTimeStr,
getDateStr,
getMonthLength,
};
4 changes: 2 additions & 2 deletions js/date-db-formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ function generateKey(year, month, day)
}

export {
generateKey,
};
generateKey
};
2 changes: 1 addition & 1 deletion js/date-to-string-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ function getMonthName(languageData, monthIndex)

export {
getDayAbbr,
getMonthName
getMonthName,
};
2 changes: 1 addition & 1 deletion js/demo-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ function generateDemoInformation(dateFromStr, dateToStr, workingDays, usualTimes

module.exports = {
generateDemoInformation
};
};
4 changes: 2 additions & 2 deletions js/import-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ function migrateFixedDbToFlexible()
}

module.exports = {
importDatabaseFromFile,
exportDatabaseToFile,
importDatabaseFromFile,
migrateFixedDbToFlexible,
validEntry
validEntry,
};
10 changes: 5 additions & 5 deletions js/main-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ function resetMainWindow()
}

module.exports = {
createWindow,
createMenu,
createWindow,
getLeaveByInterval: () => leaveByInterval,
getMainWindow,
triggerStartupDialogs,
shouldProposeFlexibleDbMigration,
getWindowTray: () => tray,
proposeFlexibleDbMigration,
resetMainWindow,
getLeaveByInterval: () => leaveByInterval,
getWindowTray: () => tray
shouldProposeFlexibleDbMigration,
triggerStartupDialogs,
};
2 changes: 1 addition & 1 deletion js/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,5 +375,5 @@ module.exports = {
getEditMenuTemplate,
getHelpMenuTemplate,
getMainMenuTemplate,
getViewMenuTemplate
getViewMenuTemplate,
};
2 changes: 1 addition & 1 deletion js/saved-preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ ipcMain.on('PREFERENCE_SAVE_DATA_NEEDED', (event, preferences) =>

module.exports = {
getSavedPreferences
};
};
4 changes: 2 additions & 2 deletions js/time-balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async function computeAllTimeBalanceUntilAsync(limitDate)
}

export {
computeAllTimeBalanceUntilAsync,
computeAllTimeBalanceUntil,
getFirstInputInDb
computeAllTimeBalanceUntilAsync,
getFirstInputInDb,
};
8 changes: 4 additions & 4 deletions js/time-math.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ function validateDate(date)
}

export {
diffDays,
hourMinToHourFormatted,
hourToMinutes,
isNegative,
multiplyTime,
minutesToHourFormatted,
multiplyTime,
subtractTime,
sumTime,
validateDate,
validateTime,
hourToMinutes,
diffDays,
validateDate
};
4 changes: 2 additions & 2 deletions js/update-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ async function checkForUpdates(showUpToDateDialog)

module.exports = {
checkForUpdates,
shouldCheckForUpdates
};
shouldCheckForUpdates,
};
12 changes: 6 additions & 6 deletions js/user-preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,16 +354,16 @@ export {
defaultPreferences,
getDefaultWidthHeight,
getLoadedOrDerivedUserPreferences as getUserPreferences,
getUserPreferencesPromise,
getUserLanguage,
getNotificationsInterval,
getPreferencesFilePath,
savePreferences,
showDay,
switchCalendarView,
getUserLanguage,
getUserPreferencesPromise,
isNotBoolean,
isNotificationInterval,
notificationIsEnabled,
repetitionIsEnabled,
resetPreferences
resetPreferences,
savePreferences,
showDay,
switchCalendarView,
};
8 changes: 4 additions & 4 deletions js/windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ function getWaiverWindow()
}

module.exports = {
prefWindow,
tray,
contextMenu,
openWaiverManagerWindow,
getDialogCoordinates,
getWaiverWindow,
resetWindowsElements
openWaiverManagerWindow,
prefWindow,
resetWindowsElements,
tray,
};
2 changes: 1 addition & 1 deletion main/workday-waiver-aux.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,5 @@ module.exports = {
getCountries,
getRegions,
getStates,
setupWorkdayWaiverHandlers
setupWorkdayWaiverHandlers,
};
4 changes: 2 additions & 2 deletions renderer/i18n-translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ function translatePage(language, languageData, windowName)

export {
getTranslationInLanguageData,
translatePage
};
translatePage,
};
2 changes: 1 addition & 1 deletion renderer/notification-channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const searchLeaveByElement = (event) =>

export {
searchLeaveByElement
};
};
4 changes: 2 additions & 2 deletions renderer/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function applyTheme(theme)
}

export {
themeOptions,
applyTheme,
isValidTheme
isValidTheme,
themeOptions,
};
2 changes: 1 addition & 1 deletion renderer/workday-waiver-aux.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ function displayWaiverWindow(waiverDay)
}

export {
displayWaiverWindow,
formatDayId,
displayWaiverWindow
};
4 changes: 2 additions & 2 deletions src/configs/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ const namespace = 'translation';

export {
fallbackLng,
namespace,
getLanguageMap,
getLanguageName,
getLanguagesCodes,
getLanguageName
namespace,
};
2 changes: 1 addition & 1 deletion src/configs/i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ module.exports =
changeLanguage,
getCurrentTranslation,
setLanguageChangedCallback,
setupI18n
setupI18n,
};
4 changes: 2 additions & 2 deletions src/workday-waiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ $(async() =>
export {
addHolidayToList,
addWaiver,
clearTable,
clearHolidayTable,
clearTable,
clearWaiverList,
deleteEntryOnClick,
getHolidays,
Expand All @@ -497,8 +497,8 @@ export {
populateList,
populateState,
populateYear,
refreshDataForTest,
setDates,
setHours,
toggleAddButton,
refreshDataForTest
};

0 comments on commit 61b3f57

Please sign in to comment.