diff --git a/Makefile b/Makefile index 3bf0aa3..8157407 100644 --- a/Makefile +++ b/Makefile @@ -8,13 +8,6 @@ SRC = $(wildcard src/*.c) OBJ = $(patsubst %.c,%.o,$(SRC)) HEADERS = $(wildcard src/*.h) config.h PAGES_DIR = static -TMPL_DIR = templates -PAGES = $(wildcard $(PAGES_DIR)/*.tmpl) -TMPLS = $(wildcard $(TMPL_DIR)/*.tt) -PAGES_CMP = $(patsubst %.tmpl,%.ctmpl,$(PAGES)) -PAGES_C = $(patsubst %.tmpl, %.c,$(PAGES)) -PAGES_C_OBJ = $(patsubst %.c,%.o,$(PAGES_C)) -TMPLS_C = $(patsubst %.tt,%.ctt,$(TMPLS)) TEST_DIR = test/unit TESTS = $(wildcard $(TEST_DIR)/t*.c) UNIT_TESTS = $(patsubst %.c,%.bin,$(TESTS)) @@ -32,21 +25,11 @@ MASTODONT_URL = https://fossil.nekobit.net/mastodont-c all: $(MAKE) dep_build $(MAKE) filec - $(MAKE) ctemplate - $(MAKE) make_ctmpls - $(MAKE) make_pages - $(MAKE) make_pagesc - $(MAKE) make_pagescobj $(MAKE) $(TARGET) install_deps: cpan Template::Toolkit -make_ctmpls: $(TMPLS_C) -make_pages: $(PAGES_CMP) -make_pagesc: $(PAGES_C) -make_pagescobj: $(PAGES_C_OBJ) - $(TARGET): $(HEADERS) $(OBJ) $(CC) -o $(TARGET) $(OBJ) $(PAGES_C_OBJ) $(LDFLAGS) @@ -57,17 +40,6 @@ emojitoc: scripts/emoji-to.o $(CC) -o emojitoc $< $(LDFLAGS) ./emojitoc meta/emoji.json > src/emoji_codes.h -# Redirect stdout and stderr into separate contents as a hack -# Let bash do the work :) -$(PAGES_DIR)/%.ctmpl: $(PAGES_DIR)/%.tmpl $(TMPLS) - ./ctemplate $< $(notdir $*) 2> $(PAGES_DIR)/$(notdir $*).c 1> $@ - -$(TMPL_DIR)/%.ctt: $(TMPL_DIR)/%.tt - ./filec $< data_$(notdir $*)_tt > $@ - -ctemplate: src/template/main.o - $(CC) $(LDFLAGS) -o ctemplate $< - $(MASTODONT_DIR): cd ..; fossil clone $(MASTODONT_URL) || true cd treebird; ln -s ../mastodont-c . @@ -95,7 +67,6 @@ dep_build: clean: rm -f $(OBJ) src/file-to-c/main.o rm -f $(PAGES_CMP) - rm -f $(TMPLS_C) rm -f test/unit/*.bin rm -f filec ctemplate rm $(TARGET) || true diff --git a/src/template/main.c b/src/template/main.c deleted file mode 100644 index 97219bc..0000000 --- a/src/template/main.c +++ /dev/null @@ -1,295 +0,0 @@ -/* - * Treebird - Lightweight frontend for Pleroma - * Copyright (C) 2022 Nekobit - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - - -#include -#include -#include -#include - -// TODO error handling - -enum args -{ - ARG_FILENAME = 1, - ARG_VARIABLE -}; - -enum tmpl_type -{ - TMPL_INT, - TMPL_UINT, - TMPL_STR, - TMPL_STRLEN, - TMPL_FLOAT, -}; - -struct tmpl_token -{ - enum tmpl_type type; - char* token; - int used; // Internal use only -}; - -long filesize(FILE* file) -{ - long orig = ftell(file); - fseek(file, 0, SEEK_END); - long size = ftell(file); - fseek(file, orig, SEEK_SET); - return size; -} - -void chexput(const char* buf, size_t size) -{ - for (size_t i = 0; i < size && buf; ++i) - { - printf("0X%hhX,", buf[i]); - } -} - -char* strnws(char* str) -{ - for (; isblank(*str); ++str); - return str; -} - -char* strwsc(char* str, char stop) -{ - for (; !isblank(*str) && *str != stop; ++str); - return str; -} - -char* tkn_typetostr(enum tmpl_type tkn) -{ - switch (tkn) - { - case TMPL_INT: - return "int"; - case TMPL_STR: - return "const char*"; - case TMPL_STRLEN: - return "char*"; - case TMPL_UINT: - return "unsigned"; - case TMPL_FLOAT: - return "float"; - } - return ""; -} - -enum tmpl_type tkn_type(char* str) -{ - if (strcmp(str, "string") == 0 || - strcmp(str, "str") == 0 || - strcmp(str, "%s") == 0) - return TMPL_STR; - else if (strcmp(str, "stringlen") == 0 || - strcmp(str, "strlen") == 0 || - strcmp(str, "%.s") == 0) - return TMPL_STRLEN; - else if (strcmp(str, "int") == 0 || - strcmp(str, "i") == 0 || - strcmp(str, "%d") == 0) - return TMPL_INT; - else if (strcmp(str, "unsigned") == 0 || - strcmp(str, "uint") == 0 || - strcmp(str, "%u") == 0) - return TMPL_UINT; - else if (strcmp(str, "float") == 0 || - strcmp(str, "%f") == 0) - return TMPL_FLOAT; - - // TODO Real error handling - return TMPL_INT; -} - -char* parse_tmpl_token(char* buf, struct tmpl_token* tkn) -{ - tkn->used = 0; - char* type_begin; - char* type_end; - char* tkn_begin; - char* tkn_end; - // skip {{ - buf += 2; - type_begin = strnws(buf); - type_end = strwsc(type_begin, ':'); - - if (*type_end != ':') buf = strchr(buf, ':'); - else buf = type_end; - - *type_end = '\0'; - tkn->type = tkn_type(type_begin); - - ++buf; - tkn_begin = strnws(buf); - tkn_end = strwsc(tkn_begin, '}'); - - if (*tkn_end == '}') buf = tkn_end + 2; - else buf = strstr(buf, "}}") + 2; - - *tkn_end = '\0'; - tkn->token = tkn_begin; - return buf; -} - -void print_template(char* var, char* buf) -{ - char* buf_prev = buf; - char* buf_curr = buf; - // Store result - struct tmpl_token* tokens = NULL; - size_t tokens_len = 0; - - printf("#ifndef __%s\n" - "#define __%s\n" - "#include \n" - "static const char data_%s[] = {", var, var, var); - - while (1) - { - buf_curr = strstr(buf_curr, "{{"); - if (!buf_curr) break; - // Create tokens array - tokens = realloc(tokens, sizeof(struct tmpl_token) * ++tokens_len); - if (!tokens) - { - perror("realloc"); - break; - } - // Print up to this point - chexput(buf_prev, buf_curr - buf_prev); - buf_prev = buf_curr = parse_tmpl_token(buf_curr, tokens + (tokens_len-1)); - - // Print type - switch (tokens[tokens_len-1].type) - { - case TMPL_INT: - // I'm lazy so we'll use this - chexput("%d", 2); - break; - case TMPL_STR: - chexput("%s", 2); - break; - case TMPL_STRLEN: - chexput("%.s", 3); - break; - case TMPL_UINT: - chexput("%u", 2); - break; - case TMPL_FLOAT: - chexput("%f", 2); - break; - } - } - - // Print remainder if any - chexput(buf_prev, strlen(buf_prev)); - puts("0};"); - - // Only create struct and function when there are tokens detected - if (tokens_len) - { - printf("struct %s_template {", var); - - int should_print = 0; - // Print tokens - for (size_t i = 0; i < tokens_len; ++i) - { - should_print = 1; - // Check if used - for (size_t j = 0; j < tokens_len; ++j) - { - if (i != j && - strcmp(tokens[i].token, tokens[j].token) == 0 && - tokens[j].used) - should_print = 0; - } - if (should_print) - { - printf("%s %s;\n", tkn_typetostr(tokens[i].type), tokens[i].token); - if (tokens[i].type == TMPL_STRLEN) - printf("size_t %s_len;\n", tokens[i].token); - tokens[i].used = 1; - } - } - - // Generate function - printf("};\n"); - printf("char* tmpl_gen_%s(struct %s_template* data, size_t* size);", var, var); - - // Pipe the contents of the real function code into stderr, then we can redirect it - // We could also just write the file directly but this works better with the Makefile - // and I am lazy - fprintf(stderr, "#include \"%s.ctmpl\"\n" - "#include \"../src/easprintf.h\"\n" - "char* tmpl_gen_%s(struct %s_template* data, size_t* size){\n" - "char* ret;\n" - "size_t s = easprintf(&ret, data_%s, ", var, var, var, var); - for (size_t i = 0; i < tokens_len; ++i) - { - fprintf(stderr, "data->%s", tokens[i].token); - // No (null) strings, make them empty - if (tokens[i].type == TMPL_STR || tokens[i].type == TMPL_STRLEN) - fprintf(stderr, "?data->%s:\"\"", tokens[i].token); - fputs(i < tokens_len-1 ? ", " : "", stderr); - } - fputs(");\n" - "if (size) *size = s;\n" - "return ret;\n}", stderr); - } - - // Done! - puts("\n#endif"); - // Cleanup - free(tokens); -} - -int main(int argc, char** argv) -{ - char* buf; - FILE* file = fopen(argv[ARG_FILENAME], "rb"); - - long size = filesize(file); - - if (!(buf = malloc(size))) - { - perror("malloc"); - return 1; - } - - if (fread(buf, 1, size, file) != size) - { - fputs("Didn't read correctly!", stderr); - free(buf); - return 1; - } - - fclose(file); - buf[size-1] = '\0'; - - print_template(argv[ARG_VARIABLE], buf); - - - - - free(buf); - return 0; -} - diff --git a/static/about.tmpl b/static/about.tmpl deleted file mode 100644 index 244c51d..0000000 --- a/static/about.tmpl +++ /dev/null @@ -1,28 +0,0 @@ -
-
-

Treebird

-
-
-

Treebird is a Pleroma frontend that is lightweight, efficient, and true to the web. It's written in C with FCGI making it simple and fast to work with and deploy. It is very tight to the philosophy of how the internet has always worked; Javascript provides extra sugar (or scripting) to improve the experience but not a requirement, while still being simple enough that anyone can use it.

- -

Treebird was created in response to PleromaFE performance issues and ironically a lack of PleromaAPI backend support. Treebird resembles GNU Social in appearance by default, but keeps the familiarity that many are used to of PleromaFE.

- -

Treebird was created by Nekobit, who created mastodont-c, a library that can communicate with Revolver's, Pleroma's, and Mastodon's REST APIs.

- -

Other contributors

- - -

Treebird is licensed in AGPLv3, and mastodont-c is LGPLv3 licensed. Other licenses apply to libraries as well. View the AGPLv3 license here.

- - View the Fossil Repository View the License -
-
- - - \ No newline at end of file diff --git a/static/account.tmpl b/static/account.tmpl deleted file mode 100644 index aad5b62..0000000 --- a/static/account.tmpl +++ /dev/null @@ -1,67 +0,0 @@ -{{%s:is_blocked}} -{{%s:menubar}} - - -{{%s:info}} - - - - - - - - -
- - - - - - - -
- - diff --git a/static/account_current_menubar.tmpl b/static/account_current_menubar.tmpl deleted file mode 100644 index 5ff4be2..0000000 --- a/static/account_current_menubar.tmpl +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/static/account_follow_btn.tmpl b/static/account_follow_btn.tmpl deleted file mode 100644 index 6157957..0000000 --- a/static/account_follow_btn.tmpl +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/static/account_info.tmpl b/static/account_info.tmpl deleted file mode 100644 index e03edf7..0000000 --- a/static/account_info.tmpl +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/static/account_sidebar.tmpl b/static/account_sidebar.tmpl deleted file mode 100644 index 278a61b..0000000 --- a/static/account_sidebar.tmpl +++ /dev/null @@ -1,36 +0,0 @@ - - diff --git a/static/account_stub.tmpl b/static/account_stub.tmpl deleted file mode 100644 index 0588754..0000000 --- a/static/account_stub.tmpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - diff --git a/static/attachment_audio.tmpl b/static/attachment_audio.tmpl deleted file mode 100644 index 3f63b21..0000000 --- a/static/attachment_audio.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -
- -
-
diff --git a/static/attachment_gifv.tmpl b/static/attachment_gifv.tmpl deleted file mode 100644 index 0dc17c8..0000000 --- a/static/attachment_gifv.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -
- - {{%s:sensitive}} -
diff --git a/static/attachment_image.tmpl b/static/attachment_image.tmpl deleted file mode 100644 index ec75542..0000000 --- a/static/attachment_image.tmpl +++ /dev/null @@ -1,4 +0,0 @@ -
- - {{%s:sensitive}} -
diff --git a/static/attachment_link.tmpl b/static/attachment_link.tmpl deleted file mode 100644 index 83dc9fd..0000000 --- a/static/attachment_link.tmpl +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/static/attachment_video.tmpl b/static/attachment_video.tmpl deleted file mode 100644 index 254e90d..0000000 --- a/static/attachment_video.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -
- - {{%s:sensitive}} -
diff --git a/static/attachments.tmpl b/static/attachments.tmpl deleted file mode 100644 index 9879028..0000000 --- a/static/attachments.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -
- {{%s:attachments}} -
diff --git a/static/bar.tmpl b/static/bar.tmpl deleted file mode 100644 index c3eceda..0000000 --- a/static/bar.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -
-
-
diff --git a/static/bar_graph.tmpl b/static/bar_graph.tmpl deleted file mode 100644 index 83cd3f6..0000000 --- a/static/bar_graph.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -
- {{%s:graph}} -
diff --git a/static/basic_page.tmpl b/static/basic_page.tmpl deleted file mode 100644 index d7f455b..0000000 --- a/static/basic_page.tmpl +++ /dev/null @@ -1,4 +0,0 @@ -
-

< {{ %s : page_title }}

-
-{{%s : page_content}} diff --git a/static/bookmarks_page.tmpl b/static/bookmarks_page.tmpl deleted file mode 100644 index 0e34b35..0000000 --- a/static/bookmarks_page.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -
-

Bookmarks

-
-
- {{%s:statuses}} -
-{{%s:navigation}} diff --git a/static/chat.tmpl b/static/chat.tmpl deleted file mode 100644 index c5680cb..0000000 --- a/static/chat.tmpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - -
- - -
-
- {{%s:display_name}} -
-
- {{ %s : last_message }} -
-
-
-
diff --git a/static/chat_view.tmpl b/static/chat_view.tmpl deleted file mode 100644 index 75ceeaf..0000000 --- a/static/chat_view.tmpl +++ /dev/null @@ -1,21 +0,0 @@ - -
- {{ %s : messages }} -
-
-
- - - - - -
- - - -
-
diff --git a/static/chats_page.tmpl b/static/chats_page.tmpl deleted file mode 100644 index 4ffef75..0000000 --- a/static/chats_page.tmpl +++ /dev/null @@ -1 +0,0 @@ -{{ %s : content }} diff --git a/static/config_appearance.tmpl b/static/config_appearance.tmpl deleted file mode 100644 index 764f3ef..0000000 --- a/static/config_appearance.tmpl +++ /dev/null @@ -1,42 +0,0 @@ -
-
- - -

Appearance

- -

Theme variant

-
    -
  • - - -
  • -
-

Color Scheme

-
    -
  • - - -
  • -
  • - - -
  • -
-

Background

-
    -
  • - -
  • -
-
    -
  • - Sidebar opacity: -
  • -
- - -
-
diff --git a/static/config_general.tmpl b/static/config_general.tmpl deleted file mode 100644 index 50c8ffb..0000000 --- a/static/config_general.tmpl +++ /dev/null @@ -1,94 +0,0 @@ -
-
- - - -

General

- -

Locales

-
    -
  • - - -
  • -
- -

JavaScript

-
    -
  • - - -
  • - - - - - - - - - - - - -
- -

Statuses

-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • - - - - - - - - -
- -

Instance

-
    - - - - -
  • - - -
  • -
- -

Notifications

-
    -
  • - - -
  • -
- - -
-
diff --git a/static/config_sidebar.tmpl b/static/config_sidebar.tmpl deleted file mode 100644 index 8cdae5b..0000000 --- a/static/config_sidebar.tmpl +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/static/contact.tmpl b/static/contact.tmpl deleted file mode 100644 index 4f6f4af..0000000 --- a/static/contact.tmpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - -
- -
diff --git a/static/custom_emoji_reaction.tmpl b/static/custom_emoji_reaction.tmpl deleted file mode 100644 index 1904aa6..0000000 --- a/static/custom_emoji_reaction.tmpl +++ /dev/null @@ -1 +0,0 @@ - diff --git a/static/directs_page.tmpl b/static/directs_page.tmpl deleted file mode 100644 index 18a32eb..0000000 --- a/static/directs_page.tmpl +++ /dev/null @@ -1,6 +0,0 @@ -
-

Direct Messages

-
-
- {{%s:direct_content}} -
diff --git a/static/embed.tmpl b/static/embed.tmpl deleted file mode 100644 index 20b1112..0000000 --- a/static/embed.tmpl +++ /dev/null @@ -1,21 +0,0 @@ - - - - Embed - - - - - -
- {{ %s : embed }} -
- - diff --git a/static/emoji.tmpl b/static/emoji.tmpl deleted file mode 100644 index 67b6917..0000000 --- a/static/emoji.tmpl +++ /dev/null @@ -1 +0,0 @@ -{{%s:emoji}} diff --git a/static/emoji_picker.tmpl b/static/emoji_picker.tmpl deleted file mode 100644 index 70cd38a..0000000 --- a/static/emoji_picker.tmpl +++ /dev/null @@ -1,81 +0,0 @@ -
- - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- -
- {{%s:emojis_smileys}} -
- -
- {{%s:emojis_animals}} -
- -
- {{%s:emojis_food}} -
- -
- {{%s:emojis_travel}} -
- -
- {{%s:emojis_activities}} -
- -
- {{%s:emojis_objects}} -
- -
- {{%s:emojis_symbols}} -
- -
- {{%s:emojis_flags}} -
-
-
diff --git a/static/emoji_plain.tmpl b/static/emoji_plain.tmpl deleted file mode 100644 index 5fc698f..0000000 --- a/static/emoji_plain.tmpl +++ /dev/null @@ -1 +0,0 @@ -{{%s:emoji}} diff --git a/static/emoji_reaction.tmpl b/static/emoji_reaction.tmpl deleted file mode 100644 index 1d1b710..0000000 --- a/static/emoji_reaction.tmpl +++ /dev/null @@ -1 +0,0 @@ -{{%s:emoji_display}} {{%u:emoji_count}} diff --git a/static/emoji_reactions.tmpl b/static/emoji_reactions.tmpl deleted file mode 100644 index 0c78115..0000000 --- a/static/emoji_reactions.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -
    - {{%s:emojis}} -
diff --git a/static/error.tmpl b/static/error.tmpl deleted file mode 100644 index 37ee540..0000000 --- a/static/error.tmpl +++ /dev/null @@ -1 +0,0 @@ -{{%s:error}} diff --git a/static/error_404.tmpl b/static/error_404.tmpl deleted file mode 100644 index 6291b6b..0000000 --- a/static/error_404.tmpl +++ /dev/null @@ -1,4 +0,0 @@ -
-

404

-

{{%s:error}}

-
diff --git a/static/expand_btn.tmpl b/static/expand_btn.tmpl deleted file mode 100644 index 19e5569..0000000 --- a/static/expand_btn.tmpl +++ /dev/null @@ -1 +0,0 @@ - diff --git a/static/expand_btn_img.tmpl b/static/expand_btn_img.tmpl deleted file mode 100644 index 6a57ac1..0000000 --- a/static/expand_btn_img.tmpl +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/favourites_page.tmpl b/static/favourites_page.tmpl deleted file mode 100644 index 60de2ff..0000000 --- a/static/favourites_page.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -
-

Favorites

-
-
- {{%s:statuses}} -
-{{%s:navigation}} diff --git a/static/follow_svg.tmpl b/static/follow_svg.tmpl deleted file mode 100644 index 1c4063b..0000000 --- a/static/follow_svg.tmpl +++ /dev/null @@ -1 +0,0 @@ - diff --git a/static/hashtag.tmpl b/static/hashtag.tmpl deleted file mode 100644 index 7acfba1..0000000 --- a/static/hashtag.tmpl +++ /dev/null @@ -1 +0,0 @@ -#{{%s:tag}} diff --git a/static/hashtag_page.tmpl b/static/hashtag_page.tmpl deleted file mode 100644 index bbf8dd7..0000000 --- a/static/hashtag_page.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -
-

Hashtag - #{{%s:tag}}

-
-
- {{%s:statuses}} -
-{{%s:navigation}} diff --git a/static/in_reply_to.tmpl b/static/in_reply_to.tmpl deleted file mode 100644 index 0b75e40..0000000 --- a/static/in_reply_to.tmpl +++ /dev/null @@ -1,3 +0,0 @@ - - {{%s:in_reply_to_text}} {{%s:acct}} - diff --git a/static/index.tmpl b/static/index.tmpl deleted file mode 100644 index 394338f..0000000 --- a/static/index.tmpl +++ /dev/null @@ -1,87 +0,0 @@ - - - - - {{ %s : title }} - - - {{ %s : theme_str }} - - - - - -
- - - - - - - - - - - - - - -
- {{ %s : main }} -
-
- - - - - - diff --git a/static/instance.tmpl b/static/instance.tmpl deleted file mode 100644 index bc95646..0000000 --- a/static/instance.tmpl +++ /dev/null @@ -1 +0,0 @@ -Instance information diff --git a/static/interaction_buttons.tmpl b/static/interaction_buttons.tmpl deleted file mode 100644 index 641f8d8..0000000 --- a/static/interaction_buttons.tmpl +++ /dev/null @@ -1,39 +0,0 @@ -
- - - - - - {{%s:likeboost_btn}} - {{%s:reactions_btn}} - - - -
- {{ %s : reply_btn }} - -
- - -
-
-
- - -
-
- - {{ %s : expand_btn }} - - - {{%s:rel_time}} -
-
diff --git a/static/interactions_page.tmpl b/static/interactions_page.tmpl deleted file mode 100644 index 46aea1b..0000000 --- a/static/interactions_page.tmpl +++ /dev/null @@ -1,4 +0,0 @@ -
-

< {{ %s : interaction_str }}

-
-{{ %s : accts }} diff --git a/static/license.tmpl b/static/license.tmpl deleted file mode 100644 index e69de29..0000000 diff --git a/static/like_btn.tmpl b/static/like_btn.tmpl deleted file mode 100644 index ce973f2..0000000 --- a/static/like_btn.tmpl +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/static/like_btn_img.tmpl b/static/like_btn_img.tmpl deleted file mode 100644 index f9049a7..0000000 --- a/static/like_btn_img.tmpl +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/like_svg.tmpl b/static/like_svg.tmpl deleted file mode 100644 index 3b6527c..0000000 --- a/static/like_svg.tmpl +++ /dev/null @@ -1 +0,0 @@ - diff --git a/static/likeboost.tmpl b/static/likeboost.tmpl deleted file mode 100644 index bab876a..0000000 --- a/static/likeboost.tmpl +++ /dev/null @@ -1,9 +0,0 @@ - -
- - -
- diff --git a/static/list.tmpl b/static/list.tmpl deleted file mode 100644 index 85f9270..0000000 --- a/static/list.tmpl +++ /dev/null @@ -1,15 +0,0 @@ -
  • - {{%s:list}} - - -
    -
    - - -
    -
    -
  • diff --git a/static/list_edit.tmpl b/static/list_edit.tmpl deleted file mode 100644 index 9118d6c..0000000 --- a/static/list_edit.tmpl +++ /dev/null @@ -1 +0,0 @@ -asdasd \ No newline at end of file diff --git a/static/lists.tmpl b/static/lists.tmpl deleted file mode 100644 index 3db9ec1..0000000 --- a/static/lists.tmpl +++ /dev/null @@ -1,17 +0,0 @@ -
    -

    Lists

    - -
    -
      - {{%s:lists}} -
    - -
      -
      -
    • - -
    • -
      -
    -
    -
    diff --git a/static/login.tmpl b/static/login.tmpl deleted file mode 100644 index 3bfdea8..0000000 --- a/static/login.tmpl +++ /dev/null @@ -1,29 +0,0 @@ -
    -

    {{%s:login_header}}

    - - {{%s:error}} - -
    -
    - - -
    -
    - -
    -
    -
    - -
    -
    - -
    {{%s:instance_text}}
    - -
    -
    - - - -
    -
    -
    diff --git a/static/menu_item.tmpl b/static/menu_item.tmpl deleted file mode 100644 index 7cb83e6..0000000 --- a/static/menu_item.tmpl +++ /dev/null @@ -1,6 +0,0 @@ -
  • -
    - - -
    -
  • diff --git a/static/message.tmpl b/static/message.tmpl deleted file mode 100644 index 77183f4..0000000 --- a/static/message.tmpl +++ /dev/null @@ -1,10 +0,0 @@ -
    - -
    -
    - {{ %s : content }} - 12:00 -
    -
    -
    - diff --git a/static/navigation.tmpl b/static/navigation.tmpl deleted file mode 100644 index 07501b5..0000000 --- a/static/navigation.tmpl +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - diff --git a/static/notification.tmpl b/static/notification.tmpl deleted file mode 100644 index 3fdad91..0000000 --- a/static/notification.tmpl +++ /dev/null @@ -1,10 +0,0 @@ -
    - -
    - - {{%s:username}} - {{%s:action}} - - {{%s:action_item}} -
    -
    diff --git a/static/notification_action.tmpl b/static/notification_action.tmpl deleted file mode 100644 index 31e40fb..0000000 --- a/static/notification_action.tmpl +++ /dev/null @@ -1,25 +0,0 @@ - - - - - -
    - - - - - - -
    -
    - - {{%s:display_name}} - {{%s:action}} - - {{%s:notif_svg}} -
    - - @{{%s:acct}} - -
    -
    diff --git a/static/notification_compact.tmpl b/static/notification_compact.tmpl deleted file mode 100644 index 700a66e..0000000 --- a/static/notification_compact.tmpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    - - -
    - - {{%s:display_name}} - {{%s:action}} - {{%s:notif_svg}} -
    -
    {{%s:content}}
    -
    {{%s:stats}}
    -
    diff --git a/static/notifications.tmpl b/static/notifications.tmpl deleted file mode 100644 index 93feac5..0000000 --- a/static/notifications.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -
    - {{%s:notifications}} -
    diff --git a/static/notifications_embed.tmpl b/static/notifications_embed.tmpl deleted file mode 100644 index e8d7e25..0000000 --- a/static/notifications_embed.tmpl +++ /dev/null @@ -1,25 +0,0 @@ - - - - - Notifications embed - - {{ %s : theme_str }} - - - - - - diff --git a/static/notifications_page.tmpl b/static/notifications_page.tmpl deleted file mode 100644 index cb9cd55..0000000 --- a/static/notifications_page.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -
    -

    Notifications

    -
    -
    - {{%s:notifications}} -
    -{{%s:navigation}} diff --git a/static/post.tmpl b/static/post.tmpl deleted file mode 100644 index b05c7e2..0000000 --- a/static/post.tmpl +++ /dev/null @@ -1,64 +0,0 @@ -
    - {{%s:reply_input}} -
    - -
    -
    - - -
    - - - - - - - - - - -
    -
    -
    - -
    -
    - -
    -
    - diff --git a/static/quick_login.tmpl b/static/quick_login.tmpl deleted file mode 100644 index f334aee..0000000 --- a/static/quick_login.tmpl +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/static/reactions_btn.tmpl b/static/reactions_btn.tmpl deleted file mode 100644 index 18e9e42..0000000 --- a/static/reactions_btn.tmpl +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - {{%s:emoji_picker}} - diff --git a/static/repeat_btn.tmpl b/static/repeat_btn.tmpl deleted file mode 100644 index 68ab520..0000000 --- a/static/repeat_btn.tmpl +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/static/repeat_btn_img.tmpl b/static/repeat_btn_img.tmpl deleted file mode 100644 index b3b6398..0000000 --- a/static/repeat_btn_img.tmpl +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/repeat_svg.tmpl b/static/repeat_svg.tmpl deleted file mode 100644 index 6712353..0000000 --- a/static/repeat_svg.tmpl +++ /dev/null @@ -1 +0,0 @@ - diff --git a/static/reply_btn.tmpl b/static/reply_btn.tmpl deleted file mode 100644 index 0dd62bd..0000000 --- a/static/reply_btn.tmpl +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/static/reply_btn_img.tmpl b/static/reply_btn_img.tmpl deleted file mode 100644 index 3edcc5e..0000000 --- a/static/reply_btn_img.tmpl +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/reply_checkbox.tmpl b/static/reply_checkbox.tmpl deleted file mode 100644 index e69de29..0000000 diff --git a/static/reply_link.tmpl b/static/reply_link.tmpl deleted file mode 100644 index 0de803f..0000000 --- a/static/reply_link.tmpl +++ /dev/null @@ -1,5 +0,0 @@ - - {{ %s : reply_btn }} - {{%s:reply_count}} - - \ No newline at end of file diff --git a/static/scrobble.tmpl b/static/scrobble.tmpl deleted file mode 100644 index 28bcc2e..0000000 --- a/static/scrobble.tmpl +++ /dev/null @@ -1,28 +0,0 @@ -
    - - - -
    - - - {{%s:username}} {{%s:activity}} -
    - - - - - - - - - - - - - - - - - -
    {{%s:title_key}}{{%s:title}}
    {{%s:artist_key}}{{%s:artist}}
    {{%s:album_key}}{{%s:album}}
    {{%s:length_key}}{{%d:length}}
    -
    diff --git a/static/search.tmpl b/static/search.tmpl deleted file mode 100644 index b3f9e1b..0000000 --- a/static/search.tmpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - -
    - - - - - -
    - -
    - {{%s:results}} -
    diff --git a/static/search_all.tmpl b/static/search_all.tmpl deleted file mode 100644 index 6a45d41..0000000 --- a/static/search_all.tmpl +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -
    - - - - - -
    - -
    - -
    - {{%s:statuses_results}} -
    - -
    - {{%s:accounts_results}} -
    - -
    - {{%s:hashtags_results}} -
    -
    diff --git a/static/status.tmpl b/static/status.tmpl deleted file mode 100644 index 5dc2fd9..0000000 --- a/static/status.tmpl +++ /dev/null @@ -1,54 +0,0 @@ - -
    - {{ %s : notif_info }} - - - - - -
    - - -
    - {{%s:username}} - {{%s:acct}} - - - - -
    -
    - {{%s:in_reply_to_str}} - - {{%s:status_content}} - - {{%s:attachments}} - {{%s:interactions}} - {{%s:emoji_reactions}} - {{%s:interaction_btns}} -
    -
    -
    - -{{ %s : reply }} - diff --git a/static/status_interaction_profile.tmpl b/static/status_interaction_profile.tmpl deleted file mode 100644 index 3ae1e72..0000000 --- a/static/status_interaction_profile.tmpl +++ /dev/null @@ -1 +0,0 @@ - diff --git a/static/status_interactions.tmpl b/static/status_interactions.tmpl deleted file mode 100644 index fb16fa5..0000000 --- a/static/status_interactions.tmpl +++ /dev/null @@ -1,11 +0,0 @@ -
    -
    - - {{%s:reblogs_count}} - - {{%s:favourites_count}} -
    -
    - {{%s:users}} -
    -
    diff --git a/static/status_interactions_label.tmpl b/static/status_interactions_label.tmpl deleted file mode 100644 index 6445520..0000000 --- a/static/status_interactions_label.tmpl +++ /dev/null @@ -1,4 +0,0 @@ - - {{%s:header}} - {{%d:value}} - diff --git a/static/test.tmpl b/static/test.tmpl deleted file mode 100644 index c979367..0000000 --- a/static/test.tmpl +++ /dev/null @@ -1,52 +0,0 @@ -
    -

    Test page

    -

    Test your nginx/apache and browser here

    -
    - - -
    - -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ENVValue
    HTTP_COOKIE{{%s:HTTP_COOKIE}}
    PATH_INFO{{%s:PATH_INFO}}
    QUERY_STRING{{%s:QUERY_STRING}}
    REQUEST_METHOD{{%s:REQUEST_METHOD}}
    SCRIPT_NAME{{%s:SCRIPT_NAME}}
    HTTP_REFERER{{%s:HTTP_REFERER}}
    HTTP_USER_AGENT{{%s:HTTP_USER_AGENT}}
    CONTENT_LENGTH{{%s:CONTENT_LENGTH}}
    -
    diff --git a/static/thread_page_btn.tmpl b/static/thread_page_btn.tmpl deleted file mode 100644 index 479f871..0000000 --- a/static/thread_page_btn.tmpl +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - diff --git a/static/timeline_options.tmpl b/static/timeline_options.tmpl deleted file mode 100644 index 1b584f3..0000000 --- a/static/timeline_options.tmpl +++ /dev/null @@ -1,14 +0,0 @@ -