• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scriptype / writ-cms / 22516611202

28 Feb 2026 07:53AM UTC coverage: 37.643% (-0.9%) from 38.548%
22516611202

push

github

scriptype
Rename components

621 of 3714 branches covered (16.72%)

Branch coverage included in aggregate %.

0 of 32 new or added lines in 14 files covered. (0.0%)

11 existing lines in 2 files now uncovered.

2171 of 3703 relevant lines covered (58.63%)

1691.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/cms/server/public/app/editProject.js
1
import api from '../api.js'
2
import { query, setIframeSrc } from './common.js'
3
import Toolbar from './components/Toolbar.js'
4
import Content from './components/Content/index.js'
5

UNCOV
6
const initToolbar = () => {
×
NEW
7
  const { $el: $toolbar } = Toolbar({
×
8
    tools: [
9
      {
10
        name: 'content',
11
        icon: '📋',
12
        label: 'Content',
13
        action: Content.render
14
      }
15
    ]
16
  })
17
  const container = query('#panels-container')
×
UNCOV
18
  container.prepend($toolbar)
×
19
}
20

21
const editProject = async ({ ssgOptions }) => {
×
22
  console.log('starting editor with ssgOptions', ssgOptions)
×
UNCOV
23
  await api.ssg.watch(ssgOptions)
×
24
  setIframeSrc()
×
UNCOV
25
  initToolbar()
×
26

27
  const contentTypes = await api.contentTypes.get()
×
UNCOV
28
  if (contentTypes.length) {
×
UNCOV
29
    return console.log('contentTypes', contentTypes)
×
30
  }
UNCOV
31
  console.log('no contentTypes')
×
32
}
33

34
export default editProject
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc