39 Commits
Author SHA1 Message Date
junv ded61890e4 Upate logic of how we calculate svg length 2024-10-02 20:50:36 +10:00
junv 93378f9235 Update badge length for larger value 2022-08-15 11:15:03 +10:00
junv 7524c800c3 bug fix 2022-08-15 10:39:46 +10:00
junv e8f7425d0b Temporarily update the badge length for larger values 2022-08-15 10:27:05 +10:00
junv a3d6c23b7b Only show badges in the last year 2022-07-04 16:57:15 +10:00
junv 84f9a42391 remove ip from prometheus labels to reduce query complexicity 2022-04-15 22:16:09 +10:00
junv 3efde77bf2 Update logic of handling no label prometheus query result, and update nuxt version 2022-04-01 23:49:19 +11:00
junv cfb02a324b add arch to prometheus metric 2021-10-24 17:07:53 +11:00
junv 0148584806 add proper histogram for badge generation time 2021-10-22 11:03:02 +11:00
junv 72ea5d9a66 remove tag useragent from prometheus metrics 2021-10-22 10:43:37 +11:00
junv f669ad50c2 Add more traces 2021-10-22 08:33:22 +11:00
junv df928e2f6e Add more db tracers 2021-10-21 17:43:40 +11:00
junv c258f420c0 Add first apm tracer 2021-10-21 17:23:51 +11:00
junv 1e63c752ae capture more things for normal badge api 2021-10-13 16:31:25 +11:00
junv 33becf1aa6 Add ability to capture some more info about the api value request 2021-10-13 16:29:30 +11:00
junv 9eef92902d Trim space when submmiting request 2021-10-13 15:40:31 +11:00
junv 69e2abe92f Add logic to save api value 2021-10-13 15:37:13 +11:00
junv d209a6d0c4 Add new badge type API_VALUE 2021-10-13 12:04:41 +11:00
junv 2234eb44d8 handle expired token 2021-02-26 23:14:34 +11:00
junv a07339d432 make github username non mandatary 2021-01-28 16:27:55 +11:00
junv 762ed49cf7 Add feature toggle api, tried to reduce frontend size 2021-01-26 23:23:00 +11:00
junv 4f973993d6 fix null point issue of badges options, more details check https://sentry.io/organizations/toozhao/issues/2174622398/\?project\=5413984\&query\=is%3Aunresolved 2021-01-26 06:48:07 +11:00
junv 2ecf8b0410 use badge label from db badge information 2021-01-25 23:18:53 +11:00
junv b60db71032 Fix the prometheus type badges 2021-01-25 22:47:09 +11:00
junv 2871b71dbe add stats 2021-01-25 13:45:50 +11:00
junv 0574550c5a only reply on db to get view count 2021-01-25 07:19:31 +11:00
junv 97c3583dff do not increase view count for internal access 2021-01-24 07:42:45 +11:00
junv f47c219513 Use db to store view count 2021-01-23 08:45:22 +11:00
junv 6d84798635 Try to make the github auth works on production 2020-09-06 08:41:15 +10:00
junv 7b0da3a5dc Add login support 2020-09-05 16:25:29 +10:00
junv c263cdd381 Make create badge works in both annoymous and logged in mode 2020-09-05 10:26:30 +10:00
junv 478cdf51f4 Integrate login to frontend 2020-09-04 17:04:23 +10:00
junv 41643fb01b Add endpoint to authenticate a user 2020-09-04 16:32:29 +10:00
junv 8a32a7ceb8 Add sentry 2020-09-02 10:32:33 +10:00
junv 3dc79ac60d Expire badge cache in 10 seconds 2020-08-31 17:30:54 +10:00
junv bb541c73cf Add support for multiple color scheme 2020-08-23 17:50:27 +10:00
junv c58f20c00b Add API for creating a badge 2020-08-17 15:29:11 +10:00
junv 449b566784 try to get headers 2020-08-15 23:20:06 +10:00
junv 9db74aaf5b Add db layer to store all the badges instad of using memory type of map 2020-08-15 12:09:39 +10:00