feat: twitter -> x

This commit is contained in:
DIYgod 2024-05-27 17:44:00 +08:00
parent ce8a95c46c
commit afa9f46fea
No known key found for this signature in database
7 changed files with 15 additions and 36 deletions

View File

@ -7,7 +7,7 @@ NEXT_PUBLIC_APP_NAME=xLog
NEXT_PUBLIC_OUR_DOMAIN=localhost:2222
NEXT_PUBLIC_SCORE_API_DOMAIN=localhost:2222
NEXT_PUBLIC_DISCORD_LINK="https://discord.gg/46VJMMVCuF"
NEXT_PUBLIC_TWITTER_LINK="https://twitter.com/_xLog"
NEXT_PUBLIC_TWITTER_LINK="https://x.com/_xLog"
NEXT_PUBLIC_GITHUB_LINK="https://github.com/Crossbell-Box/xlog"
NEXT_PUBLIC_CSB_IO="https://crossbell.io"
NEXT_PUBLIC_CSB_SCAN="https://scan.crossbell.io"

View File

@ -5,7 +5,7 @@
> 🪽 An open-source creative community written on the blockchain.
[![Discord](https://img.shields.io/badge/chat-Discord-5865F2.svg?logo=discord&style=flat-square)](https://discord.gg/46VJMMVCuF) [![Twitter](https://img.shields.io/badge/Twitter-@_xLog-1d9bf0.svg?logo=twitter&style=flat-square)](https://twitter.com/_xLog) [![build](https://img.shields.io/github/actions/workflow/status/Crossbell-Box/xLog/docker-build-push-prod.yaml?logo=github&style=flat-square)](https://github.com/Crossbell-Box/xLog/actions/workflows/docker-build-push-prod.yaml)
[![Discord](https://img.shields.io/badge/chat-Discord-5865F2.svg?logo=discord&style=flat-square)](https://discord.gg/46VJMMVCuF) [![Twitter](https://img.shields.io/badge/Twitter-@_xLog-1d9bf0.svg?logo=twitter&style=flat-square)](https://x.com/_xLog) [![build](https://img.shields.io/github/actions/workflow/status/Crossbell-Box/xLog/docker-build-push-prod.yaml?logo=github&style=flat-square)](https://github.com/Crossbell-Box/xLog/actions/workflows/docker-build-push-prod.yaml)
## Introduction

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
<stop stop-color="#38AEEB" offset="0%"></stop>
<stop stop-color="#279AD1" offset="100%"></stop>
</linearGradient>
</defs>
<g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<circle id="Oval" fill="url(#linearGradient-1)" cx="8" cy="8" r="8"></circle>
<path d="M3.17026167,7.83635602 C5.78750201,6.74265999 7.53273882,6.02162863 8.40597211,5.67326193 C10.8992306,4.67860423 11.2454541,4.53439191 11.5831299,4.52864956 C11.6573986,4.52743168 11.8385417,4.55776042 11.9798438,4.67645833 C12.1211458,4.79515625 12.1635786,4.87206678 12.1755371,4.93908691 C12.1874957,5.00610705 12.1862759,5.21456762 12.1744385,5.3338623 C12.0393279,6.69547283 11.5259342,9.83829771 11.2285121,11.3633248 C11.1026617,12.008621 10.8548582,12.2249854 10.6149558,12.2461596 C10.0935924,12.2921758 9.69769267,11.9156852 9.19272668,11.5981993 C8.40255458,11.1013965 8.13911734,10.9180161 7.3721185,10.4332283 C6.48571864,9.87297217 6.85080034,9.6784879 7.35595703,9.17524981 C7.48815894,9.04355001 9.67825076,7.04590073 9.71077046,6.86250183 C9.7391276,6.70257812 9.7494847,6.68189389 9.67664063,6.60973958 C9.60379655,6.53758527 9.51674192,6.54658941 9.46083149,6.55876051 C9.38158015,6.57601267 8.17521836,7.33962686 5.84174612,8.84960308 C5.48344358,9.08558775 5.15890428,9.20056741 4.86812819,9.19454205 C4.54757089,9.18789957 3.93094724,9.02070014 3.47255094,8.87778221 C2.91030922,8.70248755 2.46345069,8.609808 2.50236203,8.31210343 C2.52262946,8.15704047 2.74526267,7.998458 3.17026167,7.83635602 Z" id="Path-3" fill="#FFFFFF"></path>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1 +0,0 @@
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg height="100%" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;" version="1.1" viewBox="0 0 512 512" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:serif="http://www.serif.com/" xmlns:xlink="http://www.w3.org/1999/xlink"><rect height="400" style="fill:none;" width="400" x="56" y="56"/><path d="M161.014,464.013c193.208,0 298.885,-160.071 298.885,-298.885c0,-4.546 0,-9.072 -0.307,-13.578c20.558,-14.871 38.305,-33.282 52.408,-54.374c-19.171,8.495 -39.51,14.065 -60.334,16.527c21.924,-13.124 38.343,-33.782 46.182,-58.102c-20.619,12.235 -43.18,20.859 -66.703,25.498c-19.862,-21.121 -47.602,-33.112 -76.593,-33.112c-57.682,0 -105.145,47.464 -105.145,105.144c0,8.002 0.914,15.979 2.722,23.773c-84.418,-4.231 -163.18,-44.161 -216.494,-109.752c-27.724,47.726 -13.379,109.576 32.522,140.226c-16.715,-0.495 -33.071,-5.005 -47.677,-13.148l0,1.331c0.014,49.814 35.447,93.111 84.275,102.974c-15.464,4.217 -31.693,4.833 -47.431,1.802c13.727,42.685 53.311,72.108 98.14,72.95c-37.19,29.227 -83.157,45.103 -130.458,45.056c-8.358,-0.016 -16.708,-0.522 -25.006,-1.516c48.034,30.825 103.94,47.18 161.014,47.104" style="fill:#1da1f2;fill-rule:nonzero;"/></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,6 +1,5 @@
import { useTranslations } from "next-intl"
import dynamic from "next/dynamic"
import Image from "next/image"
import { FC } from "react"
import { toast } from "react-hot-toast"
@ -24,18 +23,11 @@ interface ShareData {
const shareList = [
{
name: "Twitter",
icon: (
<Image
width={16}
height={16}
src="/assets/social/twitter.svg"
alt="twitter"
/>
),
name: "X",
icon: <img width={16} height={16} src="https://icons.ly/x" alt="x" />,
onClick: (data: ShareData) => {
window.open(
`https://twitter.com/intent/tweet?url=${
`https://x.com/intent/tweet?url=${
data.url
}&text=${encodeURIComponent(data.text)}&via=_xLog`,
)
@ -44,10 +36,10 @@ const shareList = [
{
name: "Telegram",
icon: (
<Image
<img
width={16}
height={16}
src="/assets/social/telegram.svg"
src="https://icons.ly/telegram"
alt="telegram"
/>
),

View File

@ -29,14 +29,15 @@ export const PlatformsSyncMap: {
url: "https://t.me/{username}",
},
twitter: {
name: "Twitter",
url: "https://twitter.com/{username}",
portfolioDomain: `https://twitter.com/`,
name: "X",
icon: `${iconCDN}/x`,
url: "https://x.com/{username}",
portfolioDomain: `https://x.com/`,
},
twitter_id: {
name: "Twitter",
icon: `${iconCDN}/twitter`,
url: "https://twitter.com/i/user/{username}",
name: "X",
icon: `${iconCDN}/x`,
url: "https://x.com/i/user/{username}",
},
x: {
name: "X",

View File

@ -59,7 +59,7 @@ export const getTwitterShareUrl = ({
return ""
}
return `https://twitter.com/intent/tweet?url=${getSiteLink({
return `https://x.com/intent/tweet?url=${getSiteLink({
subdomain: site.handle!,
domain: site.metadata?.content?.custom_domain,
})}/${encodeURIComponent(slug)}&via=_xLog&text=${encodeURIComponent(