mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-23 21:21:27 -05:00
Simplify code_quality check
This commit is contained in:
@@ -1,17 +1,12 @@
|
|||||||
name: Code Quality
|
name: Code Quality
|
||||||
|
on: [push, pull_request]
|
||||||
on:
|
|
||||||
- pull_request
|
|
||||||
- push
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
eslint:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- run: npm ci
|
||||||
run: npm ci
|
|
||||||
working-directory: node
|
|
||||||
- name: Run ESLint
|
|
||||||
run: npm run lint
|
|
||||||
working-directory: node
|
working-directory: node
|
||||||
|
- run: npx prettier --check .
|
||||||
|
working-directory: node
|
||||||
File diff suppressed because one or more lines are too long
@@ -264,7 +264,7 @@ def serve_maps(order=""):
|
|||||||
def map_to_html(m):
|
def map_to_html(m):
|
||||||
return "<div style='margin-bottom: 2px'><a href='%s/%s' target='_blank' style='color: white; font-weight: bold; text-decoration:none'>%s</a></div>"%(url,m.id(),m.id())
|
return "<div style='margin-bottom: 2px'><a href='%s/%s' target='_blank' style='color: white; font-weight: bold; text-decoration:none'>%s</a></div>"%(url,m.id(),m.id())
|
||||||
html="<style> html{background-color:gray}</style>"
|
html="<style> html{background-color:gray}</style>"
|
||||||
if is_sdk: url="%s/admin/map_editor"%(domain.base_url)
|
if is_sdk: url="%s/editmap"%(domain.base_url)
|
||||||
else: url="%s/%s"%(domain.base_url,"communitymaps")
|
else: url="%s/%s"%(domain.base_url,"communitymaps")
|
||||||
if order=="key":
|
if order=="key":
|
||||||
for m in Map.query().fetch(5000,keys_only=True): html+=map_to_html(m)
|
for m in Map.query().fetch(5000,keys_only=True): html+=map_to_html(m)
|
||||||
|
|||||||
Reference in New Issue
Block a user