mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 22:39:50 +08:00
init project
This commit is contained in:
10
app/views/contents/create.json.jbuilder
Normal file
10
app/views/contents/create.json.jbuilder
Normal file
@@ -0,0 +1,10 @@
|
||||
json.name @file['content']['name']
|
||||
json.sha @file['content']['sha']
|
||||
json.size @file['content']['size']
|
||||
json.content @file['content']['content']
|
||||
json.encoding @file['content']['encoding']
|
||||
json.commit do
|
||||
json.message @file['commit']['message']
|
||||
json.author @file['commit']['author']
|
||||
json.committer @file['commit']['committer']
|
||||
end
|
||||
6
app/views/contents/delete_file.json.jbuilder
Normal file
6
app/views/contents/delete_file.json.jbuilder
Normal file
@@ -0,0 +1,6 @@
|
||||
json.commit do
|
||||
json.sha @file['commit']['sha']
|
||||
json.message @file['commit']['message']
|
||||
json.author @file['commit']['author']
|
||||
json.committer @file['commit']['committer']
|
||||
end
|
||||
10
app/views/contents/update_file.json.jbuilder
Normal file
10
app/views/contents/update_file.json.jbuilder
Normal file
@@ -0,0 +1,10 @@
|
||||
json.name @file['content']['name']
|
||||
json.sha @file['content']['sha']
|
||||
json.size @file['content']['size']
|
||||
json.content @file['content']['content']
|
||||
json.encoding @file['content']['encoding']
|
||||
json.commit do
|
||||
json.message @file['commit']['message']
|
||||
json.author @file['commit']['author']
|
||||
json.committer @file['commit']['committer']
|
||||
end
|
||||
Reference in New Issue
Block a user