Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
467c614
Add draw.web.tr activity
BartuAbiHD Mar 10, 2026
bd1bef6
Fix linting errors
BartuAbiHD Mar 10, 2026
761f8b5
Fix linting errors
BartuAbiHD Mar 10, 2026
84c797d
Fix linting errors
BartuAbiHD Mar 10, 2026
ff711e2
Fix linting errors
BartuAbiHD Mar 10, 2026
8f53653
Fix linting errors
BartuAbiHD Mar 10, 2026
cfac29c
Fix linting errors and add trailing commas
BartuAbiHD Mar 10, 2026
6707fb7
Revert accidental change in checkDns.ts
BartuAbiHD Mar 10, 2026
e60683f
Added 'Visit Website' button.
BartuAbiHD Mar 10, 2026
a3bb9b1
Added 'Visit Website' button.
BartuAbiHD Mar 10, 2026
5b8a5f4
The name of the service has been changed from 'draw.web.tr' to 'DrawW…
BartuAbiHD Mar 11, 2026
5e75656
The name of the service has been changed from 'draw.web.tr' to 'DrawW…
BartuAbiHD Mar 11, 2026
e08a068
The name of the service has been changed from 'draw.web.tr' to 'DrawW…
BartuAbiHD Mar 11, 2026
077145c
Add files via upload
BartuAbiHD Mar 11, 2026
58c82c1
feat(drawweb): add new activity
BartuAbiHD Mar 12, 2026
0e15843
Merge branch 'add-draw-web-tr' of https://github.com/BartuAbiHD/Activ…
BartuAbiHD Mar 12, 2026
dfe2aff
feat(drawweb): add new activity
BartuAbiHD Mar 12, 2026
c1217b5
feat(drawweb): add new activity
BartuAbiHD Mar 12, 2026
c923f72
style(DrawWEB): fix lint errors
BartuAbiHD Mar 12, 2026
9c0b221
package-lock.json file reverted
BartuAbiHD Mar 13, 2026
591a467
package-lock.json file reverted
BartuAbiHD Mar 13, 2026
4dd4334
feat(bartu civaş): add new activity
BartuAbiHD Mar 26, 2026
e827738
feat(bartu civaş): add new activity
BartuAbiHD Mar 26, 2026
456cd80
Merge branch 'main' into add-bartu-civas
theusaf Apr 1, 2026
0fc5a1d
chore: restore from main
theusaf Apr 1, 2026
bea0247
chore: revert changed files
theusaf Apr 1, 2026
783e5b7
Update thumbnail URL in metadata.json
BartuAbiHD Apr 1, 2026
38f20e9
Merge branch 'main' into add-bartu-civas
BartuAbiHD Apr 2, 2026
cbfc299
Merge branch 'main' into add-bartu-civas
BartuAbiHD Apr 10, 2026
b8d3536
Merge branch 'main' into add-bartu-civas
BartuAbiHD Apr 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions websites/B/Bartu Civaş/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://schemas.premid.app/metadata/1.16",
"apiVersion": 1,
"author": {
"name": "bartu6578",
"id": "950104832201613412"
},
"service": "Bartu Civaş",
"description": {
"en": "Rap artist and software developer Bartu Civas's website.",
"nl": "Website van rapartiest en softwareontwikkelaar Bartu Civas.",
"tr": "Rap sanatçısı, yazılımcı Bartu Civaş'ın websitesi."
},
"url": [
"www.bartucivas.com.tr",
"bartucivas.com.tr"
],
"regExp": "^https?[:][/][/](www[.])?bartucivas[.]com[.]tr[/]",
"version": "1.0.0",
"logo": "https://bartucivas.com.tr/img/bartu-civas.png",
"thumbnail": "https://bartucivas.com.tr/img/thumbnail.png",
"color": "#f01c25",
"category": "other",
"tags": [
"rap-artist",
"sowtware-developer",
"bartucivas"
]
}
49 changes: 49 additions & 0 deletions websites/B/Bartu Civaş/presence.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
const presence = new Presence({ clientId: '1486635213684736061' })

presence.on('UpdateData', async () => {
const path: string = document.location.pathname
// Sayfanın dilini veya URL'yi kontrol ederek Türkçe olup olmadığını anlıyoruz
const isTurkish = document.documentElement.lang.toLowerCase().includes('tr') || path.includes('/anasayfa') || path.includes('/tr')

const presenceData: PresenceData = {
largeImageKey: 'https://bartucivas.com.tr/img/bartu-civas.png',
startTimestamp: Date.now(),
buttons: [
{
label: isTurkish ? 'Websiteyi Ziyaret Et' : 'Visit Website',
url: document.location.href,
},
Comment on lines +12 to +15
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This button is too generic. Buttons should be used for specific actions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This button is too generic. Buttons should be used for specific actions

I don’t think there’s a problem there. When you’re reading a blog or something on the site, it shows up there too, and users can access the blog’s URL using that button.

],
}
const baslik = document.querySelector('.info h4 a')
const sayfaBasligi = document.title || 'Ana Sayfa'

if (path === '/') {
presenceData.details = isTurkish ? 'Ana Sayfa' : 'Home Page'
}
else if (path.startsWith('/anasayfa')) {
presenceData.details = isTurkish ? 'Ana Sayfa' : 'Home Page'
}
else if (path.startsWith('/homepage')) {
presenceData.details = isTurkish ? 'Ana Sayfa' : 'Home Page'
}
else if (path.startsWith('/home')) {
presenceData.details = isTurkish ? 'Ana Sayfa' : 'Home Page'
}
else if (path.startsWith('/konu')) {
presenceData.details = isTurkish ? 'Bir yazı okuyor:' : 'He/She is reading an article:'
presenceData.state = baslik?.textContent
}
else if (
document.location.pathname.split('/')[1] !== ''
&& baslik
&& !path.startsWith('/anasayfa')
&& !path.startsWith('/homepage')
&& !path.startsWith('/home')
) {
presenceData.details = isTurkish ? 'Sitede geziniyor:' : 'Browsing the site:'
presenceData.state = sayfaBasligi
}

presence.setActivity(presenceData)
})
Loading