gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf2a2b0cef2a2b0cevendor: Hybriel set-day48, theme layouts ce4a0bamref2a2b0ce/lib/apps-table.hl

1006 B

  1. // lib/apps-table.hl — the apps table (gitoria#41) and its plain reads, apart from lib/apps.hl so that lib/events.hl (gitoria#43) can read the apps
  2. // without importing apps.hl (apps.hl raises the ping through events.hl). Statics only. Row shape: see lib/apps.hl.
  3. import { MPackDB } from 'hl:mpackdb'
  4. import { storageDir, countOfList } from './util.hl'
  5. static appsTable = new MPackDB(file = storageDir + '/apps.db', primaryKey = '@id', indexes = ['!keyHash', 'repo'])
  6. // a whole app record with some fields changed (update() replaces the record: every field must be given again)
  7. static appWith = (a, change) => {
  8. o = { id = a.id repo = a.repo name = a.name hookUrl = a.hookUrl keyHash = a.keyHash secret = a.secret createdBy = a.createdBy created = a.created lastDelivery = a.lastDelivery lastStatus = a.lastStatus }
  9. for (k of change.keys()) { o[k] = change[k] }
  10. return o
  11. }
  12. static appsOfRepo = (repoId) => {
  13. all = appsTable.find('repo', repoId)
  14. return countOfList(all) == 0 ? [] : all
  15. }

Branches

Latest commits

  • f2a2b0cevendor: Hybriel set-day48, theme layouts ce4a0bamre
  • 5d0834e7log: Apollo model rulemre
  • fe8e5bd5log: #25 sample, V48 missionmre
  • 8580c5d9log: theme fix from Atlasmre
  • 46823d93log: Apollo budget correctionmre
  • f6d32341log: Apollo on budget and #25 nextmre
  • d7184f53log: batch live, #25 evidencemre
  • 5e25e816log: W61 mergedmre
  • aafe330dTidy: drop evidence JSON (kept in scratch), collapse blank linesmre
  • aca1fda1Merge W61: theme from layouts 17e0f03, Views refer to Style rules (gitoria#37 #27)mre
  • 03cb650blog: W61 theme decisionmre
  • 248bce85Report final style gates, CSS mappings and 136 whole-image comparisonsmre
  • 153c344bRestore organization metadata exposed by the whole-image comparisonmre
  • 917a1465Update status gate assertions for the referenced state rulemre
  • 3cdb02c6Own settings feedback styles and explain connection-state classesmre
  • 00d5d6c4Reference code-entry styles and nest code-browser media and pseudosmre
  • 3c425eddReference PR content styles and explain dynamic state classesmre
  • e46fa222Own shell feedback styles and retain documented selector formsmre
  • c26084c4Reference repository list styles and nest its breakpointmre
  • f3e196b5Document Markdown direct-child selector remaindersmre