Skip to content

Commit

Permalink
Add cedula logo and badge, Integrated in demo preview
Browse files Browse the repository at this point in the history
  • Loading branch information
gembancud committed Dec 23, 2022
1 parent 2b94c61 commit da0ae95
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
Binary file added assets/cedula_logo_clear.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cedula_logo_clear_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions contents/cedula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { stringifyUrl } from "query-string"

import { Storage } from "@plasmohq/storage"

import { all_tags, ph_badge_link } from "./misc/constants"
import { all_tags, cedula_badge_link } from "./misc/constants"
import type { CedulaPoint, Me, OrgBadge, ResLink } from "./misc/types"
import { isMarked, mark } from "./misc/utils"

Expand Down Expand Up @@ -58,7 +58,7 @@ export const AddCedulas = async ({

// Override by adding to all cedulaPoints
if (markAll) {
applyCedulaPoints({ org: "Philippines", link: ph_badge_link }, cedulaPoints)
applyCedulaPoints({ org: "Cedula", link: cedula_badge_link }, cedulaPoints)
return
}

Expand Down
2 changes: 1 addition & 1 deletion contents/components/badge-tooltipmenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Tooltip } from "@mantine/core"
import iconImage from "data-base64:~assets/ph.png"
import iconImage from "data-base64:~assets/cedula_logo_clear_128.png"
import { useEffect, useRef, useState } from "react"
import reactDom from "react-dom"
import ReactTooltip, { Place } from "react-tooltip"
Expand Down
3 changes: 3 additions & 0 deletions contents/misc/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ export const all_tags = {

export const ph_badge_link =
"https://res.cloudinary.com/dml9ugyzo/image/upload/v1665682106/Philippines/ph_baqkcu.png"

export const cedula_badge_link =
"https://res.cloudinary.com/dml9ugyzo/image/upload/v1671802151/test_cedula/cedula_logo_clear_128_regzj1.png"

0 comments on commit da0ae95

Please sign in to comment.