Index: arms/js/reqReview.js =================================================================== diff -u -r97968f994c782acc8f92465480809bd1a050c8d2 -r7d5b27f2062e67157caf60728906cbe07e9d52ee --- arms/js/reqReview.js (.../reqReview.js) (revision 97968f994c782acc8f92465480809bd1a050c8d2) +++ arms/js/reqReview.js (.../reqReview.js) (revision 7d5b27f2062e67157caf60728906cbe07e9d52ee) @@ -57,8 +57,8 @@ "requirement-elements-collapse" ); - makeTemplate("./js/reviewClassify.do", makeClassifyMenus); - makeTemplate("./js/reviewList.do", makeReviewList); + makeTemplate("./js/reviewClassify.json", makeClassifyMenus); + makeTemplate("./js/reviewList.json", makeReviewList); }); // reviwe click @@ -77,10 +77,10 @@ li.classList.add("active"); // 서버에서 필터 될 때 사용 - // makeTemplate("./js/reviewList.do", makeReviewList); + // makeTemplate("./js/reviewList.json", makeReviewList); // 분류 예제 코드 - const data = await getData("./js/reviewList.do"); + const data = await getData("./js/reviewList.json"); const order = Number(li.dataset.order); makeReviewList( order ? data.filter((item) => item.order === Number(li.dataset.order)) : data FishEye: Tag 7d5b27f2062e67157caf60728906cbe07e9d52ee refers to a dead (removed) revision in file `arms/js/reviewClassify.do'. FishEye: No comparison available. Pass `N' to diff? Index: arms/js/reviewClassify.json =================================================================== diff -u -r4483ab6edc9f75bc9f44ebd23360ee493736862c -r7d5b27f2062e67157caf60728906cbe07e9d52ee --- arms/js/reviewClassify.json (.../reviewClassify.json) (revision 4483ab6edc9f75bc9f44ebd23360ee493736862c) +++ arms/js/reviewClassify.json (.../reviewClassify.json) (revision 7d5b27f2062e67157caf60728906cbe07e9d52ee) @@ -1,147 +1,6 @@ -import { hooks } from '../utils/hooks'; -import { createDate, createUTCDate } from './date-from-array'; -import { daysInYear } from '../units/year'; -import { weekOfYear, weeksInYear, dayOfYearFromWeeks } from '../units/week-calendar-utils'; -import { YEAR, MONTH, DATE, HOUR, MINUTE, SECOND, MILLISECOND } from '../units/constants'; -import { createLocal } from './local'; -import defaults from '../utils/defaults'; -import getParsingFlags from './parsing-flags'; - -function currentDateArray(config) { - // hooks is actually the exported moment object - var nowValue = new Date(hooks.now()); - if (config._useUTC) { - return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()]; - } - return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; -} - -// convert an array to a date. -// the array should mirror the parameters below -// note: all values past the year are optional and will default to the lowest possible value. -// [year, month, day , hour, minute, second, millisecond] -export function configFromArray (config) { - var i, date, input = [], currentDate, expectedWeekday, yearToUse; - - if (config._d) { - return; - } - - currentDate = currentDateArray(config); - - //compute day of the year from weeks and weekdays - if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { - dayOfYearFromWeekInfo(config); - } - - //if the day of the year is set, figure out what it is - if (config._dayOfYear != null) { - yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); - - if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) { - getParsingFlags(config)._overflowDayOfYear = true; - } - - date = createUTCDate(yearToUse, 0, config._dayOfYear); - config._a[MONTH] = date.getUTCMonth(); - config._a[DATE] = date.getUTCDate(); - } - - // Default to current date. - // * if no year, month, day of month are given, default to today - // * if day of month is given, default month and year - // * if month is given, default only year - // * if year is given, don't default anything - for (i = 0; i < 3 && config._a[i] == null; ++i) { - config._a[i] = input[i] = currentDate[i]; - } - - // Zero out whatever was not defaulted, including time - for (; i < 7; i++) { - config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; - } - - // Check for 24:00:00.000 - if (config._a[HOUR] === 24 && - config._a[MINUTE] === 0 && - config._a[SECOND] === 0 && - config._a[MILLISECOND] === 0) { - config._nextDay = true; - config._a[HOUR] = 0; - } - - config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input); - expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(); - - // Apply timezone offset from input. The actual utcOffset can be changed - // with parseZone. - if (config._tzm != null) { - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - } - - if (config._nextDay) { - config._a[HOUR] = 24; - } - - // check for mismatching day of week - if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) { - getParsingFlags(config).weekdayMismatch = true; - } -} - -function dayOfYearFromWeekInfo(config) { - var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow; - - w = config._w; - if (w.GG != null || w.W != null || w.E != null) { - dow = 1; - doy = 4; - - // TODO: We need to take the current isoWeekYear, but that depends on - // how we interpret now (local, utc, fixed offset). So create - // a now version of current config (take local/utc/offset flags, and - // create now). - weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year); - week = defaults(w.W, 1); - weekday = defaults(w.E, 1); - if (weekday < 1 || weekday > 7) { - weekdayOverflow = true; - } - } else { - dow = config._locale._week.dow; - doy = config._locale._week.doy; - - var curWeek = weekOfYear(createLocal(), dow, doy); - - weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); - - // Default to current week. - week = defaults(w.w, curWeek.week); - - if (w.d != null) { - // weekday -- low day numbers are considered next week - weekday = w.d; - if (weekday < 0 || weekday > 6) { - weekdayOverflow = true; - } - } else if (w.e != null) { - // local weekday -- counting starts from beginning of week - weekday = w.e + dow; - if (w.e < 0 || w.e > 6) { - weekdayOverflow = true; - } - } else { - // default to beginning of week - weekday = dow; - } - } - if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { - getParsingFlags(config)._overflowWeeks = true; - } else if (weekdayOverflow != null) { - getParsingFlags(config)._overflowWeekday = true; - } else { - temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); - config._a[YEAR] = temp.year; - config._dayOfYear = temp.dayOfYear; - } -} +[ + {"name": "All", "current": true, "order": 0}, + {"name": "Review", "order": 1}, + {"name": "Close", "order": 2}, + {"name": "Complete", "order": 3} +] \ No newline at end of file FishEye: Tag 7d5b27f2062e67157caf60728906cbe07e9d52ee refers to a dead (removed) revision in file `arms/js/reviewList.do'. FishEye: No comparison available. Pass `N' to diff? FishEye: Tag d2133460ec003f42375d401a6329c35714b65209 refers to a dead (removed) revision in file `arms/js/reviewList.json'. FishEye: No comparison available. Pass `N' to diff?