Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Hall of Fame Server, developed with Rust & Rocket ๐Ÿš€

Notifications You must be signed in to change notification settings

hall-of-fame/hof-server-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Hall Of Fame Server

Hall Of Fame ้กน็›ฎ็š„ๅŽ็ซฏๆœๅŠกๅ™จ๏ผŒ้‡‡็”จ Rust + Rocket ๐Ÿš€ ๅผ€ๅ‘ใ€‚

ๆŽฅๅฃๆ–‡ๆกฃ่งๆญค้“พๆŽฅใ€‚

Ignored Files

/static (DIR)

็›ฎๅฝ•็ป“ๆž„ๅฆ‚ไธ‹๏ผš

.
โ”œโ”€โ”€ 0xfa
โ”œโ”€โ”€ Android
โ”œโ”€โ”€ Backend
โ”œโ”€โ”€ Design
โ”œโ”€โ”€ Frontend
โ”œโ”€โ”€ iOS
โ”œโ”€โ”€ PM
โ””โ”€โ”€ SRE
 ย ย  โ””โ”€โ”€ 20
ย ย    ย ย  โ””โ”€โ”€ ๆŽๅฐๆ˜Ž
ย     ย ย   ย ย  โ”œโ”€โ”€ some_category
            โ”‚   โ””โ”€โ”€ a.jpg
ย     ย ย   ย ย  โ””โ”€โ”€ b.jpg

/src/utils/table.rs (FILE)

ๆ–‡ไปถๅ†…ๅฎน็ป“ๆž„ๅฆ‚ไธ‹๏ผš

pub const AVATARS: [(&str, &str); 1] = [
    ("NAME", "1145141919"),
];

/src/service/popular.rs (FILE)

use rocket::serde::Serialize;

#[derive(Serialize, Debug)]
#[serde(crate = "rocket::serde")]
pub struct PopSticker<'a> {
    author: &'a str,
    desc: &'a str,
    url: &'a str,
}

pub fn get_popular<'a>() -> Vec<PopSticker<'a>> {
    vec![
        /* ไปฅไธ‹ๆณจ้‡Šไปฃ็ ๅฏๅพช็Žฏๅคšๆฌก */
        /* PopSticker {
            author: "AUTHOR",
            desc: "DESCRIPTION",
            url: "/static/DEPARTMENT/20/AUTHOR/DESCRIPTION.jpg",
        }, */
    ]
}

About

Hall of Fame Server, developed with Rust & Rocket ๐Ÿš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages