Skip to content

Commit 68c64de

Browse files
committed
chore: clean-up
1 parent 9f735a8 commit 68c64de

File tree

3 files changed

+0
-89
lines changed

3 files changed

+0
-89
lines changed

docs/assets/js/code-examples.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
/* global ClipboardJS: false, coreui: false */
1313

1414
(() => {
15-
'use strict'
16-
1715
// Insert copy to clipboard button before .highlight
1816
const btnTitle = 'Copy to clipboard'
1917
const btnEdit = 'Edit on StackBlitz'

docs/assets/js/search.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// ++++++++++++++++++++++++++++++++++++++++++
44

55
(() => {
6-
'use strict'
7-
86
const searchElement = document.getElementById('docsearch')
97

108
if (!window.docsearch || !searchElement) {

js/src/util/time.js

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -191,88 +191,3 @@ export const isValidTime = time => {
191191
const d = new Date(`1970-01-01 ${time}`)
192192
return d instanceof Date && d.getTime()
193193
}
194-
195-
// export const convert12hTo24h = (abbr, hour) => {
196-
// if (abbr === 'am' && hour === 12) {
197-
// return 0
198-
// }
199-
200-
// if (abbr === 'am') {
201-
// return hour
202-
// }
203-
204-
// if (abbr === 'pm' && hour === 12) {
205-
// return 12
206-
// }
207-
208-
// return hour + 12
209-
// }
210-
211-
// export const convert24hTo12h = hour => hour % 12 || 12
212-
213-
// export const convertTimeToDate = time =>
214-
// time ?
215-
// (time instanceof Date ?
216-
// time :
217-
// new Date(`1970-01-01 ${time}`)) :
218-
// null
219-
220-
// export const getAmPm = (date, locale) => {
221-
// if (date.toLocaleTimeString(locale).includes('AM')) {
222-
// return 'am'
223-
// }
224-
225-
// if (date.toLocaleTimeString(locale).includes('PM')) {
226-
// return 'pm'
227-
// }
228-
229-
// return date.getHours() >= 12 ? 'pm' : 'am'
230-
// }
231-
232-
// export const getListOfHours = (locale, ampm = 'auto') => Array.from({ length: (ampm === 'auto' && isAmPm(locale)) || ampm === true ? 12 : 24 }, (_, i) => {
233-
// return {
234-
// value: (ampm === 'auto' && isAmPm(locale)) || ampm === true ? i + 1 : i,
235-
// label: ((ampm === 'auto' && isAmPm(locale)) || ampm === true ? i + 1 : i).toLocaleString(locale)
236-
// }
237-
// })
238-
239-
// export const getListOfMinutes = (locale, valueAsString = false) => Array.from({ length: 60 }, (_, i) => {
240-
// const d = new Date()
241-
// d.setMinutes(i)
242-
// return {
243-
// value: valueAsString ? i.toString() : i,
244-
// label: d
245-
// .toLocaleTimeString(locale, {
246-
// minute: '2-digit',
247-
// second: '2-digit'
248-
// })
249-
// .split(/[^\dA-Za-z\u06F0-\u06F9]/)[0]
250-
// }
251-
// })
252-
253-
// export const getListOfSeconds = (locale, valueAsString = false) => Array.from({ length: 60 }, (_, i) => {
254-
// const d = new Date()
255-
// d.setSeconds(i)
256-
// return {
257-
// value: valueAsString ? i.toString() : i,
258-
// label: d
259-
// .toLocaleTimeString(locale, {
260-
// minute: '2-digit',
261-
// second: '2-digit'
262-
// })
263-
// .split(/[^\dA-Za-z\u06F0-\u06F9]/)[1]
264-
// }
265-
// })
266-
267-
// export const getSelectedHour = (date, locale) => date ? (isAmPm(locale) ? convert24hTo12h(date.getHours()) : date.getHours()) : ''
268-
269-
// export const getSelectedMinutes = date => (date ? date.getMinutes() : '')
270-
271-
// export const getSelectedSeconds = date => (date ? date.getSeconds() : '')
272-
273-
// export const isAmPm = locale => ['am', 'AM', 'pm', 'PM'].some(el => new Date().toLocaleString(locale).includes(el))
274-
275-
// export const isValidTime = time => {
276-
// const d = new Date(`1970-01-01 ${time}`)
277-
// return d instanceof Date && d.getTime()
278-
// }

0 commit comments

Comments
 (0)