Skip to content

Commit c1ed3e9

Browse files
updated vue layout.
1 parent 8688b5e commit c1ed3e9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/tglobal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
constexpr auto TF_VERSION_STR = "2.1.0";
33
constexpr auto TF_VERSION_NUMBER = 0x020100;
4-
constexpr auto TF_SRC_REVISION = 2397;
4+
constexpr auto TF_SRC_REVISION = 2419;
55

66
#include <QMetaType>
77
#include <QIODevice>

tools/tspawn/controllergenerator.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ constexpr auto CONTROLLER_SOURCE_FILE_TEMPLATE = "#include \"%name%controller.h\
6262
" render();\n"
6363
" }\n"
6464
" break;\n"
65-
"\n"
6665
" default:\n"
6766
" renderErrorResponse(Tf::NotFound);\n"
6867
" break;\n"

tools/tspawn/vueerbgenerator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ constexpr auto INDEX_TEMPLATE =
2525
"<div id=\"app\"></div>\n"
2626
"\n"
2727
"<!-- vue template -->\n"
28-
"<script type=\"text/x-template\" id=\"%varname%-list-template\">\n"
28+
"<script type=\"text/x-template\" id=\"%varname%-index-template\">\n"
2929
" <h1>Listing %caption%</h1>\n"
3030
" <p><a href=\"/%varname%/create\">Create a new %caption%</a></p>\n"
3131
" <table border=\"1\" cellpadding=\"5\" style=\"border: 1px #d0d0d0 solid; border-collapse: collapse;\">\n"
@@ -49,7 +49,7 @@ constexpr auto INDEX_TEMPLATE =
4949
" items: <%==$ items %|% \"{}\" %>\n"
5050
" };\n"
5151
" },\n"
52-
" template: \"#%varname%-list-template\",\n"
52+
" template: \"#%varname%-index-template\",\n"
5353
" methods: {\n"
5454
" postRemove: function(url) {\n"
5555
" if (confirm('Are you sure?')) {\n"
@@ -166,7 +166,7 @@ constexpr auto SAVE_TEMPLATE =
166166
"<div id=\"app\"></div>\n"
167167
"\n"
168168
"<!-- vue template -->\n"
169-
"<script type=\"text/x-template\" id=\"%varname%-template\">\n"
169+
"<script type=\"text/x-template\" id=\"%varname%-save-template\">\n"
170170
" <h1>Editing %caption%</h1>\n"
171171
" <p style=\"color: red\"><%=$ error %></p>\n"
172172
" <p style=\"color: green\"><%=$ notice %></p>\n"
@@ -192,7 +192,7 @@ constexpr auto SAVE_TEMPLATE =
192192
" authenticity_token: '<%= authenticityToken() %>',\n"
193193
" };\n"
194194
" },\n"
195-
" template: \"#%varname%-template\",\n"
195+
" template: \"#%varname%-save-template\",\n"
196196
"}).mount(\"#app\");\n"
197197
"</script>\n"
198198
"</body>\n"

0 commit comments

Comments
 (0)